Notes: Answer: b
Explanation: CSS stylesheets have a very powerful syntax, known as selectors, for describing elements or sets of elements within a document.
422). What does the following JavaScript code snippet mean?
#log>span
[A]Span child after log declaration [B]Specific span child of id greater than log [C] Span child less than log [D]Any span child of the element with id as log
Notes: Answer: a
Explanation: querySelectorAll() is the ultimate element selection method: it is a very powerful technique by which client-side JavaScript programs can select the document elements that they are going to manipulate.
424). Which of the following is the Web application equivalent to querySelectorAll()?
Notes: Answer: d
Explanation: The C in CSS stands for “cascading”. This term indicates that the style rules that apply to any given element in a document can come from a “cascade” of different sources.
Notes: Answer: d
Explanation: border, font & text are shortcut properties. For example, the font-family, font-size, font-style, and font-weight properties can all be set at once using a single font property with a compound value:
428). Which of the following is the default positioning elements with CSS?
Notes: Answer: b
Explanation: static is the default value and specifies that the element is positioned according to the normal flow of document content (for most Western languages, this is left to right and top to bottom).
429). Which property lays the element according to the normal flow?
Notes: Answer: a
Explanation: When the position property is set to relative, an element is laid out according to the normal flow, and its position is then adjusted relative to its position in the normal flow.
430). Which of the following property allows you to specify an element’s position with respect to the browser window?
Notes: Answer: b
Explanation: The fixed value allows you to specify an element’s position with respect to the browser window. Elements with fixed positioning are always visible and do not scroll with the rest of the document. Like absolutely positioned elements, fixed-position elements are independent of all others and are not part of the document flow.
431). What will be the output of the following JavaScript code?
Notes: Answer: c
Explanation: If an apostrophe is present in the string then a backslash is added before it. The string skips the execution of the character after a backslash.
432). What will be the output of the following JavaScript code?
Notes: Answer: b
Explanation: The indexOf() method returns the position of the first occurrence of a specified text. locate occurs first time at 7 positions.
433). What will be the output of the following JavaScript code?
Notes: Answer: b
Explanation: The replace function replaces string data with a specified value. The innerHtml function changes the value of data in the paragraph.
434). What will be the output of the following JavaScript code?
Notes: Answer: a
Explanation: The split function splits the string according to the argument passed to it. The third index of the array will be initialized with d, hence the output will be d.