Chapter 2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Std.

12 Reference Book – Chapter 2

Chapter 2
Cascading Style Sheets and Java Script

1. ____________ allows you to specify styles for the visual elements of the website.
(A) HTML (B) Style
(C) CSS (D) None
2. The detail of how to display the document is known as _____________.
(A) CSS (B) Validation
(C) Design (D) Style
3. CSS helps us to ______________________.
(A) Avoid duplication in coding
(B) Use the same content with different styles for different purpose
(C) Easy Maintenance of code
(D) All Above
4. The syntax of CSS consist of special symbols known as __________.
(A) Type (B) Rules
(C) Style (D) Input
5. How many parts are there of CSS rules?
(A) 2 (B) 8
(C) 4 (D) 6
6. Which of the following is a part of CSS rule?
(A) Selector (B) Declaration
(C) Both A and B (D) None
7. 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}
8. The ____________ is the HTML Element on which you want to apply the style.
(A) Selector (B) Declaration
(C) Both A and B (D) None
9. _______________ consist of a property associated with the HTML element used in
selector and its corresponding value.
(A) Selector (B) Declaration
(C) Both A and B (D) None
10. How many tabs are there of CSS Style sheet is there?
(A) 2 (B) 8
(C) 7 (D) 6
11. Each of the tabs of the CSS Style sheets used to give a specific ___________ to the
element.
(A) Type (B) Rules
(C) Style (D) Input
12. ___________ tab of the CSS Style sheets will show various style options like font family,
font size, line height, color, case, alignment and many more.

© Advanced School of Computer Information India Pvt. Ltd. 1


Std. 12 Reference Book – Chapter 2

(A) General (B) Text


(C) Lists (D) Box
13. __________ tab of the CSS Style sheets will show the CSS code.
(A) General (B) Text
(C) Lists (D) Box
14. CSS allows us to set the ___________ of the website without changing the underlying
structure.
(A) Type (B) Format
(C) Style (D) Input
15. The CSS file has _________ code compared to HTML code.
(A) More (B) Hard
(C) Easy (D) Less
16. What is the advantage of CSS file from the below?
(A) Hard (B) Quick
(C) Efficient (D) Both B and C
17. ___________ is a scripting language that allows you to add Programming aspects to
your web pages.
(A) HTML (B) Script
(C) Java (D) Java Script
18. Which of the following is a scripting language that simple, lightweight programming
language that does not contain advanced programming language?
(A) JAVA (B) HTML
(C) Javascript (D) C
20. Who has developed JavaScript?
(A) Netspt (B) Notscape
(C) NetScape (D) None of them
21. Javascript is used to ___________ the form.
(A) Design (B) Prepare
(C) Develop (D) Validate
22. Javascript is which type of script?
(A) Client Side (B) server side
(C) Inside (D) simple
23. Where the Javascript runs?
(A) Notepad (B) Browser
(C) form (D) None of them
24. 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>
25. JavaScript is a ___________ Language.
(A) Case Sensitive (B) Programming
(C) Web Designing (D) None of this
26. which of the following symbol signifies the start and end of a JavaScript block?
(A) Curly Bracket (B) Semicolon
(C) Square Bracket (D) Round Bracket

© Advanced School of Computer Information India Pvt. Ltd. 2


Std. 12 Reference Book – Chapter 2

27. Which statement is use to display the message in JavaScript?


(A) document.printf() (B) document.write()
(C) (A) and (B) both (D) None of this
28. How to create a form?
(A) Form->Define (B) Form->Form Field Properties
(C) (A) and (B) both (D) None of this
29. How many fields to create a simple form?
(A) 4 (B) 5
(C) 2 (D) 3
30. which of the following is a reusable block of code that perform a particular task?
(A) Code (B) Function
(C) Program (D) Array
31. Function is define by which keyword?
(A) Array (B) Code
(C) Function (D) Program
32. In Fuction , block of code is written inside _______ braces.
(A) () (B) []
(C) <> (D) {}
33. Which one is an inbult function in JavaScript?
(A) prompt() (B) alert()
(C) Both A and B (D) None of them
34. Which statement is use to stop the execution of the function?
(A) Function (B) return
(C) Both A and B (D) None of them
35. Which of the following statement is used to return a value in a function?
(A) Function (B) Select
(C) Send (D) Return
36. 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
37. Which of the following is not an event?
(A) Mouseover (B) Abort
(C) Set (D) Load
38. JavaScript code is executed in response to a given situation is known as _______.
(A) Event Handler (B) Event
(C) Both A and B (D) None of them
39. Which of the following container for storing data?
(A) Variable (B) Event
(C) Integer (D) Event Handler
40. Which keyword is used to define a variable?
(A) Var (B) Ver
(C) Vaar (D) None of them
41. Variable is a container for _____________.

© Advanced School of Computer Information India Pvt. Ltd. 3


Std. 12 Reference Book – Chapter 2

(A) Storing Data (B) Inserting Data


(C) Updating Data (D) None of them
42. Variables in Javascripts are ______________.
(A) Case Sensitive (B) Uppercase sensitive
(C) Lowercase sensitive (D) None of then
43. if statement is also known as which type of statement?
(A) Decision making (B) Conditional
(C) Looping (D) None of them
44. BOM stands for _______.
(A) Browser Object Model (B) Basic Object Model
(C) Both A and B (D) none of them
45. Have you create an object in a browser object model?
(A) True (B) False
46. Which of the following is the top level object in the BOM?
(A) Browser Object (B) Window Object
(C) Both A and B (D) None of them
47. Window object contains which objects?
(A) Document (B) Browser
(C) Element (D) None of them
48. Document object contain which objects?
(A) Browser (B) Form
(C) Element (D) All of them
49. Form object contain which objects?
(A) Browser (B) Form
(C) Element (D) All of them
50. which one is not an element object?
(A) Radio (B) Text
(C) Checkbox (D) None of them
51. User gets a alert method then which method is calling?
(A) focus (B) onmouseover
(C) onsubmit (D) onclick
52. Which of the following stands for NaN?
(A) Not a Numeric (B) Not a Number
(C) Not a Noun (D) Not an Numeric

© Advanced School of Computer Information India Pvt. Ltd. 4

You might also like