Well-structured Std 12 Computer Textbook MCQ Answers and Std 12 Computer MCQ Answers Ch 2 Cascading Style Sheets and JavaScript can serve as a valuable review tool before computer exams.
GSEB Std 12 Computer Chapter 2 MCQ Cascading Style Sheets and JavaScript
Question 1.
What is the full form of CSS ?
(A) Computing Stylesheet
(B) Cascading Stylesheet
(C) Computing Style Service
(D) Cascading Secure Sheet
Answer:
(B) Cascading Stylesheet
Question 2.
…………. allows you to specify styles for the visual elements of the website.
(A) DHTML
(B) HTML
(C) CSS
(D) CHS
Answer:
(C) CSS
Question 3.
What is the use of CSS ?
(A) To arrange the visual elements
(B) To specify styles for the visual elements
(C) To prepare coding of HTML
(D) To prepare JavaScript
Answer:
(B) To specify styles for the visual elements
Question 4.
Which is the wrong statement for CSS ?
(A) Specifies styles for the visual elements.
(B) Keeps it separate from the details of how to display the content.
(C) Specify the appearance of particular page elements on the screen.
(D) Arrange the visual elements.
Answer:
(D) Arrange the visual elements.
Question 5.
…………… is not the benefit of keeping the style separate from the content.
(A) Arrange the visual elements
(B) Avoid duplication in coding
(C) Easy maintenance of code
(D) Use the same content with different styles for different purposes
Answer:
(A) Arrange the visual elements
Question 6.
……………… can be used for the information to be put on internet.
(A) CSS
(B) HTML
(C) DHTML
(D) All of these
Answer:
(B) HTML
Question 7.
……………. specifies the styles for the visual elements.
(A) CSS
(B) HTML
(C) DHTML
(D) All of these
Answer:
(A) CSS
Question 8.
……………… can be done using CSS.
(A) Control the font types of font and element colors
(B) Background features
(C) Control the positions of elements
(D) All of these
Answer:
(D) All of these
Question 9.
…………….. sheet can be used to add special characters in the website.
(A) Spread
(B) Work
(C) Style
(D) Main
Answer:
(C) Style
Question 10.
The syntax of CSS consists of special symbols known as ………………… .
(A) regulation
(B) rules
(C) style
(D) cascade
Answer:
(B) rules
Question 11.
A CSS rule has ……………….. main parts.
(A) 2
(B) 3
(C) 4
(D) 5
Answer:
(A) 2
Question 12.
CSS syntax uses ……………. brackets.
(A) ( )
(B) { }
(C) [ ]
(D) < >
Answer:
(B) { }
Question 13.
…………….. is not the part of the CSS syntax.
(A) Selector
(B) Declarations
(C) HTML details
(D) None of these
Answer:
(C) HTML details
Question 14.
…………….. is taken as a selector.
(A) HTML details
(B) HTML element
(C) Any name
(D) Identifier
Answer:
(B) HTML element
Question 15.
Style can be applied to ……………. .
(A) HTML element
(B) Any name
(C) Identifier
(D) Parameter
Answer:
(A) HTML element
Question 16.
CSS rules contain …………….. part.
(A) property
(B) value for the property
(C) (A) and (B) both
(D) (A) or (B)
Answer:
(C) (A) and (B) both
Question 17.
……………… is the wrong statement for the CSS syntax.
(A) Selector must be an HTML element
(B) CSS syntax is divided into two parts
(C) More than one property can be used
(D) Property and value is separated using;
Answer:
(D) Property and value is separated using;
Question 18.
……………… is the correct syntax of CSS.
(A) Selector {Property ; Value}
(B) Selector {Property : Value};
(C) Selector {Property : Value}
(D) Selector [Property : Value]
Answer:
(C) Selector {Property : Value}
Question 19.
As per our syllabus, using ……………….. software CSS is created.
(A) Notepad
(B) KompoZer
(C) Gedit
(D) CompoZer
Answer:
(B) KompoZer
Question 20.
KompoZer uses ……………… as default.
(A) CSS
(B) HTML
(C) DHTML
(D) PHP
Answer:
(A) CSS
Question 21.
Using ……………… we can get confirmation that CSS is used by default by KompoZer.
(A) Edit → Preferences
(B) Tools → Preferences
(C) (A) or (B)
(D) None of these
Answer:
(C) (A) or (B)
Question 22.
How to open option dialog box in KompoZer ?
(A) Edit → Preferences
(B) Tools → Preferences
(C) (A) or (B)
(D) View → Preferences
Answer:
(C) (A) or (B)
Question 23.
……………… statement is wrong about the KompoZer software.
(A) CSS can be added with HTML
(B) CSS can be added easily
(C) KompoZer can only be used for CSS
(D) All of these
Answer:
(C) KompoZer can only be used for CSS
Question 24.
Cascade button is on ……………… toolbar of KompoZer.
(A) Standard toolbar
(B) Composition toolbar
(C) Format toolbar
(D) Drawing toolbar
Answer:
(B) Composition toolbar
Question 25.
While preparing a style, if a new file is opened and not saved by giving a filename then ……………….. dialog box opens.
(A) Option
(B) Page title
(C) New
(D) Save
Answer:
(B) Page title
Question 26.
The element which is used to define Stylesheet rule that CSS Stylesheet dialog box is under ……………….. heading.
(A) External Stylesheet
(B) Internal Stylesheet
(C) Right Stylesheet
(D) General Stylesheet
Answer:
(B) Internal Stylesheet
Question 27.
……………. tab is not displayed on the right side of CSS Stylesheet dialog box.
(A) General
(B) Number
(C) Text
(D) Box
Answer:
(B) Number
Question 28.
…………….. section is used to give specific style to the HTML element.
(A) General
(B) Text
(C) Background
(D) All of these
Answer:
(D) All of these
Question 29.
……………. button is clicked to insert an image as the background while preparing style.
(A) Choose file
(B) Select file
(C) Browser
(D) Select image
Answer:
(A) Choose file
Question 30.
…………….. tab displays the Stylesheet rule that is given to the element.
(A) General
(B) Box
(C) Aural
(D) Code
Answer:
(A) General
Question 31.
How many buttons are there in CSS Stylesheets to prepare style ?
(A) 5
(B) 6
(C) 7
(D) 8
Answer:
(C) 7
Question 32.
…………….. view is selected to see the source code of CSS Stylesheet.
(A) Design
(B) Source
(C) Split
(D) Normal
Answer:
(B) Source
Question 33.
……………. is false for CSS Stylesheet.
(A) To modify the Stylesheet user can make changes in CSS file.
(B) CSS has less-code compared to that in HTML.
(C) The webpages will load faster.
(D) CSS structure makes the website slow and inefficient.
Answer:
(D) CSS structure makes the website slow and inefficient.
Question 34.
……………. is the disadvantage of CSS.
(A) CSS has less-code compared to that in HTML
(B) Compatibility varies with different browsers.
(C) Stylesheet features are not supported by the browser
(D) (B) and (C) both
Answer:
(D) (B) and (C) both
Question 35.
………………. type of webpage is static.
(A) HTML
(B) DHTML
(C) JAVASCRIPT
(D) All of these
Answer:
(A) HTML
Question 36.
company has developed the JavaScript.
(A) Microsoft
(B) ORACLE
(C) Netscape
(D) Intel
Answer:
(C) Netscape
Question 37.
………….. is a simple, lightweight programming language that does not contain the advanced programming functionalities of language.
(A) JavaScript
(B) HTML
(C) DHTML
(D) None of these
Answer:
(A) JavaScript
Question 38.
………….. controls appearance of the webpage.
(A) JavaScript
(B) HTML
(C) DHTML
(D) PHP
Answer:
(B) HTML
Question 39.
What is the use of JavaScript in a webpage ?
(A) To improve the design
(B) To validate the forms.
(C) (A) and (B) both
(D) To change the modern format in a webpage
Answer:
(C) (A) and (B) both
Question 40.
………….. browser supports JavaScript.
(A) Mozilla Firefox
(B) Chrome
(C) Safari and Internet Explorer
(D) All of these
Answer:
(D) All of these
Question 41.
JavaScript can be used for a …………….. in a webpage.
(A) interactivity with the user
(B) control the browser
(C) dynamically create HTML content
(D) All of these
Answer:
(D) All of these
Question 42.
What type of a script is JavaScript ?
(A) Application client side
(B) Application server side
(C) For any webpage
(D) All of these
Answer:
(A) Application client side
Question 43.
It is used to validate the data entered in the HTML forms on the ………………. before sending it to
the server.
(A) Server side
(B) Client side
(C) HTML details
(D) All of these
Answer:
(B) Client side
Question 44.
…………….. can be checked in a form by using JavaScript.
(A) Has the user left any required field empty ?
(B) Has the user entered a valid date ?
(C) Check whether contents of two fields are same or not ?
(D) All of these
Answer:
(D) All of these
Question 45.
…………… is not true for JavaScript.
(A) JavaScript is used to improve the design
(B) JavaScript contains the advanced programming functionalities of languages like C and Java.
(C) JavaScript validates the form
(D) Browsers like Chrome and Safari support JavaScript
Answer:
(B) JavaScript contains the advanced programming functionalities of languages like C and Java.
Question 46.
…………… is true for JavaScript.
(A) JavaScript is not a case sensitive language
(B) The lines between the <script> and </script> tag contains the JavaScript code
(C) JavaScript is not included with HTML
(D) JavaScript can not be inserted directly as an independent part in a webpage
Answer:
(B) The lines between the <script> and </script> tag contains the JavaScript code
Question 47.
Generally it is preferred that the JavaScript code should be placed in the tag.
(A) <body> ….. </body>
(B) <head>….. </head>
(C) <title> ….. </title>
(D) <form> ….. </form>
Answer:
(B) <head>….. </head>
Question 48.
The ………………… tag tells the browser to interpret all the text between the <script> tags as a script.
(A) <body>
(B) <head>
(C) <script>
(D) <form>
Answer:
(C) <script>
Question 49.
In document.write(“HELLO DIVYAKANT SIR”), ……………. is the method.
(A) document
(B) write
(C) HELLO STUDENT
(D) none of these
Answer:
(B) write
Question 50.
……………. is the correct command to display something directly in the browser.
(A) print.write ( )
(B) document.write ( )
(C) display.write ( )
(D) write.document ( )
Answer:
(B) document.write ( )
Question 51.
In document.write (“Enjoy Computer with Divyakant Sir”); ……………… is the object.
(A) document
(B) write
(C) saraswati
(D) none of these
Answer:
(A) document
Question 52.
…………….. symbol is optional in JavaScript.
(A) Colon(:)
(B) Semicolon(;)
(C) Full stop(.)
(D) Double quotes(“ “)
Answer:
(B) Semicolon(;)
Question 53.
What is the use of semicolon in JavaScript ?
(A) Termination of statement
(B) Separation of statement
(C) Merge two statments
(D) All of these
Answer:
(B) Separation of statement
Question 54.
Putting a ……………. is a good programming practice.
(A) colon (:)
(B) @
(C) (;) semi colon
(D) #
Answer:
(C) (;) semi colon
Question 55.
JavaScript statements are written in …………….. brackets.
(A) < >
(B) ( )
(C) { }
(D) [ ]
Answer:
(C) { }
Question 56.
JavaScript statements can be grouped together in a …………………. .
(A) function
(B) routine
(C) (A) or (B)
(D) main block
Answer:
(C) (A) or (B)
Question 57.
Functions are defined with ……………….. keyword.
(A) function
(B) main
(C) void main
(D) func
Answer:
(A) function
Question 58.
……………. is the inbuilt function.
(A) Validate Form ( )
(B) alert
(C) form ( )
(D) none of these
Answer:
(B) alert
Question 59.
Function is also known as ……………… .
(A) routine
(B) dynaset
(C) task
(D) procedure
Answer:
(A) routine
Question 60.
What is the use of alert () function ?
(A) Accepts the content
(B) Displays the content
(C) (A) and (B) both
(D) Accepts the data from the user
Answer:
(C) (A) and (B) both
Question 61.
……………. type of function is alert().
(A) User defined
(B) Built-in
(C) Simple and easy
(D) None of these
Answer:
(B) Built-in
Question 62.
……………. statement is false about the function.
(A) Function can be called from any location in the source code
(B) Function can only be defined in the body section
(C) Function only accepts the value given in its brackets
(D) Function can be called by its name
Answer:
(B) Function can only be defined in the body section
Question 63.
Values given in the function are known as …………….. .
(A) variable
(B) arguments
(C) parameters
(D) (B) or (C)
Answer:
(D) (B) or (C)
Question 64.
……………. statement is used to stop the execution of the function and return a specific value.
(A) end
(B) exit
(C) return
(D) pause
Answer:
(C) return
Question 65.
When user clicks the submit button is known as ………………. .
(A) events
(B) event handler
(C) work
(D) process
Answer:
(A) events
Question 66.
…………….. is used to make interactive page which respond to the event done by user.
(A) HTML
(B) DHTML
(C) Java Programming
(D) JavaScript
Answer:
(D) JavaScript
Question 67.
…………….. is created by the interaction of user and webpage.
(A) Events are created
(B) Event handler is created
(C) Process is done
(D) Work is done
Answer:
(A) Events are created
Question 68.
When loading of image is cancelled, it is known as ……………….. event.
(A) blur
(B) abort
(C) load
(D) unload
Answer:
(B) abort
Question 69.
When an error occurs while loading an image, it is known as …………….. event.
(A) unload
(D) blur
(C) error
(D) reset
Answer:
(C) error
Question 70.
When element such as button becomes active, it is known as …………….. event.
(A) active
(B) blur
(C) focus
(D) select
Answer:
(C) focus
Question 71.
When user leaves a page, it is known as ………………. event.
(A) unload
(B) reset
(C) error
(D) blur
Answer:
(A) unload
Question 72.
When mouse pointer is over the particular element, it is known as ……………. event.
(A) select
(B) mouseover
(C) submit
(D) load
Answer:
(B) mouseover
Question 73.
When document or image is loaded, it is known as ……………… event.
(A) load
(B) select
(C) click
(D) submit
Answer:
(A) load
Question 74.
………….. is the event handler.
(A) HTML Code
(B) JavaScript Code
(C) DHTML Code
(D) Java programming Code
Answer:
(B) JavaScript Code
Question 75.
…………… specific code is executed when a particular event occurs.
(A) JavaScript
(B) HTML
(C) Java
(D) DHTML
Answer:
(A) JavaScript
Question 76.
……………… is not an event handler.
(A) onclick( )
(B) onsubmit( )
(C) load( )
(D) onfocus( )
Answer:
(C) load( )
Question 77.
…………….. is not an event handler.
(A) blur
(B) exit
(C) reset
(D) error
Answer:
(B) exit
Question 78.
…………… is the name of event handler for the ‘click’ event.
(A) Click( )
(B) Onclick ( )
(C) On Click {}
(D) OnClick [ ]
Answer:
(B) Onclick ( )
Question 79.
…………….. is the name of event handler for the ‘submit’ event.
(A) OnSubmit( )
(B) Submit( )
(C) onsubmit( )
(D) onSubmit( )
Answer:
(C) onsubmit( )
Question 80.
………….. means the storage for storing values.
(A) Variable
(B) Parameter
(C) Identifier
(D) All of these
Answer:
(A) Variable
Question 81.
…………. is used to declare variables in JavaScript.
(A) Var
(B) var
(C) VAR
(D) vr
Answer:
(B) var
Question 82.
……………. is true for the variables in JavaScript.
(A) Variable is case sensitive
(B) Number, string or characters can be stored in variable
(C) Variables can be declared by using var keyword
(D) All of these
Answer:
(D) All of these
Question 83.
……………….. is the use of if statement.
(A) Conditional statement to change the flow of program
(B) Checks for the validation of condition
(C) (A) and (B) both
(D) For non-conditional work
Answer:
(C) (A) and (B) both
Question 84.
BOM stands for ……………. .
(A) Browser Oriented Model
(B) Browser Object Model
(C) Big Object Model
(D) Big Oriented Model
Answer:
(B) Browser Object Model
Question 85.
What is the use of Browser Object Model ?
(A) To arrange the objects in browser
(B) To change the webpage
(C) To control the elements of the webpage
(D) All of these
Answer:
(C) To control the elements of the webpage
Question 86.
All browsers are split into different parts or objects that can be accessed using JavaScript. These parts are known as ……………… .
(A) BOM
(B) BOC
(C) MOB
(D) OBC
Answer:
(A) BOM
Question 87.
The top level object in the browser object model is ……………… object.
(A) document
(B) form
(C) window
(D) link
Answer:
(C) window
Question 88.
The window object is the ……………… object in the browser.
(A) main
(B) global
(C) changer
(D) normal
Answer:
(B) global
Question 89.
Why the window object is known as the global object ?
(A) Because it is common in all the browsers.
(B) Because all other browser objects are contained within it.
(C) Because it is the top object of BOM.
(D) All of these
Answer:
(B) Because all other browser objects are contained within it.
Question 90.
By ……………… web browser window is controlled in window object.
(A) methods
(B) properties
(C) (A) and (B) Both
(D) document
Answer:
(C) (A) and (B) Both
Question 91.
What is included in object ?
(A) Document object
(B) Form object
(C) Radio object
(D) All of these
Answer:
(A) Document object
Question 92.
…………….. is the most important object in the browser object model.
(A) Form object
(B) Document object
(C) Radio object
(D) Checkbox object
Answer:
(B) Document object
Question 93.
………………. object is used to display webpage in a browser.
(A) Location object
(B) Form object
(C) Document object
(D) Textarea object
Answer:
(C) Document object
Question 94.
………………. is included in the document object of BOM.
(A) Form
(B) Images
(C) Links and other elements
(D) All of these
Answer:
(D) All of these
Question 95.
……………… object is used to give reference to other objects.
(A) Element
(B) Document
(C) Link
(D) All of these
Answer:
(A) Element
Question 96.
…………….. can be the object as the element object of browser object mode.
(A) Radio button
(B) Text box
(C) Check box
(D) All of these
Answer:
(D) All of these
Question 97.
…………………. method is used to take the control to the specific element of the form.
(A) Focus
(B) Alert
(C) Document
(D) Confirm
Answer:
(A) Focus
Question 98.
When focus () method is used ?
(A) Any time in JavaScript
(B) After getting alert() message
(C) After getting confirm message
(D) When the for is created
Answer:
(B) After getting alert() message
Question 99.
In internet some fields in the form are displayed with red asterisk (*) is known as ……………. .
(A) this field is optional.
(B) this field is mandatory, can’t leave it blank.
(C) this field is out of the reach.
(D) only correct information is to be filled up.
Answer:
(B) this field is mandatory, can’t leave it blank.
Question 100.
………………. is used to clear the validation of the entered data.
(A) HTML
(B) DHTML
(C) Java
(D) JavaScript
Answer:
(D) JavaScript
Question 101.
……………… is not the inbuilt function.
(A) isNaN( )
(B) alert( )
(C) if( )
(D) confirm( )
Answer:
(C) if( )
Question 102.
………………. built in function is there to work with numbers in JavaScript.
(A) digits( )
(B) isNaN( )
(C) isnan( )
(D) alert( )
Answer:
(B) isNaN( )
Question 103.
……………… is the most used numerical function in JavaScript.
(A) isNaN( )
(B) Number( )
(C) digits( )
(D) None of these
Answer:
(A) isNaN( )
Question 104.
NaN stands for ……………… .
(A) Number and Number
(B) Not a Number
(C) Not a Numeric
(D) Numeric and Number
Answer:
(B) Not a Number
Question 105.
isNaN(123) will give …………….. output.
(A) true
(B) false
(C) error
(D) 123
Answer:
(B) false
Question 106.
…………….. isNaN(“DivyakantSir”) will give output.
(A) true
(B) false
(C) error
(D) hello
Answer:
(A) true
Question 107.
……………. element is used to write script in HTML.
(A) <head> … </head>
(B) <script> … </script>
(C) <scr> … </scr>
(D) <Body> … </Body>
Answer:
(B) <script> … </script>