Std12e ch2
Std12e ch2
Chapter - 2
Cascading Style Sheets and Java Script
3. Which language is used to describe the information content of the document and
not the style?
a) HTML b) C++ c) C d) Java
4. describes the style of the elements in the document and not its contents.
a) CSS b) HTML c) HTTP d) SET
5. Using............, we can control the font types, font and elements colors, pad spaces,
margins and positions in our website.
a) CSS b) HTML c) HTTP d) SET
8. The......................is the HTML element on which the user wants to apply the style.
a) selector b) Declaration c) HTML d) CSS
10. In the declaration, the property and value are separated with ……… sign and
surrounding with
……………….brackets.
a) : (colon) , { } curly b) ; (Semicolon) , <> Angular
c) , (comma) , ( ) Circle d) None
1
RSCD
12. KompoZer uses CSS by default, But when it is not selected then Click
…………….and select the checkbox “Use CSS Styles instead of HTML elements
and attributes”.
a) Edit --> Preferences b) Insert Preferences c) Tools Preferences d) None
14. When the user selects the internal style sheet option from the CSS stylesheet
dialog box, on the right side of the window, the user will see......................types of
various tabs.
a) general, Text, Background b) Borders, Box
c) Lists and Aural d) All of above
15. The..............tab has various styles like Font family, Font size, line height, color,
case, Alignment and many more.
a) Text b) Background c) General d) Borders
16. To set the background color, select the..............................tab from the CSS
stylesheet dialog box.
a) Text b) Background c) General d) Borders
17. If the user wants to keep an image in the background then in the Image option,
Click on………button and select the file for the background.
a) Choose file b) Browse c) select file d) download
18. To set the border, select the……… tab From the CSS stylesheet dialog box.
a) Text b) Background c) General d) Borders
19. Which option is selected when the user wants to apply the same border on all
the four sides from the CSS stylesheet dialog box?
a) “All four sides use same border style” b) Side use same border style
c) All two sides use same border style d) all border are same style
20. Which tab will show the CSS code (Source code) which is generated through the
user.
a) General b) Text c) Borders d) Background
21. To add the other elements, click on the arrow of...............button in the upper
left corner of the CSS stylesheet dialog box.
a) CSD b) CSS c) BDS d) HTML
22. allows us to set the format of the website without changing the
underlying structure.
a) CSD b) CSS c) BDS d) HTML
2
RSCD
28. is used in web pages to improve the design and validate the forms.
a) C b) C++ c) Java d) JavaScript
31. is used to validate the data entered in the HTML forms on the client
side before sending it to the server.
a) C b) C++ c) Java d) JavaScript
42. To add the script inside the <head> tag, user must open the..................view of a
page.
a) Design b) Source c) Split d) Normal
3
RSCD
45. is useful in creating interactive web pages which responds to the action
performed by the user.
a) JavaScript b) HTML c) CSS d) DHTML
46.The interaction between the user and the web page causes the browser to
generate …………
a) event b) event handler c) Processor d) Function
.
47.When an event occurs, a specific JavaScript code is executed in response to a
given situation. This JavaScript code is known as………..
a) event handler b) event c) function d) block
Event Description
4
RSCD
55. The conditional statement......................is used to change the flow of the program.
a) if b) case c) for d) while
57. To control the web browsers window or the web page the user use the
……….model.
a) Browser Object Model (BOM) b) Browser Object Machine (BOM)
c) Browser oriented Model (BOM) d) Browser Objective Model (BOM)
58.All browsers are split into different parts or objects that can be accessed using
JavaScript. These parts are known as the ………….
a) Browser Object Model (BOM) b) Browser Object Machine (BOM)
c) Browser oriented Model (BOM) d) Browser Objective Model (BOM)
59. BOM represents the...................of entire browser along with the toolbar, menu,
status bar, web page and many more.
a) hierarchy b) single level c) liner d) multi level
60.The user does not have to create …………in a browser object model; which are
created automatically when the browser opens the web page.
a) object b) function c) variable d) block
61. object represents the browser window or individual frame within the
window which is created automatically by the browser.
a) Window b) document c) form d) variable
62. The....................object is the most important object in the browser object model.
a) Window b) document c) form d) variable
63. The.................object is used to represent the web page displayed in the browser.
a) Window b) document c) form d) variable
64.All the elements of the web page like forms, images, links and others are
contained within the..................object.
a) Window b) document c) form d) variable
5
RSCD
69. mark is an indication to the user that is a compulsory field which should
not be kept empty.
a) * (astrick) b) @ c) $ d) &
80. Which of the following object comes under document object in the browser object
model?
a) Form, link b) Form, history c) Form, self d) Form, parent
82. Which of the following method sends the data as a block through the HTTP
transition?
a) PUT b) SET c) POST d) GET
84. Which of the following colored outline is inserted by Kompozer after defining form?
a) File name, Action URL, method b) Form name, Anchore name, methods
c) Force name, method URL, method d) Form name, Action URL, method
85. Which of the following dialog box is viewed when user click save button first time
in Kompozer?
a) Close all b) save all c) save as d) Page title
86. Which of the following element is used to create a drop down list or menu in a
form?
a) Drop b) Input c) Select d) Area
7
RSCD
92. In javascript, which event would occur when loading of image is cancelled?
a) blur b) load c) abort d) unload
93.In Kompozer, which option of „Table” tab of „Table properties‟ dialog box is used to
align the table as left, right or center?
a) size b) Border and spacing c) Table Alignment d) Caption
96.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
98.In „CSS stylesheets‟ dialog box of Kompozer, which tab is used to change the
color of a font?
a) General b) Text c) Background d) Lists
8
RSCD
Textual 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
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
9
RSCD
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
17. Which of the following is the top level object in the BOM?
a) window b) document c) page d) Location