592). What is the purpose of a Rendering Engine?
[A]Parsing objects in page
[B] Drawing all objects in page
[C]Both Parsing & Drawing all objects in page
[D]Rendering object
Show Answer
Correct Answer: Both Parsing & Drawing all objects in page
Notes:
Answer: c
Explanation: It’s responsible for displaying the web page. The rendering engine parses the HTML and the CSS and displays the parsed content on the screen. A Rendering Engine is generally used for parsing and drawing all of the objects in the page.
593). What is the purpose of the JavaScript Engine?
[A]Compiling the JavaScript
[B]Interpreting the JavaScript
[C]Both Compiling & Interpreting the JavaScript
[D]Parsing the javascript
Show Answer
Correct Answer: Interpreting the JavaScript
Notes:
Answer: b
Explanation: The JavaScript Engine is generally used for interpreting the JavaScript. It is used to interpret the javascript and execute the javscript on the web page.
594). Which layer is used to handle the HTTP requests?
[A]Network Layer
[B]Transport Layer
[C] Application Layer
[D]Presentation Layer
Show Answer
Correct Answer: Network Layer
Notes:
Answer: a
Explanation: HTTP is a protocol which allows the fetching of resources, such as HTML documents. It is the foundation of any data exchange on the Web and a client-server protocol, which means requests are initiated by the recipient, usually the Web browser. The network layer is used to handle the HTTP requests.
595). The User Interface is taken care of which layer?
[A]Transport Layer
[B] Network Layer
[C]UI Layer
[D]Presentation Layer
Show Answer
Correct Answer: UI Layer
Notes:
Answer: c
Explanation: The user interface layer represents the front end of the Web Client, and contains the actual GUI elements that users view and click. The UI Layer takes care of the User Interface.
596). Which of the following browsers use Webkit?
[A]Chrome
[B]Internet Explorer
[C]Safari
[D]Both Chrome and Safari
Show Answer
Correct Answer: Both Chrome and Safari
Notes:
Answer: d
Explanation: WebKit is a browser engine used in Apple’s Safari browser and other products. Webkit is what Chrome and Safari use, and is your target for most mobile web development since it is used as the layout or rendering engine for Android devices as well as mobile Safari for iOS devices and the Silk browser on Kindle Fires.
597). Which of the following first developed Gecko?
[A]Safari
[B]Netscape
[C]Opera
[D]Internet Explorer
Show Answer
Correct Answer: Netscape
Notes:
Answer: b
Explanation: Gecko is the name of the layout engine developed by the Mozilla Project. Gecko was first developed at Netscape, before the Mozilla Project spun out as its own entity, as the successor to the original Netscape rendering engine, back in 1997.
598). Which of the following render HTML?
[A]Browsers
[B]Email Clients
[C]Web Components
[D] All of the mentioned
Show Answer
Correct Answer: All of the mentioned
Notes:
Answer: d
Explanation: Rendering Engine takes HTML code and interprets it into what you see visually. More tools than just browsers render HTML, including email clients and web components in other applications.
599). SpiderMonkey was developed by _____________
[A]Firefox
[B]Internet Explorer
[C]Safari
[D]Opera
Show Answer
Correct Answer: Firefox
Notes:
Answer: a
Explanation: SpiderMonkey is Mozilla’s JavaScript engine written in C and C++. It is used in various Mozilla products, including Firefox, and is available under the MPL2. SpiderMonkey is the JavaScript engine made by Mozilla that is used in Firefox.
600). Carakan is used by which of the following browsers?
[A]Firefox
[B]Internet Explorer
[C]Safari
[D]Opera
Show Answer
Correct Answer: Opera
Notes:
Answer: d
Explanation: Opera uses Carakan, which was introduced in 2010. Mozilla uses spidermonkey and safari uses nitro javascript engine.
601). Which is the alternate name for JavaScriptCore that is used by Safari?
[A]Nitro
[B]SpiderMoney
[C]Carakan
[D]V8
Show Answer
Correct Answer: Nitro
Notes:
Answer: a
Explanation: Safari uses JavaScriptCore, sometimes called Nitro. Opera uses Carakan and Mozilla uses SpiderMonkey.
602). What will be the output of the following JavaScript code?
[A]true
[B]false
[C]error
[D]undefined
Show Answer
Correct Answer: true
Notes:
Answer: a
Explanation: The test() method tests for a match in a string. This method returns true if it finds a match, otherwise it returns false.
603). What will be the output of the following JavaScript code?
[A]/World/g
[B]World
[C]World/g
[D]Undefined
Show Answer
Correct Answer: /World/g
Notes:
Answer: a
Explanation: The toString() method returns the string value of the regular expression. It is found in the regular expression library of Javascript.
604). What will be the output of the following JavaScript code?
[A]True
[B]False
[C]Error
[D]Undefined
Show Answer
Correct Answer: True
Notes:
Answer: a
Explanation: The \d metacharacter is used to find a digit from 0-9. The above code results true if a digit is present in the string.
605). What will be the output of the following JavaScript code?
[A]true
[B]false
[C]error
[D]undefined
Show Answer
Correct Answer: true
Notes:
Answer: a
Explanation: The \s metacharacter is used to find a whitespace character. A whitespace character can be a space, a tab or a new line character.
606). What will be the output of the following JavaScript code?
Show Answer
Correct Answer: 7
Notes:
Answer: b
Explanation: The \b metacharacter is used to find a match at the beginning or end of a word. The above code returns the position of the occurrence of the pattern at the starting of the word.