0% found this document useful (0 votes)
54 views

ANSWER KEY (2) - 69 Que

Uploaded by

aayushvijha19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

ANSWER KEY (2) - 69 Que

Uploaded by

aayushvijha19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Chapter 2.

Cascading Style Sheets and Java Script

Unit Test 2018 (Std. 12th E.M.)


STUDENT’S NAME : ____________________________________DIV._________ ROLL NO.: ______

STANDARD : 12 | Computer Studies

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

(16) Which of the following stands for BOM?


(A) Browser Of Model (B) Browser Object Model
(C) Browser Object Modeling (D) Browser 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
(19) 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
(20) What is called when all browsers are split into 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
(21) Which of the following statement indicates the method in JavaScript?
document.write(“Computer with Tejas Thakkar”)
(A) document (B) write
(C) Hello Students (D) (“Hello Students”)
(22) How is the general syntax of CSS defined?
(A) Selector {Property : Value} (B) Selector [Property : Value]
(C) Selector (Value : Property) (D) Selector <Property : Value>
(23) 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
(24) 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
(25) 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
(26) What is called a reusable block of code that performs a particular task?
(A) Function (B) Code (C) Programming (D) All of these
(27) 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
(28) Which Java Script element is executed when element such as a radio button becomes inactive?
(A) blur() (B) abort() (C) unload() (D) load()
(29) 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
(30) 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}
(31) Which of the following tab is available in CSS style sheet dialog box of KompoZer?

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

(50) H1{color : green} : In this CSS statement which is selector?


(A) H1 (B) color (C) green (D) All of these
(51) 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
(52) 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
(53) 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>
(54) In JavaScript, which event handler is used to event click?
(A) byClick() (B) onClick() (C) ofClick() (D) onClicking()
(55) In JavaScript, which method is used to display content in browser?
(A) document.write() (B) browsr.write() (C) script.write() (D) method.write()
(56) Which keyword is used to declare variable in JavaScript?
(A) variable (B) var (C) Var (D) Java Var
(57) What is a reusable block of code that performs a particular task in JavaScript?
(A) function (B) if statement (C) variable (D) method
(58) In JavaScript, which object is on the top of the level in browser object model?
(A) document (B) window (C) form (D) button
(59) In CSS, property and value are separated by which symbol?
(A) Semicolon (B) Colon (C) Comma (D) Space
(60) From given example below of CSS B {color : red} Which of the following is selector in CSS ?
(A) red (B) B (C) color (D) { }
(61) How many tabs will come in CSS style sheets dialog box in KompoZer?
(A) 5 (B) 6 (C) 7 (D) 8
(62) Which of the following is not a tab of CSS style sheets dialog box?
(A) Orals (B) General (C) Borders (D) Lists
(63) Which of the following tab of CSS style sheets dialog box shows the CSS code?
(A) Lists (B) Code (C) General (D) Source
(64) Which of the following web program provide static web page?
(A) JavaScript (B) HTML (C) Both (A) and (B) (D) None of these
(65) In following example of JavaScript document.write(“Computer with Tejas Thakkar”);
Which is known as method?
(A) (); (B).(dot) (C) write (D) document
(66) JavaScript statements can be grouped together in a block and block starts and end with
which brackets?
(A) < > (B) [ ] (C) ( ) (D) { }
(67) Which of the following is inbuilt function provided by JavaScript?
(A) alert() (B) newForm() (C) ValidateForm() (D) All of these

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

You might also like