2025 02 05 20 37 Solution
2025 02 05 20 37 Solution
JAVASCRIPT
STD 12 - COMPUTER Total Marks : 200
MCQs... {PART-1}
Section A
Page 1
Ans. : CSS
8. A CSS rule has ……….. main parts.
(A) 2 (B) 3 (C) 4 (D) 5
Ans. : 2
9. ………… type of webpage is static.
(A) HTML (B) DHTML (C) JAVACRIPT (D) All of these
Ans. : HTML
10. Which of the following allows specifying styles for the visual elements of
the website ?
(A) Cascading Style sheets (B) Web page
(C) Form (D) Animation
Ans. : Cascading Style sheets
11. Which of the following are two main parts of CSS rule ?
(A) Selector, declaration (B) Select, declaration
(C) Selector, declare (D) Selection, declaration
Ans. : Selector, declaration
12. …………. controls appearance of the webpage.
(A) JavaScript (B) HTML (C) DHTML (D) PHP
Ans. : HTML
13. ………. Is not the part of the CSS syntax.
(A) Selector (B) Declarations (C) HTML details (D) None of these
Ans. : HTML details
14. KompoZer uses ……….. as default.
(A) CSS (B) HTML (C) DHTML (D) PHP
Ans. : CSS
15. …………… section is used to give specific style to the HTML element.
(A) General (B) Text (C) Background (D) All of these
Ans. : All of these
16. ………… tab displays the Stylesheet rule that is given to the element.
(A) General (B) Box (C) Aural (D) Code
Ans. : General
17. …………. View is selected to see the source code of CSS Stylesheet.
Page 2
(A) Design (B) Source (C) Split (D) Normal
Ans. : Source
18. What type of a script is JavaScript ?
(A) Application client side (B) Application server side
(C) For any webpage (D) All of these
Ans. : Application client side
19. JavaScript statements are written in ……………… brackets.
(A) > < (B) ( ) (C) { } (D) [ ]
Ans. : { }
20. Functions are defined with ………….. keyword.
(A) function (B) main (C) void main (D) func
Ans. : function
21. Function is also known as …………. .
(A) routine (B) dynaset (C) task (D) procedure
Ans. : routine
22. ………….. type of function is alert ().
(A) User defined (B) Built-in (C) Simple and (D) None of these
easy
Ans. : Built-in
23. Values given in the function are known as ……………
(A) variable (B) arguments (C) parameters (D) (B) or (C)
Ans. : (B) or (C)
24. When user clicks the submit button is known as …………..
(A) events (B) event handler (C) work (D) process
Ans. : events
25. When element such as button becomes active, it is known as …………..
event.
(A) active (B) blur (C) focus (D) select
Ans. : focus
26. …………. means the storage for storing values.
(A) Variable (B) Parameter (C) Identifier (D) All of these
Ans. : Variable
Page 3
27. The window object is the ………….. object in the browser.
(A) main (B) global (C) changer (D) normal
Ans. : global
28. By ………….. web browser window is controlled in window object.
(A) methods (B) properties (C) both (A) and (D) document
(B)
Ans. : (A) and (B) Both
29. …………. Object is the most important object in the browser object model.
(A) Radio button (B) Text box (C) Check box (D) All of these
Ans. : All of these
30. ………. is used to clear the validation of the entered data.
(A) HTML (B) DHTML (C) Java (D) JavaScript
Ans. : JavaScript
31. ……… built in function is there to work with numbers in JavaScript.
(A) digits( ) (B) isNaN( ) (C) isnan( ) (D) alert( )
Ans. : isnan( )
32. When document or image is loaded, it is known as …………… event.
(A) load (B) select (C) click (D) submit
Ans. : load
33. ………… is not an event handler.
(A) blur (B) exit (C) reset (D) error
Ans. : exit
34. ……… is used to declare variables in JavaScript.
(A) Var (B) var (C) VAR (D) vr
Ans. : var
35. 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
Ans. : BOM
36. The top level object in the browser object model is ………… object.
(A) document (B) form (C) window (D) link
Ans. : window
Page 4
37. ……….. is the most used numerical function in JavaScript.
(A) isNaN( ) (B) Number( ) (C) digits( ) (D) None of these
Ans. : isNaN( )
38. inNaN(123) will give ………….. output.
(A) true (B) false (C) error (D) 123
Ans. : false
39. Which of the following allows specifying styles for the visual elements of
the website?
(A) Cascading (B) Web page (C) Form (D) Animation
Style Sheets
Ans. : Cascading Style Sheets
40. Which of the following are two main parts of CSS rule?
(A) Selector, declaration (B) Select, declaration
(C) Selector, declare (D) Selection, declaration
Ans. : Selector, declaration
41. Which of the following is an HTML element on which style can be
applied?
(A) declaration (B) selector (C) select (D) declare
Ans. : selector
42. Which of the following has developed JavaScript?
(A) Yahoo (B) Google (C) Wikipedia (D) Netscape
Ans. : Netscape
43. Which of the following is a scripting language that, allows adding
programming to web pages?
(A) Action script (B) JavaScript (C) HTML (D) CSS
Ans. : JavaScript
44. 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
Ans. : JavaScript
45. Which of the following is a reusable block of code that performs a
particular task?
Page 5
(A) Array (B) Code (C) Program (D) Function
Ans. : Function
46. Which of the following is a reusable block of code that performs a
particular task?
(A) Array (B) Code (C) Program (D) Function
Ans. : Function
47. Which of the following is a container for storing data?
(A) Variable (B) Integer (C) Event (D) Event handler
Ans. : Variable
48. CSS helps you to specify which of the following is for the visual elements
of the website.
(A) Style (B) Size (C) Face (D) Template
Ans. : Style
49. Which of the following helps us to keep the information content of a
document separate from the details of how to display it?
(A) Form (B) CSS (C) Frame (D) javaScript
Ans. : CSS
50. What is known as how to display the document?
(A) Template (B) Wizard (C) Style (D) Object
Ans. : Style
51. Which of the following is an advantage to keep the style separate from
the content?
(A) Use the same content with different styles for different purposes.
(B) Avoid duplication in coding.
(C) Easy maintenance of code.
(D) All of these
Ans. : All of these
52. Which of the following describes the style of the elements in the
document and not its contents?
(A) HTML (B) CSS (C) JavaScript (D) Java
Ans. : CSS
53. Using CSS, what can be controlled in our website?
Page 6
(A) font, font types and element (B) pad spaces
colors (C) margins and element position
(D) all of these
Ans. : font, font types and element colors
54. Syntax of which of the following consists of special symbols known as
rules?
(A) HTML (B) Java (C) CSS (D) JavaScript
Ans. : JavaScript
55. How many parts a CSS rule has?
(A) Two (B) Three (C) Four (D) five
Ans. : Two
56. What is Hi, in Hi {color: green}?
(A) Selector (B) Property (C) Value (D) Declaration
Ans. : Selector
57. What is color, in Hi {color: green}?
(A) Selector (B) Property (C) Value (D) Declaration
Ans. : Property
58. What is green, in Hi {color: green}?
(A) Selector (B) Property (C) Value (D) Declaration
Ans. : Value
59. What is {color: green}, in H1{color: green}?
(A) Selector (B) Value (C) Property (D) Declaration
Ans. : Declaration
60. What is to be selected to make sure that KompoZer uses CSS by default?
(A) Edit → (B) File (C) Edit → CSS (D) Edit→ Style
Preferences → Preferences
Page 7
(A) Advanced (B) General (C) Fonts (D) Application
Ans. : General
63. Which dialogue box shows option “Use CSS Styles instead of HTML
elements and attributes”?
(A) Genera (B) Options (C) Preferences (D) Style
Ans. : Options
64. Which dialogue box is opened if the file is not saved after clicking
cascade button in KompoZer?
(A) Save (B) Page title (C) Save As (D) CSS
Ans. : Page title
65. When is the file saved in KompoZer?
(A) After giving a page title (B) Before giving a page title
(C) Any of these (D) None of these
Ans. : After giving a page title
66. Which dialogue box opens in KompoZer after saving a file by clicking a
Cascade button?
(A) CSS (B) Stylesheet (C) Style set (D) CSS Stylesheet
Ans. : CSS Stylesheet
67. What is to be selected from the following to create the style rule for an
element from CSS Stylesheets dialogue box?
(A) Drop down (B) Radio button (C) Check box (D) Text area
menu
Ans. : Drop down menu
68. Which button is to be clicked after selecting an element to create a style
from CSS Stylesheets?
(A) Style rule (B) Create (C) Rule (D) Create Style
rule
Ans. : Create Style rule
69. Which dialogue box will appear by selecting hi element from the
dropdown menu?
(A) General, Text (B) Background, Borders
(C) Box, Lists, Aural (D) All of these
Ans. : All of these
Page 8
70. “To give a specific style to the element a1,1 the tabs may not be
applicable to the selector for which the style rule is created.” clarify this
statement.
(A) This statement is true (B) This statement is false.
(C) It depends on KompoZer (D) It depends on kernel
version.
Ans. : This statement is false.
71. Which of the following drop down menu contains Uppercase option in
text tab of CSS Stylesheets?
(A) Case (B) Tools (C) Change case (D) Change
Ans. : Case
72. From which of the following drop down menu Center option is selected
in text tab of CSS stylesheets?
(A) Align (B) Tools (C) Alignment (D) Arrange
Ans. : Alignment
73. Which button tab is to be clicked to select color from background CSS
Stylesheets?
(A) Background (B) Bg Color (C) Palette (D) Color Palette
Ans. : Color Palette
74. Which check box should be selected to apply the same border on all the
four sides from border tab in CSS Stylesheet?
(A) All four sides use same border (B) Border style
style (C) All Border
(D) All side Border
Ans. : All four sides use same border style
75. By selecting which of the following options, the effect made on a single
side will be applied on all the four sides?
(A) Top (B) All (C) Bottom (D) Left
Ans. : Top
76. In which of the following drop down menus dotted option is available in
border tab of CSS Stylesheets?
(A) Shape (B) Style (C) Draw (D) Define
Ans. : Shape
Page 9
77. In which of the following sections the preview of the border style used by
us can be seen?
(A) View (B) Style view (C) Preview (D) Display
Ans. : View
78. In which of the following tabs the css code shown, is generated through
CSS Stylesheet dialogue boxes?
(A) General (B) Lists (C) Aural (D) Text
Ans. : General
79. If you know HTML coding then from which tab the css code can be
edited?
(A) General (B) Lists (C) Aural (D) Text
Ans. : General
80. What is shown in General tab of CSS Style sheets dialogue box?
(A) JavaScript (B) CSS code (C) HTML code (D) all of these
Ans. : CSS code
81. Which of the following allows us to set the format of the website without
changing the underlying structure?
(A) Java (B) HTML (C) CSS (D) JavaScript
Ans. : HTML
82. What does CSS allow for the website without changing the underlying
structure?
(A) Upload (B) Download (C) Formation (D) Registration
Ans. : Formation
83. By separating which of the following from its underlying logical structure
we can make changes to the website without the fear of accidentally
changing the data?
(A) Layout of the website (B) Format properties of the
website
(C) a and b both (D) None of these
Ans. : Layout of the website
84. When can we make changes to the website without the fear of
accidentally changing the data?
Page 10
(A) By separating the layout and format properties of the website from its
underlying logical structure
(B) While CSS is not used
(C) While JavaScript is not used
(D) None of these
Ans. : By separating the layout and format properties of the website from
its underlying logical structure
85. In which of the following files does the website designer need to make
modifications to change the style of an element?
(A) Web page (B) Text (C) Only CSS (D) a and b both
Ans. : Web page
86. How much the code has to be inserted in CSS as compared to that in
HTML?
(A) More less (B) less
(C) medium (D) cannot be determine
Ans. : less
87. How will the web pages’ load as the CSS has less code compared to that
in HTML?
(A) Slowly (B) Very slowly (C) Faster (D) Medium faster
Ans. : Faster
88. How is the construction of website made by using CSS?
(A) quickly (B) a and b both (C) efficiently (D) None of these
Ans. : a and b both
89. Mention with which the CSS compatibility varies?
(A) Different (B) Different (C) a and b both (D) None of these
browsers editors
Ans. : Different browsers
90. which of the following features is not supported by the browser?
(A) Form (B) Table (C) Stylesheet (D) List
Ans. : Stylesheet
91. Now-a-days, which issue is reduced because of the latest browser
versions?
(A) Table
Page 11
(B) CSS (C) List (D) Image
compatibility
Ans. : CSS compatibility
92. What was originally used to control the appearance of web pages?
(A) JavaScript (B) java (C) HTML (D) C
Ans. : HTML
93. Which kind of the web pages will be designed using HTML?
(A) Portable (B) image (C) static (D) Dynamic
Ans. : static
94. “The web pages designed using HTML are static and cannot be changed
after the browser rendered them.” Specify this statement.
(A) This statement is false. (B) This statement is true.
(C) It depends on browser. (D) It depends on OS.
Ans. : This statement is true.
95. Which kind of web pages can be provided only by HTML?
(A) static (B) Dynamic (C) Animated (D) All of these
Ans. : static
96. What is developed by Netscape?
(A) HTML (B) CSS (C) Browser (D) JavaScript
Ans. : JavaScript
97. Which of the following aspects is allowed by scripting language
JavaScript to Web page?
(A) Animated (B) Multi media (C) Programming (D) Recording
Drawing
Ans. : Programming
98. In which of the following, JavaScript allows to add programming
aspects?
(A) Web page (B) Table (C) List (D) Image
Ans. : Web page
99. State which kind of programming language scripting language is.
(A) Simple (B) a and b both (C) Lightweight (D) None of these
Ans. : a and b both
Page 12
100. A scripting language does not contain advanced programming
functionalities of the following language?
(A) C (B) java (C) a and b both (D) None of these
Ans. : a and b both
101. Which of the following adds interactivity in HTML pages?
(A) CSS (B) JavaScript (C) List (D) Table
Ans. : JavaScript
102. In which of the following ways JavaScript is inserted in HTML cod?
(A) None of these (B) Directly (C) No way (D) Indirectly
Ans. : Directly
103. Today, which of the following web browsers support JavaScript?
(A) Mozilla Firefox (B) Internet (C) Chrome, Safari (D) All of these
Explorer
Ans. : All of these
104. Which kind of webpage does it not remains after using JavaScript?
(A) Static (B) Dynamic (C) a and b both (D) None of these
Ans. : Static
105. Which kind of code can be included in Webpage after using JavaScript?
(A) Tat allows interactivity with the (B) To control the browser.
user. (C) For dynamically created HTML
content.
(D) All of these
Ans. : All of these
106. What should happen when user enters wrong data or leaves a field
empty?
(A) An error message should be (B) The form should not be
generated. submitted
(C) a and b both (D) None of these
Ans. : a and b both
107. Which is the most common form of JavaScript application today?
(A) Client side (B) Server side (C) Site side script (D) None of these
script script
Page 13
Ans. : Client side script
108. On which of the following sides is JavaScript used to validate the data
entered in the HTML forms before sending it to the server?
(A) Client (B) Server (C) Network (D) All of these
Ans. : Client
109. The form is generally checked for which of the following things using
JavaScript?
(A) Has the user left any required field empty?
(B) Has the user entered a valid E-mail address?
(C) Has the user entered a valid date?
(D) All of these
Ans. : All of these
110. The form is generally checked for which of the following things using
JavaScript?
(A) Check whether contents of two fields are same or not?
(B) Has the user entered text in the numeric data field?
(C) Has the user entered text instead of numeric data?
(D) All of these.
Ans. : All of these.
111. What do sort of code the lines between the
(A) CSS (B) JavaScript (C) HTML (D) All of these
Ans. : JavaScript
112. Which kind of language is JavaScript?
(A) Containing only text (B) Containing only symbols
(C) Containing only numbers (D) Case-sensitive
Ans. : Containing only text
113. In which of the following sections of an HTML page can JavaScript be
placed?
(A) < head > (B) < body> (C) a Or b (D) < html >
Ans. : a Or b
114. In JavaScript, what is write in document. Write (“Hello”) statement-?
Page 14
(A) A part of a (B) Method (C) a or b (D) Argument
document object
Ans. : a or b
115. In JavaScript, what is write in document. Write (“Hello”) statement ?
(A) Method (B) Variable (C) Constant (D) Argument
Ans. : Method
116. In JavaScript, what is passed as variable document. Write (’ ‘Hello”)
statement?
(A) Hello (B) write (C) document (D) ,
Ans. : Hello
117. To which of the following methods the be displayed is passed as
variable?
(A) document. show0 (B) document. vare0
(C) document. write0 (D) write. document0
Ans. : document. vare0
118. Which kind of symbol the semicolon (;) is, when given at the end of the
statement in JavaScript?
(A) Optional (B) Compulsory (C) At least once (D) None of the
it is necessary.
Ans. : Optional
119. To put which of the following symbols is a good programming practice?
(A) ; (B) : (C) . (D) ,
Ans. : ;
120. In JavaScript, the semicolon is used in lieu of following rather than
termination?
(A) Group (B) Code break (C) separation (D) Page break
Ans. : separation
121. How the JavaScript statements can be grouped together as?
(A) Image (B) Symbol (C) Block (D) None of these
Ans. : Block
122. What starts and ends with the curly brackets ({ }) in JavaScript?
(A) Block (B) Variable (C) Statement (D) All of these
Ans. : Block
123. Which of the following is an option to create a new form?
(A) Insert → Form → New Form
(B) Insert → Form → Define Form
(C) Insert → Form → Form Design
(D) Insert → Define Form
Ans. : Insert → Form → Define Form
124. Which dialogue box will appear by clicking Insert —, Form — Define
Form?
(A) Define Form (B) Form (C) Form (D) Properties
Properties
Ans. : Form Properties
125. Which dialogue box will appear by clicking Advanced Edit button of Form
Properties dialogue box?
(A) Advanced Property Editor (B) Advanced Edit
(C) Property Editor (D) Advanced Editor
Ans. : Advanced Property Editor
126. Which dialogue box contains Advanced Edit button?
(A) Advanced (B) Form (C) Form (D) Properties
Editor Properties
Ans. : Form Properties
127. When an event of “attribute” option occurs, the function which is to be
implemented is written using one of the following options.
(A) Value (B) Name (C) Function (D) Form
Ans. : Value
128. What is specified by the options on submit and value given in “attribute”
option of Advanced Property Editor?
(A) When submit button is clicked, statements of validateForm0 function will
be implemented.
(B) ValidateForm0button will be created.
(C) a and b both
(D) None of these
Ans. : When submit button is clicked, statements of validateForm0 function
will be implemented.
129. What is a reusable block of code that performs a particular task?
(A) Function (B) Routine (C) a Or b (D) Script
Ans. : a Or b
130. Which keyword is used to define a function?
(A) Script (B) Junction (C) Function (D) Java function
Ans. : Function
131. Which of the following has the block of code written inside?
(A) Square bracket ([]) (B) Curly bracket (Q)
(C) Round brackets ({}) (D) None of these
Ans. : Curly bracket (Q)
132. Which of the following is an inbuilt function?
(A) validateForm0 (B) alert0 (C) a and b both (D) None of these
Ans. : alert0
133. Which of the following functions takes the text and displays it in an alert
box?
(A) Alert 0 (B) Prompt 0 (C) ftmction0 (D) form0
Ans. : Alert 0
134. What will be displayed when the function alert (”Hello Students”) is
called ?
(A) An alert box with the message “Hello Students”
(B) “Hello Students” message with animation
(C) “Hello Students” message will blink.
(D) None of these
Ans. : An alert box with the message “Hello Students”
135. When will the function be executed?
(A) By an event (B) When it is called inside a source
code.
(C) a and b both (D) None of these
Ans. : a and b both
136. From where can the function be called from within the source code?
(A) Upper side (B) Down side (C) Any where (D) Cannot be
called
Ans. : Any where
137. In which of the following sections can the HTML function be defined?
(A) Head (B) Body (C) a Or b (D) Script
Ans. : a Or b
138. In which of the following ones does the function accept values?
(A) In single quotation (‘‘)
(B) In bracket ()
(C) In double quotation (““)
(D) In curly brackets ({})
Ans. : In bracket ()
139. I Values written in which of the following sent as a parameters of
function?
(A) In single quotation (‘‘)
(B) In bracket ()
(C) In double quotation (““)
(D) In curly brackets ({})
Ans. : In bracket ()
140. What is called the value passed to the function?
(A) Parameter (B) Variable (C) Constant (D) Value
Ans. : Parameter
141. If the function returns a value, then which statement is used preceding a
function?
(A) Not null (B) Return (C) Value (D) True
Ans. : Return
142. Which function is called on the click event of the submit button in text
book?
(A) ValidateForm0 (B) Validate 0 (C) Form 0 (D) V Form 0
Ans. : ValidateForm0
143. What is known as when the user clicks on “Submit” button?
(A) Event (B) Event Handler (C) a and b both (D) None of these
Ans. : Event
144. What is useful in creating interactive web pages which responds to the
action performed by the user?
(A) CSS (B) Java (C) FITML (D) JavaScript
Ans. : JavaScript
145. The interaction between which of the following causes the browser to
generate an event?
(A) User and Web page (B) User and Kernel
(C) Kernel and Web page (D) None of these
Ans. : User and Web page
146. What takes place when the user dose something?
(A) Script (B) Event (C) Code (D) Program
Ans. : Event
147. When an event occurs, a specific JavaScript code is executed in response
to a given situation. What is known as this JavaScript code?
(A) Event handler (B) Event (C) a Or b (D) No of these
Ans. : Event handler
148. Which kind of names are and event?
(A) Different (B) Same (C) Only numeric (D) None of these
Ans. : Same
149. What is the name of an event?
(A) Return (B) onclick0 (C) clickon0 (D) click0
Ans. : Return
150. For which of the following events is onsubmit0 event handler used?
(A) Submit (B) Click (C) Return (D) On return
Ans. : Return
151. Which of the following event handler is used in exempla of Text book?
(A) onsubmit0 (B) onclick0 (C) onreturn0 (D) onreset0
Ans. : onsubmit0
152. Which of the following functions is called by on submit0 event handler in
text book ?
(A) validateForm0 (B) validate0 (C) Form0 (D) vForm0
Ans. : validateForm0
153. The function validate Form0 will return a value either True or False
depending upon which of the following fields in the text book?
(A) Name (B) Form (C) Uname (D) Frame
Ans. : Name
154. What is returned by validate Form0 function according to its statement
when name field has a value?
(A) True (B) False (C) On (D) 1
Ans. : 1
155. For which of the following a variable is a container?
(A) Table (B) Data (C) Script (D) Form
Ans. : Data
156. What can be said for the case of variable in JavaScript?
(A) They are case- (B) They are not (C) Characters are (D) None of these
sensitive. case-sensitive. not part of the
variable.
Ans. : They are not case-sensitive.
157. What can be said for variable ‘x’ and ‘X’?
(A) They are same. (B) They are different.
(C) It depends on script. (D) It depends on version.
Ans. : They are different.
158. Which of the following can be stored in variable?
(A) Numbers (B) String (C) Texts (D) All of these
Ans. : All of these
159. Which key word is used to declare a variable in JavaScript?
(A) Var (B) Function (C) Variable (D) Van
Ans. : Var
160. which kind of statement ‘if’ is?
(A) Conditional (B) Unconditional (C) Loop (D) File
Ans. : Conditional
161. What is used to control the web browser sometimes?
(A) HTML (B) CSS (C) JavaScript (D) JScript
Ans. : JavaScript
162. What is used to control the web browsers window or web pages?
(A) BOM (B) DOM (C) MOB (D) OBM
Ans. : BOM
163. What is split into different parts or objects in BOM model?
(A) Browser (B) Web page (C) Users (D) Web site
Ans. : Browser
164. What can be used in the browser object model to change the window or
elements displayed in the browser?
(A) The properties (B) Methods of (C) a and b both (D) None of these
objects
Ans. : a and b both
165. What do we not have to create in a browser object model as they are
automatically created when the browser opens the Web page?
(A) Object (B) Variable (C) Method (D) All of these
Ans. : Object
166. Which object of BOM represents the browser window or individual frame
within the window?
(A) Document (B) Window (C) Form (D) Link
Ans. : Window
167. Which of the following contains all the other objects of the browser
object model within it?
(A) Link (B) Form (C) Window (D) Document
Ans. : Window
168. Which kind of object Window object is?
(A) Local (B) Module (C) Global (D) All of these
Ans. : Global
169. Which kind of object Window object is as it contains all the other objects
of the browser object model within it?
(A) Global (B) Module (C) Local (D) All of these
Ans. : Global
170. Document object is contained by which of the following objects?
(A) His tort (B) Form (C) Link (D) Window
Ans. : Window
171. Which is the most important object in the browser object model?
(A) Link (B) Form (C) Document (D) Window
Ans. : Document
172. Which object is used to represent the Webpage displayed in the
browser?
(A) Document (B) Window (C) Form (D) Link
Ans. : Document
173. Which elements of the Webpage are contained within the document
object?
(A) Forms, Images (B) Links (C) Other (D) All of these
elements
Ans. : All of these
174. The form object which is used by JavaScript to represent forms created
using
element is within which object?
(A) Document (B) Window (C) History (D) Location
Ans. : Document
175. In which of the following objects is the Form object contained?
(A) Document (B) Window (C) History (D) Location
Ans. : Document
176. Which object is used to reference each element in a form?
(A) Document (B) Window (C) Element (D) Location
Ans. : Element
177. Which of the following can be element objects?
(A) Check box (B) Text box (C) Radio button (D) All of these
Ans. : All of these
178. Which of the following can be element objects?
(A) Text area, (B) Password, (C) Reset (D) All of these
Button select
Ans. : All of these
179. What is focus in JavaScript?
(A) Method (B) Attribute (C) Object (D) Variable
Ans. : Method
180. Which method is used to focus on a particular element of the form?
(A) Focus (B) Document (C) Blur (D) Highlights
Ans. : Focus
181. Where the cursor will be placed using focus method?
(A) Inside the element (B) Outside the element
(C) Upper line of the element (D) Next lined of the element
Ans. : Inside the element
182. What kind of element can be created by using focus method?
(A) Highlighted (B) Italics (C) Underlined (D) Light
Ans. : Highlighted
183. By which color asterisk (*) are some fields marked while filling forms on
Internet?
(A) Red (B) Black (C) Green (D) Yellow
Ans. : Red
184. What does the red asterisk (*) indicate, while filling forms on Interne?
(A) It is a (B) It should not (C) a and b both (D) None of these
compulsory field be kept empty.
Ans. : a and b both
185. What is to be added for any field of the form?
(A) Label (B) Input field (C) a and b both (D) None of these
Ans. : a and b both
186. To work with which of the following, JavaScript uses built-in functions?
(A) Logical (B) Numeric (C) Relationa1 (D) Binary
Ans. : Numeric
187. Which of the following functions returns True value?
(A) is Nan (B) is Nan (123) (C) is Nan (45.84) (D) a and b both
(“HELLO”)
Ans. : is Nan (“HELLO”)
188. Which if statement for a variable y which is empty, not a number, not
equal to six digits?
(A) If (y=” “|| is Nan(y) || y.length > 6)
(B) If(y= =““|| is Nan(y) || y.length >61|| y.length <6)
(C) a and b both
(D) None of these
Ans. : If(y= =““|| is Nan(y) || y.length >61|| y.length <6)
189. Which is a statement on display alert message “Enter the pin code
property”?
(A) Alert (”Enter the Pin code (B) Alert (”Enter the code
properly”); properly”);
(C) a and b both (D) None of these
Ans. : Alert (”Enter the Pin code properly”);
190. Which is a statement in is form to place cursor in pin code field and
highlight
(A) document.js1.pin code.focus0; (B)
document.js1.pincode.onfocus0;
(C) a and b both (D) None of these
Ans. : document.js1.pin code.focus0;
191. Which is the value of option “Choose the city” of the city field in text
book?
(A) 0 (B) —1 (C) 1 (D) 2
Ans. : —1
192. How Form properties dialogue box can be opened?
(A) Insert→ Form→ Define Form
(B) By right click in the form and select Properties option.
(C) a and b both
(D) None of these
Ans. : a and b both
193. If the gender is an array with two elements, and both the elements are
false then what is selected by the user?
(A) First (B) Second (C) a and b both (D) No option
Ans. : No option
194. How does the first element of gender array (array with radio button)
recognize?
(A) Gender [-1] (B) Gender [0] (C) Gender [1] (D) Gender [F]
Ans. : Gender [0]
195. Which of the following is ‘And’ operator in Java Script?
(A) && (B) = = (C) II (D) .
Ans. : &&
196. What is used to specify styles for the visual elements of the website?
(A) HTML (B) JavaScript (C) CSS (D) Script3
Ans. : CSS
197. What is used to keep the information content of a document separate
from the details of how to display it?
(A) HTML (B) JavaScript (C) CSS (D) Script
Ans. : CSS
198. What is used to add logical aspects to our web pages?
(A) HTML (B) JavaScript (C) CSS (D) C
Ans. : JavaScript
199. Which of the following adds interactivity to HTML pages?
(A) CSS (B) HTML
(C) Scripting language (Java Script) (D) Multi media
Ans. : Scripting language (Java Script)
200. I which of the following is inserted directly into the HTML code?
(A) Scripting language (Java Script) (B) HTML
(C) CSS (D) Multi media
Ans. : Scripting language (Java Script)
----- WISH YOU - ALL THE BEST!!! -----