0% found this document useful (0 votes)
23 views8 pages

STD 12 Lesson 2 1

The document is a question set for a Computer subject exam for 12th grade students at Divine Public School, covering topics related to Cascading Style Sheets (CSS) and JavaScript. It includes multiple-choice questions about CSS syntax, JavaScript functions, event handling, and the Browser Object Model (BOM). The questions aim to assess students' understanding of web development concepts and programming basics.

Uploaded by

bxvftvphnn
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)
23 views8 pages

STD 12 Lesson 2 1

The document is a question set for a Computer subject exam for 12th grade students at Divine Public School, covering topics related to Cascading Style Sheets (CSS) and JavaScript. It includes multiple-choice questions about CSS syntax, JavaScript functions, event handling, and the Browser Object Model (BOM). The questions aim to assess students' understanding of web development concepts and programming basics.

Uploaded by

bxvftvphnn
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/ 8

Divine Public School, Navsari

Std:12th (Eng.med) Sub: Computer


2. Cascading Style Sheets and Java Script

1) What is the full form of CSS?


a) Computing Style sheet
b) Cascading Style sheet
c) Computing Style service
d) Cascading Secure Sheet
2) …………………..allowsallows you to specify styles for the visual elements of the website.
a) DHTML b) HTML c) CSS d) CHS
3) ………………..can can be used for the information to be put on internet.
a) CSS b) HTML c) DHTML d) All of these
4) How to display the document is known as …………..
a) Style b) rules c) css d) regulation
5) The syntax of CSS consists of special symbols known as ………………..
……………….
a) Regulation b) rules c) style d) cascade
6) A CSS rule has ………………..main
……………….. parts.
a) 2 b) 3 c) 4 d) 5
7) Which are the two main part of CSS rule?
a) Selector b) one or more declarations
c) both (a) &(b) d) none
8) …………….is the HTML element on which we want to apply the style
a) Selector b) one or more declarations
c) both (a) &(b) d) none
9) …………….consists of a property associated with the HTML element used in selector
and its corresponding value.
a) selector b) declaration c) HTML d) rules
10) CSS syntax uses ______brackets.
a) () b) { } c) [ ] d) <>
11) …………….is is taken as selector.
a) HTML details b) HTML element c) Any name d) Identifier
12) Style can be applied to………………
………………
a) HTML element b) Any name
c) Identifier d) parameter
13) CSS rules(declaration) contain ……………….. part.
a) Property b) value for property
c) (a) and (b) both d) none of these

DIVINE PUBLIC SCHOOL NAVSARI –UMESH


UMESH SIR Page 1
14) ………………..is the correct syntax of CSS.
a) Selector {Property ; value} b) Select {Property ,value};
c) selector {Property : value} d) Selector [Property ; value]
15) As per our syllabus, using…………….. software CSS is created.
a) Notepad b) Kompozer c) Gedit d) Compozer
16) In the sentence H1{color:green} , which one is called a selector?
a) Color b) green c) H1 d) none of these
17) Kompozer uses ……………. as default.
a) CSS b) HTML c) DHTML d) PHP
18) 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
19) Cascade button is on ………………… toolbar of Kompozer.
a) Standard toolbar b) Composition toolbar
c) format toolbar d) none
20) 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) none
21) ……………… tab is not displayed on the right side of CSS Stylesheet dialog box.
a) General b) Number c) Text d) Box
22) ……………..selection is used to give specific style to the HTML element.
a) General b) Background c) Text d) all of these
23) ……………….button is clicked to insert an image as the background while preparing
style.
a) Choose file b) select file
c) Browser d) select image
24) ……………… tab displays the Stylesheet rule that is given to the element.
a) General b) Box c) Aural d) Code
25) How many buttons are there in CSS style sheets to prepare style?
a) 5 b) 6 c) 7 d) 8
26) ……………..view is selected to see the source code of CSS style sheet.
a) Design b) source c) split d) normal
27) …………….. company has developed the JavaScript.
a) Microsoft b) Oracle
c) Netscape d) Intel
28) Which language is allowed to add programming in HTML form.
a) Javascript b) script c) java d) c
29) ………………controls appearance of the webpage.
a) JavaScript b) HTML c) DHTML d) PHP

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 2


30) What is the use of JavaScript in a webpage?
a) To improve the design b) to validate the forms
c) (a) and(b) d) to change the modern format in a webpage
31) …………….. browser supports JavaScript.
a) Mozila Firefox b) Chrome
c) safari and Internet explorer d) all of these
32) The web pages designed using HTML were ………………
a) Dynamic b) static c) complete d) all of these
33) 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
34) What type of script is JavaScript?
a) Application client side b) Application server side
c) for any webpage d) all of these
35) 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
36) In which tag java script is inserted?
a) <head> b) <body> c)both (a) &(b) d) none of these
37) Generally it is preferred that the JavaScript code should be placed in the
………………tag.
a) <body>…</body> b) <head>……</head>
c) <title>……</title> d) none
38) Which tag is used to insert java script code?
a) </script>……….</script> b) <script>………<script>
c) <script>……….</script> d) <script>……..<//script>
39) In document.write (“Enjoy computer with Umesh sir”); ………………is the object.
a) Document b) write c)Enjoy d)none of these
40) In document.write (“Hello Umesh sir”); ………………is the method.
a) Document b) write
c)Enjoy d)none of these
41) ………………..is the correct command to display something directly in the browser.
a) Print.write() b) document.write()
c) display.write () d) none of thses
42) ……………..symbol is the optional in JavaScript.
a) Colon (:) b) semicolon (;) c) full stop (.) d) double quotes (“”)
43) What is the use of semicolon in JavaScript?
a) Termination of statement
b) separation of statement
c) merge d) none

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 3


44) JavaScript statements are written in _____ brackets.
a)<> b) () c) { } d) [ ]
45) ……………is a reusable block of code that performs a particular task.
a) Function b) main c) void main d) func
46) Functions are defined with …………… keyword.
a) Function b) main c) void main d) func
47) ………………… is the inbuilt function.
a) Validate form () b) alert c) form d) none of these
48) Function is also known as
a) Routine b) dynaset c) task d) procedure
49) What is the use of a alert() function?
a) Accept the content b) displays the content
c) (a) and (b) both d) none
50) Values given in the function are known as
a) Variable b) arguments c) parameters d) (b) or (c)
51) ……… statement is used to stop the execution of the function and return a specific
value.
a) end b) exit c) return d) pause
52) The intersection between the user and the web page causes the browser to
generate …………………
a) event handler b) function c) routine d) event
53) When user clicks the submit button is known as
a) Events b) event handler c) work d) process
54) When loading of image is cancelled, it is known as ……………….event.
a) Blur b) abort c) load d) unload
55) When an error occurs while loading an image. It is known as …………….event.
a) Unload b) blur c) error d) reset
56) When element such as button becomes active, it is known as
a) Active b) blur c) select d) focus
57) When element such as button becomes inactive, it is known as
a) Active b) blur c) select d) focus
58) When user leaves a page , it is known as
a) Unload b) reset c) error d) blur
59) When mouse pointer is over the particular element, it is known as
a) Select b) mouseover c) submit d) load
60) When document or image is loaded, it is known as
a) Load b) select c) click d) submit
61) When an event occurs, a specific java script code is executed in response to a given
situation. This java script code is known as ……………….
a) Event b) event handler c) focus d) load

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 4


62) Managing an even is known as ………….
a) Event b) event handler c) focus d) load
63) ………… is the event handler.
a) HTML code b) Java script code
c) DHTML code d) all of these
64) ………………… is not an event handler.
a) Onclick () b) onsubmit () c) load () d) onfocus ()
65) …………….. is not an event.
a) Blur b) exit c) reset d) error
66) ………………. is not an event.
a) Blur b) set c) reset d) error
67) ………………. is the name of event handler for the ‘click’ event.
a) Click () b) on click () c) on click { } d) on click []
68) ………………. is the name of event handler for the ‘submit’ event.
a) OnSubmit () b) submit () c) onsubmit() d) onSubmit ()
69) ……………….means the storage for storing values.
a) Variable b) parameter c) identifier d) all of these
70) …………………..is a container for storing data.
a) Parameter b) identifier c) constant d) variable
71) Variable can store ………
a) Numbers b) strings c) text d) all of these
72) ………………… is used to declare variables in JavaScript.
a) Var b) var c) VAR d) vr
73) ………………..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
74) What is the use of Browser Object Model (BOM)?
a) To arrange the objects in browser
b) to change the webpage
c) to control the elements of the webpage
d) all of these
75) All browsers are split into different parts of objects that can be accessed using
JavaScript. These parts are known as
a) BOM b)BOC c) MOB d) OBC
76) What is the full form of BOM?
a) Browse Object Model b) Big Object Model
c) Browser Object Model d) Big Oriented Model

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 5


77) The top level object in the browser object model is
a) Document b) form c) window d) link
78) The window object is the …………… object in the browser.
a) Main b) global c) changer d) normal
79) ………………… is the most important object in the browser object model.
a) Form object b) document object
c) radio object d) checkbox object
80) Which object is used to display webpage in a browser?
a) Location object b) form object c) document object d) none
81) Which object is used to give reference to other objects.
a) Element b) document c) link d) all of these
82) …………….. method is used to take the control to the specific element of the form.
a) Focus b) alert c) document d) confirm
83) ……………… is not the inbuilt function.
a) isNaN () b) alert () c) if () d) confirm ()
84) ………………. is the most used numerical function in JavaScript.
a) isNaN () b) number () c) digits () d) none of these
85) isNaN(123) will give
a)true b) false c) error d) 123
86) isNaN(“Umesh sir”) will give
a) true b) false c) error d) hello
87) NaN stands for ……………
a) Number and Number b) Not a Numeric c) Not a Number d) None
88) Which button is used to select the picture for background in CSS?
a) Choose file b) picture c) image d) all of these
89) Document.form1.gender[0].checked displays which element?
a) First b) second c)third d) fourth
90) Document.form1.gender[1].checked displays which element?
a) First b) second c)third d) fourth
91) var x=document.form1.firstname.value , in this which one is a object ?
a) document b) form1 c) first name d) value
92) var x=document.form1.firstname.value , in this which one is a form name ?
a) object b) form1 c) first name d) value
93) var x=document.form1.firstname.value , in this which one is a field name ?
a) object b) form1 c) first name d) value
94) var x=document.form1.firstname.value , in this which one is a variable ?
a) object b) form1 c) x d) value

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 6


TEXT BOOK MCQ
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 rules?
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) b) <script>…………..</script>
c) <script>…………..<//script>
d)</script>……………..</script>
10) Which of the following symbols 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

DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 7


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) event handler
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?
a) Variable b) integer c) event d) event handler
16) Which of the following stand for BOM?
a) Browser Of Model b) Browser Object Model
c) Browser Object Modeling 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

JAVA SCRIPT
SCRIPT: 1

name

SUBMIT

<script>
function validateForm()
{
var x = document.js1(form name).name(field name).value;
if (x==null || x==””)
{
alert(“please enter the name”);
document.js1.name.focus();
return false;
}
}
</script>
DIVINE PUBLIC SCHOOL NAVSARI –UMESH SIR Page 8

You might also like