Chapter 2 Cascading Style Sheets and JavaScript

16
Compiled by Nuzhat Ibrahim Memon 1 Textual Exercise (1) Which of the following allows specifying styles for the visual elements of the website? (A) Cascading Style Sheet (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) seletor (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) JavaScript (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) JavaScript (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) curly 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) Mouseover (C) Set (D) Load (15) Which of the following is a container for storing data? (A) Variable (B) Integer (C) Event (D) Event handler (16) Which of the following stands for BOM ? (A) Browser Of Model (B) Browser Object Model (C) Browser Object Modelling (D) Browse Object Model (17) Which of the following is the top level object in the browser object model ? (A) Window (B) Document (C) Page (D) Location (18) Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not an Numeric Std. 12 (Science) | Oct. – 2014 (19) In website, which of the following can be controlled using CSS ? (A) Font types (B) Pad spaces (C) Margin and Position (D) All of these (20) A CSS rules has how many parts ? (A) 2 (B) 3 (C) 4 (D) 5 (21) In the following CSS syntax which is a selector ? | H1 {color : green} (A) H1 (B) color (C) green (D) All of these (22) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Composition Toolbar (B) Format Toolbar – 1 (C) Format Toolbar – 2 (D) None of these (23) Which of the following option is not available in the Text tab of CSS stylesheet dialogbox ? (A) Font family (B) Font size (C) Color (D) Font type Chapter 2 Cascading Style Sheets and JavaScript Previous Years’ Board Paper – Question Bank Weightage: 10 marks

Transcript of Chapter 2 Cascading Style Sheets and JavaScript

Compiled by Nuzhat Ibrahim Memon 1

Textual Exercise (1) Which of the following allows specifying styles for the visual elements of the website? (A) Cascading Style Sheet (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) seletor (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) JavaScript (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) JavaScript (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) curly 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) Mouseover (C) Set (D) Load (15) Which of the following is a container for storing data? (A) Variable (B) Integer (C) Event (D) Event handler (16) Which of the following stands for BOM ? (A) Browser Of Model (B) Browser Object Model (C) Browser Object Modelling (D) Browse Object Model (17) Which of the following is the top level object in the browser object model ? (A) Window (B) Document (C) Page (D) Location (18) Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not an Numeric Std. 12 (Science) | Oct. – 2014 (19) In website, which of the following can be controlled using CSS ? (A) Font types (B) Pad spaces (C) Margin and Position (D) All of these (20) A CSS rules has how many parts ? (A) 2 (B) 3 (C) 4 (D) 5 (21) In the following CSS syntax which is a selector ? | H1 {color : green} (A) H1 (B) color (C) green (D) All of these (22) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Composition Toolbar (B) Format Toolbar – 1 (C) Format Toolbar – 2 (D) None of these (23) Which of the following option is not available in the Text tab of CSS stylesheet dialogbox ? (A) Font family (B) Font size (C) Color (D) Font type

Chapter 2 Cascading Style Sheets and JavaScript Previous Years’ Board Paper – Question Bank Weightage: 10 marks

Compiled by Nuzhat Ibrahim Memon 2

(24) Which of the following is not an advantage of CSS ? (A) The CSS has less code compared to that in HTML. (B) Using CSS makes website designing quick and efficient. (C) The CSS compatibility varies with different browsers. (D) None of these (25) Which of the following statement is true for JavaScript ? (i) The JavaScript code can be put directly inside the web page code as separate section. (ii) JavaScript is a case sensitive language. (A) Only (i) (B) Only (ii) (C) Both (i) and (ii) (D) None of these (26) In JavaScript, what is a reusable block of code that performs a particular task ? (A) Variable (B) Function (C) Procedure (D) Event (27) In JavaScript function, the block of code is written inside which braces ? (A) ( ) (B) { } (C) [ ] (D) <> (28) In JavaScript, which event would occur when document or image is loaded ? (A) focus (B) abort (C) load (D) change (29) In JavaScript, which keyword is used to declare a variable ? (A) v (B) ver (C) var (D) variable (30) Which of the following statement is true for if statement in JavaScript ? (i) The conditional statement if is used to change the flow of the program. (ii) If the condition is false, then the program enters in block and executes the statement inside it. (A) Only (i) (B) Only (ii) (C) Both (i) and (ii) (D) None of these (31) In document object model, all the element of webpage like form, images, link etc. are contained within which object ? (A) document (B) browser (C) background (D) webpage (32) In JavaScript, following function returns what ? | isNaN(123) (A) true (B) false (C) Both (A) and (B) (D) 123 (33) Which of the following is not a built-in function of JavaScript ? (A) isNaN() (B) alert() (C) validateForm() (D) None of these (34) In the JavaScript, which number is used for first element from the checkbox of three array element ? (A) 0 (B) 1 (C) 2 (D) 3 (35) In JavaScript, which of the following statement is used to return a value in a function ? (A) send (B) display (C) function (D) return (36) In JavaScript, which method is used to apply focus on a particular element of the form ? (A) select (B) focus (C) move (D) blur (37) In JavaScript, which of the following is used as ‘OR’ operator ? (A) && (B) == (C) || (D) ## (38) In the following JavaScript statement which is a method ? document.write(“Hello Students”); (A) document (B) write (C) Both a & b (D) None of these Std. 12 (General) | March – 2015 (39) Which of the following allows specifying styles for the visual elements of the website ? (A) Cascading Style Sheets (B) Web Page(C) Animation (D) Form (40) What is called when all browsers are split in to different parts or objects that can be accessed using JavaScript ? (A) Browser Object Model (B) Browser Object Menu (C) Browser Oriented Model (D) Browser Oriented Menu (41) Which of the following statement indicates the method in JavaScript ? document.write(“Computer with ByteLand Institute”) (A) document (B) write (C) Hello Students (D) (“Hello Students”) (42) How is the general syntax of CSS defined ? (A) Selector {Property : Value} (B) Selector [Property : Value] (C) Selector (Value : Property) (D) Selector <Property : Value> (43) 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 (44) Which of the following statements isn’t a disadvantage of CSS ? (A) It can’t be displayed as per users design. (B) Not supported by browser (C) Both (A) and (B) (D) Less code compared to that in HTML (45) In Java, what can be controlled by using the method and properties of document object ? (A) Web Page (B) Web Browser (C) Document (D) All of these

Compiled by Nuzhat Ibrahim Memon 3

(46) What is called a reusable block of code that performs a particular task ? (A) Function (B) Code (C) Programming (D) All of these (47) Which option consists of a property associated with the HTML element and corresponding value in CSS rule ? (A) General (B) Aural (C) Lists (D) All of these (48) Which Java Script element is executed when element such as a radio button becomes in active ? (A) blur() (B) abort() (C) unload() (D) load() Std. 12 (Science) | Oct. – 2015 (49) Which of the following statement is not true for CSS ? (A) A CSS describes the style of the element in the document. (B) CSS describes the information content of the document. (C) Using CSS, we can control font type, margin and element position in our website. (D) None of these (50) Which of the following is a general syntax of CSS ? (A) select (property : value) (B) select {property : value} (C) selector (property : value) (D) selector {property : value} (51) Which of the following tab is available in CSS style sheet dialog box of KompoZer ? (A) Background (B) Borders (C) Box (D) All of these (52) Which of the following option is available in text tab of CSS style sheets dialog box ofKompoZer ? (A) Font family (B) Color (C) Case (D) All of these (53) In KompoZer, which button of image option of background tab of CSS style sheets dialogbox is used to insert an image in the background of webpage ? (A) Format picture (B) Choose file (C) Insert picture (D) Insert file (54) In KompoZer, which tab of CSS style sheet dialog box is use to view CSS code ? (A) Box (B) Text (C) Background (D) General (55) 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. (56) 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 (57) Which of the following browser does not support JavaScript ? (A) Mozilla Firefox (B) Chrome (C) Safari (D) None of these (58) Using which tag, the JavaScript code is inserted into an HTML page ? (A) <java>.....</java> (B) <text>.....</text> (C) <script>.....</script> (D) <style>.....</style> (59) JavaScript block starts and ends with which brackets ? (A) [ ] (B) { } (C) <> (D) ( ) (60) In JavaScript, which keyword is used to define a function ? (A) Define (B) Function (C) Func (D) Fnc (61) Which of the following is not an example of user defined function of JavaScript ? (A) addnos() (B) validateForm() (C) validForm() (D) alert() (62) In JavaScript, which event occurs when loading of image is cancelled ? (A) abort (B) focus (C) error (D) upload (63) In JavaScript, which statement is used to stop the function execution and return thespecified value? (A) reset (B) back (C) submit (D) return (64) In JavaScript which of the following type value can be stored in the variable ? (A) numbers (B) string (C) text (D) All of these (65) 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 (66) In JavaScript, isNaN() function returns what when the value passed is not a number ? (A) 10 (B) false (C) 11 (D) true (67) 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] (68) In Java Script, which type of condition in ‘if’ statement allows program to enter the ‘if’

Compiled by Nuzhat Ibrahim Memon 4

statement block and execute the statements under it ? (A) else (B) false (C) fi (D) true Std. 12 (General) | March – 2016 (69) 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 (70) H1{color : green} : In this CSS statement which is selector ? (A) H1 (B) color (C) green (D) All of these (71) From the following which is the advantage of CSS ? (A) To change only needs to make modifications. (B) Less codes compared to HTML. (C) Website designing quick and efficient. (D) All of these (72) Using which language, a webpage no longer remains static, but can include coding that allows interactivity with the user, control the browser and dynamically create content ? (A) HTML (B) JavaScript (C) CSS (D) Animation (73) From the following which tag is inserted to JavaScript code in HTML webpage ? (A) <style> ... </style> (B) <script> ... </script> (C) <js> ... </js> (D) <title> ... </title> (74) In JavaScript, which event handler is used to event click ? (A) byClick() (B) onClick() (C) ofClick() (D) onClicking() (75) In JavaScript, which method is used to display content in browser ? (A) document.write() (B) browsr.write() (C) script.write() (D) method.write() (76) Which keyword is used to declare variable in JavaScript ? (A) variable (B) var (C) Var (D) Java Var (77) What is a reusable block of code that performs a particular task in JavaScript ? (A) function (B) if statement (C) variable (D) method (78) In JavaScript, which object is on the top of the level in browser object model ? (A) document (B) window (C) form (D) button Std. 12 (Science) | Oct. – 2016 (79) In CSS, property and value are separated by which symbol ? (A) Semicolon (B) Colon (C) Comma (D) Space (80) From given example below of CSS B {color : red} Which of the following is selector in CSS ? (A) red (B) B (C) color (D) { } (81) How many tabs will come in CSS style sheets dialog box in KompoZer ? (A) 5 (B) 6 (C) 7 (D) 8 (82) Which of the following is not a tab of CSS style sheets dialog box ? (A) Orals (B) General (C) Borders (D) Lists (83) Which of the following tab of CSS style sheets dialog box shows the CSS code ? (A) Lists (B) Code (C) General (D) Source (84) Which of the following web program provide static web page ? (A) JavaScript (B) HTML (C) Both (A) and (B) (D) None of these (85) In following example of JavaScript document.write(“Computer with ByteLand Institute”); Which is known as method ? (A) (); (B) . (dot) (C) write (D) document (86) JavaScript statements can be grouped together in a block and block starts and end with which brackets ? (A) <> (B) [ ] (C) ( ) (D) { } (87) Which of the following is inbuilt function provided by JavaScript ? (A) alert() (B) newForm() (C) ValidateForm() (D) All of these (88) Which of the following is not an example of Event in JavaScript ? (A) focus (B) load (C) take (D) error (89) Which of the following event occurs when element such as a radio button becomesinactive? (A) blur (B) select (C) unload (D) deselect (90) Which is the top level object in the browser object model ? (A) document (B) form (C) location (D) window (91) Which of the following object comes under document object in the browser object model ? (A) Form, Parent (B) Form, History (C) Form, Self (D) Form, Link (92) In following JavaScript statement var x = document.exam.Computer.Value; is given, where which of the following indicates form ? (A) value (B) exam (C) Computer (D) document (93) Which of the following is used for “OR” in JavaScript statement ? (A) ;; (B) ** (C) && (D) || (94) Which of the following function in JavaScript determines whether the value is number or

Compiled by Nuzhat Ibrahim Memon 5

not ? (A) isNoN() (B) isNaN() (C) isNot() (D) IsNaN() (95) Which of the following is generated by the browser due to interaction between the userand the webpage ? (A) Value (B) Response (C) Event (D) Function (96) Which of the following is a container for storing data in JavaScript ? (A) Event handler (B) Integer (C) Event (D) Variable (97) How many tabs are shown in Advanced property Editor dialog box in KompoZer ? (A) 2 (B) 3 (C) 4 (D) 5 (98) Which of the following is an example of Event Handler in JavaScript ? (A) onSubmit() (B) SubintOn() (C) onSubmitClick() (D) SubmitClickON() Std. 12 (General) | March – 2017 (99) What is the full form of CSS ? (A) Cascading Style Sheet (B) Cascading Super Sheet (C) Cascading Short Sheets (D) Cascading Simple Sheet (100) A CSS rule has how many parts ? (A) 1 (B) 2 (C) 3 (D) 4 (101) To add CSS in HTML webpage what is to be used as a selector ? (A) Information (B) Color (C) HTML element (D) All of these (102) Which kind of webpage is created using HTML ? (A) Static (B) Could not be changed (C) Both (A) and (B) (D) Dynamic (103) What is used in web pages to improve the design and validate the forms ? (A) C language (B) Java (C) Oracle (D) JavaScript (104) Which of the following statement is used in JavaScript to return a value in a function ? (A) Event (B) Program (C) Return (D) Function (105) From the following which is not an event in JavaScript ? (A) Abort (B) Alert (C) Click (D) Submit (106) var x = document.js1.name.value In above statement, which is a variable ? (A) x (B) document (C) js1 (D) name.value (107) Which is the most commonly used numeric function in JavaScript ? (A) validateForm() (B) isNaN() (C) alert() (D) number() (108) What should be used to control the web browser window or the web page in JavaScript ? (A) OMG (B) BOM (C) BOD (D) UML Std. 12 (Science) | March – 2018 (109) Which of the following is an HTML element on which style can be applied ? (A) Select (B) Declare (C) Selector (D) Declaration (110) In KompoZer, Cascade button is available on which toolbar ? (A) Composition Toolbar (B) Format Toolbar – 1 (C) Format Toolbar – 2 (D) Menu bar (111) In the CSS Stylesheets dialog box of KompoZer, a style rule for each element we have added will appear below which of the following heading ? (A) External Style (B) Internal Stylesheet (C) New Stylesheet (D) Public Stylesheet (112) In CSS Stylesheets dialog box of KompoZer, which tab shows the CSS code which is generated ? (A) Text (B) Background (C) General (D) Aural (113) In JavaScript, which sign is used as a mark of separation ? (A) ; (Semi colon) (B) : (Colon) (C) . (Full stop) (D) , (Comma) (114) In JavaScript, which keyword is used to define a function ? (A) fun (B) FUNC (C) Func (D) function (115) Which of the following is an example of inbuilt JavaScript function ? (A) hello() (B) validateForm() (C) alert() (D) myFun() (116) Which of the following statement is true for JavaScript variable ? (i) Variables in JavaScript are case sensitive. (ii) JavaScript variable can store numbers, strings or text. (iii) In JavaScript, variables can be declared using VAR keyword. (A) Only (i) and (ii) (B) Only (ii) and (iii) (C) Only (i) and (iii) (D) (i), (ii) and (iii) (117) In JavaScript, which event occurs when a document or image is loaded ? (A) click (B) focus (C) load (D) abort

Compiled by Nuzhat Ibrahim Memon 6

(118) In JavaScript, isNaN(123) function returns what ? (A) 123 (B) –1 (C) true (D) false Std. 12 (General) | March – 2018 (119) Which part of CSS syntax consists of a property associated with the HTML element used in selector and its corresponding value ? (A) Value (B) Property (C) Selector (D) Declaration (120) From the following, which is a disadvantage in CSS ? (A) Set the style for each element only once. (B) CSS compatibility varies with different browsers. (C) Website designing quick and efficient using CSS. (D) CSS has less code compared to that in HTML. (121) Which application is used to validate the data entered in the HTML forms on the client side before sending it to the server ? (A) KompoZer (B) HTML Tag (C) JavaScript (D) CSS (122) What is the use of Semicolon (;) sign in JavaScript ? (A) Statement termination (B) Statement separation (C) Each statement making bold (D) None of these (123) What kind of alert() function in JavaScript ? (A) Inbuilt function (B) User defined (C) Modular (D) Both (A) and (B) (124) Which event occurs when document or image is loaded in JavaScript ? (A) load (B) blur (C) change (D) focus (125) Which is the top level object in the Browser Object Model ? (A) Location (B) History (C) Document (D) Window (126) While filling forms in Internet, some fields are marked with a red colour asterisk mark “*”. What does it mean ? (A) Enter only character in field. (B) Enter only number in field. (C) It is a compulsory field. (D) It is a not compulsory field. (127) If the value is not a number then what is return by isNaN() in JavaScript ? (A) False (B) True (C) No (D) Yes (128) Which of the following symbol signifies the start and end of a JavaScript block ? (A) Round bracket (B) Curly bracket (C) Square bracket (D) Semicolon Std. 12 (General) | July – 2018 (129) Which of the following is the syntax of CSS ? (A) selector { value : property} (B) selector < value : property> (C) <value : property> selector (D) selector { property : value } (130) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Status bar (B) Composition Toolbar (C)Format Toolbar – 1 (D) Format Toolbar – 2 (131) In KompoZer, which tab of CSS style sheet dialog box is use to view CSS code ? (A) Box (B) General (C) Lists (D) Aural (132) Which of the following is a scripting language that allows adding programming to webpage? (A) HTML (B) CSS (C) JavaScript (D) Action script (133) Which of the following is not an advantage of CSS ? (A) The CSS has less code compared to that in HTML. (B) Web page will load faster. (C) The CSS compatibility varies with different browsers. (D) CSS makes website designing quick and efficient. (I34) Which event is occurred in Javascript, when mouse is over the element? (A) Load (B) unload (C) mouse out (D) mouse over (135) Which of the following is a reusable block of code that performs a particular task ? (A) Program (B) Code (C) Function (D) Array (136) Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not an Numeric (137) In JavaScript, isNaN(“hello”) returns which value ? (A) False (B) True (C) Yes (D) No (138) What model is used to control the web browser window or the web page in JavaScript ? (A) MBO (B) BOM (C) DOM (D) MOD Std. 12 (Science) | March – 2019 (139) Which of the following is the default tab viewed in CSS when user create style rule for h1 element?

Compiled by Nuzhat Ibrahim Memon 7

(A) General (B) Text (C) Number (D) Real (140) Which of the following are two main parts of CSS rule? (A) Select, declaration (B) selector, declaration (C) Select, declare (D) selection, declaration (141) Which of the following symbol signifies the start and end of a JavaScript block ? (A) Round bracket (B) Curly bracket (C) Square bracket (D) Semicolon (142) Which of the following is a container for storing data? (A) Integer (B) Variable (C) Event (D) Event handler (143) Which of the following event is used in javascript for form fields to reset default values? (A) change (B) abort (C) reset (D) load (144) What will be form name in Kompozer if variable x is defined in following way in javascript? Var x=document,oct,month.value; (A) value (B) document (C) month (D) oct (145) Which of the following is inbuilt function provided by JavaScript ? (A) valiform() (B) hello() (C)alert() (D) Validate forms() (146) Which of the following is a reusable block of code that performs a particular task ? (A) Code (B) Array (C) Program (D) Function (147) Which of the following is a selector in a given example of CSS syntax ? B{color:red} (A) Color (B) B (C) Red (D) {} (148) How many tabs are viewed in CSS dialog box when you create style rue for h1 element ? (A) 8 (B) 7 (C) 9 (D) 10 Std. 12 (General) | March – 2019 (149) Which of the following symbol signifies the start and end of a JavaScript block ? (A)Semicolon (B) Square bracket (C)Curly bracket (D) Round bracket (150) In JavaScript, isNaN(123) returns which value ? (A) false (B) true (C) 10 (D) -1 (151) Which of the following statement is used to return a value in a function of JavaScript? (A) return (B) function (C) select (D) send (152) In JavaScript, which event would occur when loading of image is cancelled ? (A) blur (B) load (C) abort (D) unload (153) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Edit mode Toolbar (B) Composition Toolbar (C)Format Toolbar – 1 (D) Format Toolbar – 2 (154) Which of the following is not an advantage of CSS ? (A) CSS makes web designer’s job easier. (B) CSS makes webpages loading faster as compared to HTML. (C) CSS makes website designing quick and efficient. (D) CSS compatibility varies with different browser. (155) In the ‘CSS Stylesheets’ dialog box of KompoZer, which tab is used to change the colour of a font? (A) General (B) Text (C) Background (D) Lists (156) which of the following is not a part of CSS syntax? (A) Selector (B) Property (C) Value (D) Event (157) which of the following allows specifying styles for the visual elements of the website? (A)Form (B) Animation (C) Web host (D) Cascading Style Sheet (158) In browser object model, elements of webpage like forms, images, links etc are contained within which object? (A)history (B) document (C) location (D) buttons Std. 12 (Science) | March – 2020 (159) Which of the following allows specifying styles for the visual elements of the website? (A) Cascading Style Sheet (B) Webpage (C) Form (D) Animation (160)Which of the following are two main parts of CSS rule? (A) Selector, declaration (B) select, declaration (C) Selector, declare (D) selection, declaration (161) Which of the following symbol signifies the start and end of a JavaScript block ? (A) semicolon (B) square bracket (C) curly bracket (D) round bracket (162) Which of the following is a container for storing data? (A) Variable (B) Integer (C) Event (D) Event handler (163) In Kompozer, which tabs are available on the right side of CSS style sheet dialog box?

Compiled by Nuzhat Ibrahim Memon 8

(A) General, Text (B) Background, Box (C) Borders, Lists (D) All of the above (164) Which of the following toolbar contains CSS button in Kompozer ? (A) Menu bar (B) Format Toolbar – 1 (C) Composition Toolbar (D) Format Toolbar – 2 (165) Which of the following company has developed Javascript scripting language ? (A) Microsoft (B) Sun Microsystem (C) Oracle (D) Netscape (166) Which built-in function takes the text and displays it in an alert box in JavaScript? (A) display() (B) alert() (C) message() (D) submit() (167) In JavaScript, Which event occurs when user leaves a page? (A) focus (B) unload (C) abort (D) blur (168) Which of the following is the most important object in the browser object model ? (A) document (B) history (C) location (D) link Std. 12 (General) | March – 2020 (169) Which of the following is an event handler of ‘submit’ event? (A) submit() (B) function submit() (C) onsubmit() (D) onclick() (170) In Browser Object Model, in which object, all the elements of the web page like forms, images, links and others are included ? (A) Location (B) History (C) Parent (D) Document (171) Which of the following statements will stop the function from executing and return the specified value? (A) Return statement (B) If Statement (C) Event handler (D) All (A), (B), (C) (172) After using which option, a web page no longer remains static, but can include coding that allows interactivity with the user, control the browser and dynamically create HTML content? (A) Javascript (B) CSS (C) HTML (D) KompoZer (173) Which event would occur when element such as button becomes active? (A) select (B) focus (C) click (D) mouseover (174) While creating CSS, which button should be clicked to select the file for the background, if we want to keep an image in the background? (A) Opacity (B) Position (C) Tile (D) Choose File (175) Which of the following statements is/are true for JavaScript? (i)Javascript is used for validation of client side users (ii) Can describe the style of the elements in document not the content (iii) After using it, web page no longer remains static (A) only (iii) (B) only(ii) and (iii) (C) only(ii) and (iii) (D) All (i), (ii) and (iii) (176) In the syntax of CSS, in Declaration, which of the following is/are included? (A) HTML element (B) Property associated with the HTML element (C) Corresponding values of Properties (D) Both (B) and (C) (177) Which of the following will be executed by an event or when it is called inside a source code? (A) Function (B) Variable (C) Event (D) If statement (178) Which of the following makes website designing quick and efficient? (A) JavaScript (B) CSS (C) HTML (D) Java

Compiled by Nuzhat Ibrahim Memon 9

Textual Exercise (1) Which of the following allows specifying styles for the visual elements of the website? (A) Cascading Style Sheet (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) JavaScript (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) JavaScript (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) curly 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) Mouseover (C) Set (D) Load (15) Which of the following is a container for storing data? (A) Variable (B) Integer (C) Event (D) Event handler (16) Which of the following stands for BOM ? (A) Browser Of Model (B) Browser Object Model (C) Browser Object Modelling (D) Browse Object Model (17) Which of the following is the top level object in the browser object model ? (A) Window (B) Document (C) Page (D) Location (18) Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not an Numeric Std. 12 (Science) | Oct. – 2014 (19) In website, which of the following can be controlled using CSS ? (A) Font types (B) Pad spaces (C) Margin and Position (D) All of these (20) A CSS rules has how many parts ? (A) 2 (B) 3 (C) 4 (D) 5 (21) In the following CSS syntax which is a selector ? | H1 {color : green} (A) H1 (B) color (C) green (D) All of these (22) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Composition Toolbar (B) Format Toolbar – 1 (C) Format Toolbar – 2 (D) None of these (23) Which of the following option is not available in the Text tab of CSS stylesheet dialog box ? (A) Font family (B) Font size (C) Color (D) Font type

Chapter 2 Cascading Style Sheets and JavaScript Answer Key - Previous Years’ Board Paper Weightage: 10 marks

Compiled by Nuzhat Ibrahim Memon 10

(24) Which of the following is not an advantage of CSS ? (A) The CSS has less code compared to that in HTML. (B) Using CSS makes website designing quick and efficient. (C) The CSS compatibility varies with different browsers. (D) None of these (25) Which of the following statement is true for JavaScript ? (i) The JavaScript code can be put directly inside the web page code as separate section. (ii) JavaScript is a case sensitive language. (A) Only (i) (B) Only (ii) (C) Both (i) and (ii) (D) None of these (26) In JavaScript, what is a reusable block of code that performs a particular task ? (A) Variable (B) Function (C) Procedure (D) Event (27) In JavaScript function, the block of code is written inside which braces ? (A) ( ) (B) { } (C) [ ] (D) <> (28) In JavaScript, which event would occur when document or image is loaded ? (A) focus (B) abort (C) load (D) change (29) In JavaScript, which keyword is used to declare a variable ? (A) v (B) ver (C) var (D) variable (30) Which of the following statement is true for if statement in JavaScript ? (i) The conditional statement if is used to change the flow of the program. (ii) If the condition is false, then the program enters in block and executes the statementinside it. (A) Only (i) (B) Only (ii) (C) Both (i) and (ii) (D) None of these (31) In document object model, all the element of webpage like form, images, link etc. arecontained within which object ? (A) document (B) browser (C) background (D) webpage (32) In JavaScript, following function returns what ? | isNaN(123) (A) true (B) false (C) Both (A) and (B) (D) 123 (33) Which of the following is not a built-in function of JavaScript ? (A) isNaN() (B) alert() (C) validateForm() (D) None of these (34) In the JavaScript, which number is used for first element from the checkbox of three array element ? (A) 0 (B) 1 (C) 2 (D) 3 (35) In JavaScript, which of the following statement is used to return a value in a function ? (A) send (B) display (C) function (D) return (36) In JavaScript, which method is used to apply focus on a particular element of the form ? (A) select (B) focus (C) move (D) blur (37) In JavaScript, which of the following is used as ‘OR’ operator ? (A) && (B) == (C) || (D) ## (38) In the following JavaScript statement which is a method ? document.write(“Hello Students”); (A) document (B) write (C) Both a & b (D) None of these Std. 12 (General) | March – 2015 (39) Which of the following allows specifying styles for the visual elements of the website ? (A)Cascading Style Sheets (B) Web Page(C) Animation (D) Form (40) What is called when all browsers are split in to different parts or objects that can be accessed using JavaScript ? (A) Browser Object Model (B) Browser Object Menu (C) Browser Oriented Model (D) Browser Oriented Menu (41) Which of the following statement indicates the method in JavaScript ? document.write(“Computer with ByteLand Institute”) (A) document (B) write (C) Hello Students (D) (“Hello Students”) (42) How is the general syntax of CSS defined ? (A) Selector {Property : Value} (B) Selector [Property : Value] (C) Selector (Value : Property) (D) Selector <Property : Value> (43) 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 (44) Which of the following statements isn’t a disadvantage of CSS ? (A) It can’t be displayed as per users design. (B) Not supported by browser (C) Both (A) and (B) (D) Less code compared to that in HTML (45) In Java, what can be controlled by using the method and properties of document object ? (A) Web Page (B) Web Browser (C) Document (D) All of these

Compiled by Nuzhat Ibrahim Memon 11

(46) What is called a reusable block of code that performs a particular task ? (A) Function (B) Code (C) Programming (D) All of these (47) Which option consists of a property associated with the HTML element and corresponding value in CSS rule ? (A) General (B) Aural (C) Lists (D) All of these (48) Which Java Script element is executed when element such as a radio button becomes inactive? (A) blur() (B) abort() (C) unload() (D) load() Std. 12 (Science) | Oct. – 2015 (49) Which of the following statement is not true for CSS ? (A) A CSS describes the style of the element in the document. (B) CSS describes the information content of the document. (C) Using CSS, we can control font type, margin and element position in our website. (D) None of these (50) Which of the following is a general syntax of CSS ? (A) select (property : value) (B) select {property : value} (C) selector (property : value) (D) selector {property : value} (51) Which of the following tab is available in CSS style sheet dialog box of KompoZer ? (A) Background (B) Borders (C) Box (D) All of these (52) Which of the following option is available in text tab of CSS style sheets dialog box ofKompoZer ? (A) Font family (B) Color (C) Case (D) All of these (53) 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 (54) In KompoZer, which tab of CSS style sheet dialog box is use to view CSS code ? (A) Box (B) Text (C) Background (D) General (55) 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. (56) 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 (57) Which of the following browser does not support JavaScript ? (A) Mozilla Firefox (B) Chrome (C) Safari (D) None of these (58) Using which tag, the JavaScript code is inserted into an HTML page ? (A) <java> ..... </java> (B) <text> .....</text> (C) <script> ..... </script> (D) <style> .....</style> (59) JavaScript block starts and ends with which brackets ? (A) [ ] (B) { } (C) <> (D) ( ) (60) In JavaScript, which keyword is used to define a function ? (A) Define (B) Function (C) Func (D) Fnc (61) Which of the following is not an example of user defined function of JavaScript ? (A) addnos() (B) validateForm() (C) validForm() (D) alert() (62) In JavaScript, which event occurs when loading of image is cancelled ? (A) abort (B) focus (C) error (D) upload (63) In JavaScript, which statement is used to stop the function execution and return thespecified value? (A) reset (B) back (C) submit (D) return (64) In JavaScript which of the following type value can be stored in the variable ? (A) numbers (B) string (C) text (D) All of these (65) 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 (66) In JavaScript, isNaN() function returns what when the value passed is not a number ? (A) 10 (B) false (C) 11 (D) true (67) 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] (68) In Java Script, which type of condition in ‘if’ statement allows program to enter the ‘if’

Compiled by Nuzhat Ibrahim Memon 12

statement block and execute the statements under it ? (A) else (B) false (C) fi (D) true Std. 12 (General) | March – 2016 (69) 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 (70) H1{color : green} : In this CSS statement which is selector ? (A) H1 (B) color (C) green (D) All of these (71) From the following which is the advantage of CSS ? (A) To change only needs to make modifications. (B) Less codes compared to HTML. (C) Website designing quick and efficient. (D) All of these (72) Using which language, a webpage no longer remains static, but can include coding that allows interactivity with the user, control the browser and dynamically create content ? (A) HTML (B) JavaScript (C) CSS (D) Animation (73) From the following which tag is inserted to JavaScript code in HTML webpage ? (A) <style> ... </style> (B) <script> ... </script> (C) <js> ... </js> (D) <title> ... </title> (74) In JavaScript, which event handler is used to event click ? (A) byClick() (B) onClick() (C) ofClick() (D) onClicking() (75) In JavaScript, which method is used to display content in browser ? (A) document.write() (B) browsr.write() (C) script.write() (D) method.write() (76) Which keyword is used to declare variable in JavaScript ? (A) variable (B) var (C) Var (D) Java Var (77) What is a reusable block of code that performs a particular task in JavaScript ? (A) function (B) if statement (C) variable (D) method (78) In JavaScript, which object is on the top of the level in browser object model ? (A) document (B) window (C) form (D) button Std. 12 (Science) | Oct. – 2016 (79) In CSS, property and value are separated by which symbol ? (A) Semicolon (B) Colon (C) Comma (D) Space (80) From given example below of CSS B {color : red} Which of the following is selector in CSS ? (A) red (B) B (C) color (D) { } (81) How many tabs will come in CSS style sheets dialog box in KompoZer ? (A) 5 (B) 6 (C) 7 (D) 8 (82) Which of the following is not a tab of CSS style sheets dialog box ? (A) Orals (B) General (C) Borders (D) Lists (83) Which of the following tab of CSS style sheets dialog box shows the CSS code ? (A) Lists (B) Code (C) General (D) Source (84) Which of the following web program provide static web page ? (A) JavaScript (B) HTML (C) Both (A) and (B) (D) None of these (85) In following example of JavaScript document.write(“Computer with ByteLand Institute”); Which is known as method ? (A) (); (B) . (dot) (C) write (D) document (86) JavaScript statements can be grouped together in a block and block starts and end with which brackets ? (A) <> (B) [ ] (C) ( ) (D) { } (87) Which of the following is inbuilt function provided by JavaScript ? (A) alert() (B) newForm() (C) ValidateForm() (D) All of these (88) Which of the following is not an example of Event in JavaScript ? (A) focus (B) load (C) take (D) error (89) Which of the following event occurs when element such as a radio button becomes inactive? (A) blur (B) select (C) unload (D) deselect (90) Which is the top level object in the browser object model ? (A) document (B) form (C) location (D) window (91) Which of the following object comes under document object in the browser object model ? (A) Form, Parent (B) Form, History (C) Form, Self (D) Form, Link (92) In following JavaScript statement var x = document.exam.Computer.Value; is given, where which of the following indicates form ? (A) value (B) exam (C) Computer (D) document (93) Which of the following is used for “OR” in JavaScript statement ? (A) ;; (B) ** (C) && (D) || (94) Which of the following function in JavaScript determines whether the value is number or

Compiled by Nuzhat Ibrahim Memon 13

not ? (A) isNoN() (B) isNaN() (C) isNot() (D) IsNaN() (95) Which of the following is generated by the browser due to interaction between the user and the webpage ? (A) Value (B) Response (C) Event (D) Function (96) Which of the following is a container for storing data in JavaScript ? (A) Event handler (B) Integer (C) Event (D) Variable (97) How many tabs are shown in Advanced property Editor dialog box in KompoZer ? (A) 2 (B) 3 (C) 4 (D) 5 (98) Which of the following is an example of Event Handler in JavaScript ? (A) onSubmit() (B) SubintOn() (C) onSubmitClick() (D) SubmitClickON() Std. 12 (General) | March – 2017 (99) What is the full form of CSS ? (A) Cascading Style Sheet (B) Cascading Super Sheet (C) Cascading Short Sheets (D) Cascading Simple Sheet (100) A CSS rule has how many parts ? (A) 1 (B) 2 (C) 3 (D) 4 (101) To add CSS in HTML webpage what is to be used as a selector ? (A) Information (B) Color (C) HTML element (D) All of these (102) Which kind of webpage is created using HTML ? (A) Static (B) Could not be changed (C) Both (A) and (B) (D) Dynamic (103) What is used in web pages to improve the design and validate the forms ? (A) C language (B) Java (C) Oracle (D) JavaScript (104) Which of the following statement is used in JavaScript to return a value in a function ? (A) Event (B) Program (C) Return (D) Function (105) From the following which is not an event in JavaScript ? (A) Abort (B) Alert (C) Click (D) Submit (106) var x = document.js1.name.value In above statement, which is a variable ? (A) x (B) document (C) js1 (D) name.value (107) Which is the most commonly used numeric function in JavaScript ? (A) validateForm() (B) isNaN() (C) alert() (D) number() (108) What should be used to control the web browser window or the web page in JavaScript ? (A) OMG (B) BOM (C) BOD (D) UML Std. 12 (Science) | March – 2018 (109) Which of the following is an HTML element on which style can be applied ? (A) Select (B) Declare (C) Selector (D) Declaration (110) In KompoZer, Cascade button is available on which toolbar ? (A) Composition Toolbar (B) Format Toolbar – 1 (C) Format Toolbar – 2 (D) Menu bar (111) In the CSS Stylesheets dialog box of KompoZer, a style rule for each element we have added will appear below which of the following heading ? (A) External Style (B) Internal Stylesheet (C) New Stylesheet (D) Public Stylesheet (112) In CSS Stylesheets dialog box of KompoZer, which tab shows the CSS code which is generated ? (A) Text (B) Background (C) General (D) Aural (113) In JavaScript, which sign is used as a mark of separation ? (A) ; (Semi colon) (B) : (Colon) (C) . (Full stop) (D) , (Comma) (114) In JavaScript, which keyword is used to define a function ? (A) fun (B) FUNC (C) Func (D) function (115) Which of the following is an example of inbuilt JavaScript function ? (A) hello() (B) validateForm() (C) alert() (D) myFun() (116) Which of the following statement is true for JavaScript variable ? (i) Variables in JavaScript are case sensitive. (ii) JavaScript variable can store numbers, strings or text. (iii) In JavaScript, variables can be declared using VAR keyword. (A) Only (i) and (ii) (B) Only (ii) and (iii) (C) Only (i) and (iii) (D) (i), (ii) and (iii) (117) In JavaScript, which event occurs when a document or image is loaded ? (A) click (B) focus (C) load (D) abort

Compiled by Nuzhat Ibrahim Memon 14

(118) In JavaScript, isNaN(123) function returns what ? (A) 123 (B) –1 (C) true (D) false Std. 12 (General) | March – 2018 (119) Which part of CSS syntax consists of a property associated with the HTML element used in selector and its corresponding value ? (A) Value (B) Property (C) Selector (D) Declaration (120) From the following, which is a disadvantage in CSS ? (A) Set the style for each element only once. (B) CSS compatibility varies with different browsers. (C) Website designing quick and efficient using CSS. (D) CSS has less code compared to that in HTML. (121) Which application is used to validate the data entered in the HTML forms on the client side before sending it to the server ? (A) KompoZer (B) HTML Tag (C) JavaScript (D) CSS (122) What is the use of Semicolon (;) sign in JavaScript ? (A) Statement termination (B) Statement separation (C) Each statement making bold (D) None of these (123) What kind of alert() function in JavaScript ? (A) Inbuilt function (B) User defined (C) Modular (D) Both (A) and (B) (124) Which event occurs when document or image is loaded in JavaScript ? (A) load (B) blur (C) change (D) focus (125) Which is the top level object in the Browser Object Model ? (A) Location (B) History (C) Document (D) Window (126) While filling forms in Internet, some fields are marked with a red colour asterisk mark “*”. What does it mean ? (A) Enter only character in field. (B) Enter only number in field. (C) It is a compulsory field. (D) It is a not compulsory field. (127) If the value is not a number then what is return by isNaN() in JavaScript ? (A) False (B) True (C) No (D) Yes (128) Which of the following symbol signifies the start and end of a JavaScript block ? (A) Round bracket (B) Curly bracket (C) Square bracket (D) Semicolon Std. 12 (General) | July – 2018 (129) Which of the following is the syntax of CSS ? (A) selector { value : property} (B) selector < value : property> (C) <value : property> selector (D) selector { property : value } (130) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Status bar (B) Composition Toolbar (C)Format Toolbar – 1 (D) Format Toolbar – 2 (131) In KompoZer, which tab of CSS style sheet dialog box is use to view CSS code ? (A) Box (B) General (C) Lists (D) Aural (132) Which of the following is a scripting language that allows adding programming to webpage? (A) HTML (B) CSS (C) JavaScript (D) Action script (133) Which of the following is not an advantage of CSS ? (A) The CSS has less code compared to that in HTML. (B) Web page will load faster. (C) The CSS compatibility varies with different browsers. (D) CSS makes website designing quick and efficient. (I34) Which event is occurred in Javascript, when mouse is over the element? (B) Load (B) unload (C) mouse out (D) mouse over (135) Which of the following is a reusable block of code that performs a particular task ? (A) Program (B) Code (C) Function (D) Array (136) Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not an Numeric (137) In JavaScript, isNaN(“hello”) returns which value ? (A) False (B) True (C) Yes (D) No (138) What model is used to control the web browser window or the web page in JavaScript ? (A) MBO (B) BOM (C) DOM (D) MOD Std. 12 (Science) | March – 2019 (139) Which of the following is the default tab viewed in CSS when user create style rule for h1 element?

Compiled by Nuzhat Ibrahim Memon 15

(A) General (B) Text (C) Number (D) Real (140) Which of the following are two main parts of CSS rule? (A) Select, declaration (B) selector, declaration (C) Select, declare (D) selection, declaration (141) Which of the following symbol signifies the start and end of a JavaScript block ? (A) Round bracket (B) Curly bracket (C) Square bracket (D) Semicolon (142) Which of the following is a container for storing data? (A) Integer (B) Variable (C) Event (D) Event handler (143) Which of the following event is used in javascript for form fields to reset default values? (A) change (B) abort (C) reset (D) load (144) What will be form name in Kompozer if variable x is defined in following way in javascript? Var x=document,oct,month.value; (A) value (B) document (C) month (D) oct (145) Which of the following is inbuilt function provided by JavaScript ? (A) valiform() (B) hello() (C) alert() (D) Validate forms() (146) Which of the following is a reusable block of code that performs a particular task ? (A) Code (B) Array (C) Program (D) Function (147) Which of the following is a selector in a given example of CSS syntax ? B{color:red} (A) Color (B) B (C) Red (D) {} (148) How many tabs are viewed in CSS dialog box when you create style rue for h1 element ? (A) 8 (B) 7 (C) 9 (D) 10 Std. 12 (General) | March – 2019 (149) Which of the following symbol signifies the start and end of a JavaScript block ? (A)Semicolon (B) Square bracket (C) Curly bracket (D) Round bracket (150) In JavaScript, isNaN(123) returns which value ? (A) false (B) true (C) 10 (D) -1 (151) Which of the following statement is used to return a value in a function of JavaScript? (A) return (B) function (C) select (D) send (152) In JavaScript, which event would occur when loading of image is cancelled ? (A)blur (B) load (C) abort (D) unload (153) In KompoZer, Cascade button for CSS is available on which toolbar ? (A) Edit mode Toolbar (B) Composition Toolbar (C)Format Toolbar – 1 (D) Format Toolbar – 2 (154) Which of the following is not an advantage of CSS ? (A) CSS makes web designer’s job easier. (B) CSS makes webpages loading faster as compared to HTML. (C) CSS makes website designing quick and efficient. (D) CSS compatibility varies with different browser. (155) In the ‘CSS Stylesheets’ dialog box of KompoZer, which tab is used to change the colour of a font? (A) General (B) Text (C) Background (D) Lists (156) which of the following is not a part of CSS syntax? (A) Selector (B) Property (C) Value (D) Event (157) which of the following allows specifying styles for the visual elements of the website? (A)Form (B) Animation (C) Web host (D) Cascading Style Sheet (158) In browser object model, elements of webpage like forms, images, links etc are contained within which object? (A)history (B) document (C) location (D) buttons Std. 12 (Science) | March – 2020 (159) Which of the following allows specifying styles for the visual elements of the website? (A) Cascading Style Sheet (B) Webpage (C) Form (D) Animation (160)Which of the following are two main parts of CSS rule? (A) Selector, declaration (B) select, declaration (C) Selector, declare (D) selection, declaration (161) Which of the following symbol signifies the start and end of a JavaScript block ? (A) semicolon (B) square bracket (C) curly bracket (D) round bracket (162) Which of the following is a container for storing data? (A) Variable (B) Integer (C) Event (D) Event handler (163) In Kompozer, which tabs are available on the right side of CSS style sheet dialog box?

Compiled by Nuzhat Ibrahim Memon 16

(A) General, Text (B) Background, Box (C) Borders, Lists (D) All of the above (164) Which of the following toolbar contains CSS button in Kompozer ? (A) Menu bar (B) Format Toolbar – 1 (C) Composition Toolbar (D) Format Toolbar – 2 (165) Which of the following company has developed Javascript scripting language ? (A) Microsoft (B) Sun Microsystem (C) Oracle (D) Netscape (166) Which built-in function takes the text and displays it in an alert box in JavaScript? (A) display() (B) alert() (C) message() (D) submit() (167) In JavaScript, Which event occurs when user leaves a page? (A) focus (B) unload (C) abort (D) blur (168) Which of the following is the most important object in the browser object model ? (A) document (B) history (C) location (D) link Std. 12 (General) | March – 2020 (169) Which of the following is an event handler of ‘submit’ event? (A) submit() (B) function submit() (C) onsubmit() (D) onclick() (170) In Browser Object Model, in which object, all the elements of the web page like forms, images, links and others are included ? (A) Location (B) History (C) Parent (D) Document (171) Which of the following statements will stop the function from executing and return the specified value? (A) Return statement (B) If Statement (C) Event handler (D) All (A), (B), (C) (172) After using which option, a web page no longer remains static, but can include coding that allows interactivity with the user, control the browser and dynamically create HTML content? (A) Javascript (B) CSS (C) HTML (D) KompoZer (173) Which event would occur when element such as button becomes active? (A) select (B) focus (C) click (D) mouseover (174) While creating CSS, which button should be clicked to select the file for the background, if we want to keep an image in the background? (A) Opacity (B) Position (C) Tile (D) Choose File (175) Which of the following statements is/are true for JavaScript? (i)Javascript is used for validation of client side users (ii) Can describe the style of the elements in document not the content (iii) After using it, web page no longer remains static (A) only (iii) (B) only(ii) and (iii) (C) only(i) and (iii) (D) All (i), (ii) and (iii) (176) In the syntax of CSS, in Declaration, which of the following is/are included? (A) HTML element (B) Property associated with the HTML element (C) Corresponding values of Properties (D) Both (B) and (C) (177) Which of the following will be executed by an event or when it is called inside a source code? (A) Function (B) Variable (C) Event (D) If statement (178) Which of the following makes website designing quick and efficient? (A) JavaScript (B) CSS (C) HTML (D) Java