ANSWER KEY (2) - 69 Que
ANSWER KEY (2) - 69 Que
Textbook Exercise
(1) Which of the following allows specifying styles for the visual elements of the website?
(A) Cascading Style Sheets (B) Webpage (C) Form (D) Animation
(2) Which of the following is known as special symbol in the syntax of CSS?
(A) Rules (B) Selector (C) Declaration (D) Input
(3) Which of the following are two main parts of CSS rule?
(A) Selector, Declaration (B) Select, Declaration
(C) Selector, Declare (D) Selection, Declaration
(4) Which of the following is an HTML element on which style can be applied?
(A) Declaration (B) Selector (C) Select (D) Declare
(5) Which of the following is the syntax of CSS?
(A) select {property : value} (B) selector {value : property}
(C) selector {property : value} (D) selection {property : value}
(6) Which of the following has developed JavaScript?
(A) Yahoo (B) Google (C) Wikipedia (D) Netscape
(7) Which of the following is a scripting language that allows adding programming to web
pages?
(A) Action script (B) Java Script (C) HTML (D) CSS
(8) Which of the following is a scripting language that is simple, lightweight programming
language that does not contain advanced programming functionalities?
(A) Java Script (B) HTML (C) C (D) Java
(9) Which of the following tag is used to insert JavaScript code into an HTML page?
(A) <script> ..... <script> (B) <script> .... </script>
(C) <script> ..... <//script> (D) </script> ..... </script>
(10) Which of the following symbol signifies the start and end of a JavaScript block?
(A) Semicolon (B) Square bracket
(C) Curtly bracket (D) Round bracket
(11) Which of the following is a reusable block of code that performs a particular task?
(A) Array (B) Code (C) Program (D) Function
(12) Which of the following statement is used to return a value in a function?
(A) return (B) function (C) select (D) send
(13) Which of the following is generated by the browser due to interaction between the user
and the web page?
(A) Function (B) Response (C) Event (D) Value
(14) Which of the following is not an event?
(A) Abort (B) Mouse Over (C) Set (D) Load
(15) Which of the following is a container for storing data?
Page 1
(A) Variable (B) Integer (C) Event (D) Event handler
Page 2
(A) Background (B) Borders (C) Box (D) All of these
(32) Which of the following option is available in text tab of CSS style sheets dialog box of
KompoZer?
(A) Font family (B) Color (C) Case (D) All of these
(33) In KompoZer, which button of image option of background tab of CSS style sheets dialog
box is used to insert an image in the background of webpage?
(A) Format picture (B) Choose file (C) Insert picture (D) Insert file
(34) In KompoZer, which tab of CSS style sheet dialog box is use to view CSS code?
(A) Box (B) Text (C) Background (D) General
(35) Which of the following is not an advantage of CSS?
(A) Less code compare to the HTML.
(B) CSS makes website designing quick and efficient.
(C) CSS compatibility varies with different browser.
(D) The web pages will load faster.
(36) Which of the following is used in web pages to improve the design and validate the form?
(A) Text Editor (B) CSS (C) JavaScript (D) HTML
(37) Which of the following browser does not support JavaScript?
(A) Mozilla Firefox (B) Chrome (C) Safari (D) None of these
(38) Using which tag, the JavaScript code is inserted into an HTML page?
(A) <java> ..... </java> (B) <text> ..... </text>
(C) <script> ..... </script> (D) <style> ..... </style>
(39) JavaScript block starts and ends with which brackets?
(A) [ ] (B) { } (C) < > (D) ( )
(40) In JavaScript, which keyword is used to define a function?
(A) Define (B) Function (C) Func (D) Fnc
(41) Which of the following is not an example of user defined function of JavaScript?
(A) addnos() (B) validateForm() (C) validForm() (D) alert()
(42) In JavaScript, which event occurs when loading of image is cancelled?
(A) abort (B) focus (C) error (D) upload
(43) In JavaScript, which statement is used to stop the function execution and return the
specified value?
(A) reset (B) back (C) submit (D) return
(44) In JavaScript which of the following type value can be stored in the variable?
(A) numbers (B) string (C) text (D) All of these
(45) In Browser Object Model, method and properties of which object is used to control the
web browser window?
(A) option (B) document (C) window (D) location
(46) In JavaScript, isNaN() function returns what when the value passed is not a number?
(A) 10 (B) false (C) 11 (D) true
(47) In KompoZer form, the radio button for gender field are grouped by the name ‘gender’
and gender is an array of two elements, so how this two elements will be declared ?
(A) gender [2] and gender [1] (B) gender [1] and gender [2]
(C) gender [0] and gender [2] (D) gender [0] and gender [1]
(48) In Java Script, which type of condition in ‘if’ statement allows program to enter the ‘if’
Page 3
statement block and execute the statements under it?
(A) else (B) false (C) fi (D) true
(49) From the following what is used to describe the style of elements in the documents?
(A) Selector (B) Declaration (C) Cascading Style Sheet (D) Animation
Page 4
(68) Which of the following is not an example of Event in JavaScript?
(A) focus (B) load (C) take (D) error
(69) Which of the following event occurs when element such as a radio button becomes
inactive?
(A) blur (B) select (C) unload (D) deselect
Page 5