883). When does the browser stop rendering the HTML?
[A]Inline JavaScript block
[B]External JavaScript file
[C]Both Inline JavaScript block & External JavaScript file
[D]External HTML file
Show Answer
Correct Answer: Both Inline JavaScript block & External JavaScript file
Notes:
Answer: c
Explanation: When the browser parses the HTML markup, it stops rendering the HTML when it encounters an inline JavaScript block or external JavaScript file. At this point, the user experiences rendering delays.
884). Which of the following handles painting the content on to the screen?
[A]Rendering engine
[B]JavaScript Interpreter
[C] UI Layer
[D]Network Layer
Show Answer
Correct Answer: Rendering engine
Notes:
Answer: a
Explanation: A rendering engine is a software that draws text and images on the screen. The rendering engine handles painting the content to the screen. When it encounters JavaScript, it hands it off to the JavaScript interpreter.
885). What does the rendering engine do when it encounters JavaScript?
[A]Skips the code
[B] Continues painting
[C]Switches to Javascript Interpreter
[D] Restructures the code
Show Answer
Correct Answer: Switches to Javascript Interpreter
Notes:
Answer: c
Explanation: A rendering engine is a software that draws text and images on the screen. The rendering engine handles painting the content to the screen. When it encounters JavaScript, it hands it off to the JavaScript interpreter.
886). Which of the following runs the JavaScript code?
[A]Just In Time compiler
[B] JavaScript Interpreter
[C]Both Just In Time compiler and JavaScript Interpreter
[D] Javascript compiler
Show Answer
Correct Answer: JavaScript Interpreter
Notes:
Answer: b
Explanation: A JavaScript engine is a computer program that executes JavaScript (JS) code. The first JS engines were mere interpreters, but all relevant modern engines utilize just-in-time compilation for improved performance. The JavaScript Interpreter runs the JavaScript code.
887). Which of the following layer retrieves the content from the network?
[A]Transport Layer
[B] Application Layer
[C]Network Layer
[D]Physical Layer
Show Answer
Correct Answer: Network Layer
Notes:
Answer: c
Explanation: The network layer is the third level of the Open Systems Interconnection Model (OSI Model) and the layer that provides data routing paths for network communication. The network layer retrieves the content from the network.
888). Which of the following gets converted to DOM elements by the rendering engine?
[A]Tokens
[B]Strings
[C]Address
[D]Characters
Show Answer
Correct Answer: Tokens
Notes:
Answer: a
Explanation: The string returned by the network layer gets tokenized into meaningful chunks. The rendering engine then takes the tokens and converts them to DOM elements. There are five categories of tokens: 1) constants, 2) identifiers, 3) operators, 4) separators, and 5) reserved words.
889). Which of the below does not belong to the Render Engine workflow?
[A]Paint DOM elements
[B]Parse Content
[C]Build DOM nodes in render tree
[D]Parse identifiers
Show Answer
Correct Answer: Parse identifiers
Notes:
Answer: d
Explanation: A rendering engine is software that draws text and images on the screen. All of the mentioned belongs to the Render Engine workflow. The Render engine workflow contains:
Parse Content
Build DOM nodes in render tree
Layout positioning of DOM elements
Paint DOM elements.
890). Which is the next step after retrieving the content in chunks?
[A]Paint DOM elements
[B] Parse Content
[C]Build DOM nodes in render tree
[D] Layout positioning of DOM elements
Show Answer
Correct Answer: Parse Content
Notes:
Answer: b
Explanation: After retrieving the content in chunks, the contents will be parsed. The Render engine workflow contains:
Parse Content
Build DOM nodes in render tree
Layout positioning of DOM elements
Paint DOM elements.
891). What will happen after executing the script?
[A] Execute script
[B] Layout positioning of DOM elements
[C]Paint DOM elements
[D] Build DOM nodes in render tree
Show Answer
Correct Answer: Build DOM nodes in render tree
Notes:
Answer: d
Explanation: After executing the script, the DOM nodes will be built in the render tree. The Render engine workflow contains:
Parse Content
Build DOM nodes in render tree
Layout positioning of DOM elements
Paint DOM elements.
892). What would happen if there were no script tags?
[A]Build DOM nodes in render tree
[B]Layout positioning of DOM elements
[C]Paint DOM elements
[D]Execute script
Show Answer
Correct Answer: Build DOM nodes in render tree
Notes:
Answer: a
Explanation: If there were no script tags, the DOM nodes will be built in the render tree. After executing the script, the DOM nodes will be built in the render tree.