Subject : IT
Chapter 3 Advanced Javascript.
Objective type questions
3.1
1. ______________is an interpreted scripting language.
2. An _____________ language is a type of programming language that executes
its instructions directly and freely without compiling machine language.
3. ___________is a set of instructions used to produce various kinds of outputs.
4. _____________was initially created “ to make webpage alive”.
5. The programs in interpreted language are called as _____________--.
6. __________________is light weight scripting language because it does not
support all features of object oriented programming languages.
7. There is no need of special software to run JavaScript program(T/F).
8. _______________is object oriented scripting language and it supports event
based programming facility.
9. JavaScript is case sensitive language.(T/F)
10. _____________ helps the browser to perform input validation without wasting
the user’s time by the web server access.
11. JavaScript can handle _________and ___________very effectively.
12. Most of the JavaScript control statement syntax is same as syntax of control
statements in other programming language.(T/F)
13. An important part of JavaScript is the ability to create a new
____________within scripts.
14. Functions are declared in JavaScript using ________________ keyword.
15. Software that can run on any hardware or software platform is called as platform
independent software.(T/F)
16. _____________is platform independent scripting language.
17. Any __________________browser can understand and interpret javaScript.
18. _______________ is known as universal client side scripting language.
19. Following are the types of scripting language____________and_____________.
20. In _________________scripting the script resides on client computer and that
can run on the client.
21. _______________types of scripts are placed inside an HTML document.
22. _________________scripting the scripts resides on the web server.
23. To execute the server side script it must be activated by client then it is executed
on ______________.
24. Server-side scripting is used at the _____________, where the source code is not
visible.
25. Client-side scripting is used at the ________________which users can see from
the browser.
26. Server-side scripting is more secure than client-side scripting.(T/F)
27. When a ___________ script is processed it communicates to the server.
28. __________ scripting does not need any server interaction.
29. Following are the client-side scripting languages_____________,__________
30. Following are the server-side scripting languages____,________,_______.
31. ____________scripting is useful in customizing the web pages and implements
the dynamic changes in the websites.
32. The ______________scripts are generally used for validation purpose and
effectively minimize the load to the server.
33. Special software is required to execute __________script.
34. ____________requires web browser as an interface.
3.2
35. JavaScript has a built-in multiway decision statement known as ______________.
36. The _____________statement test the value of given expression against a list of
case values and when match is found, a block of statement associated with that
case is executed.
37. In Switch statement, there should not be duplicity between the cases.(T/F)
38. The value of the case in switch case must be similar data type as the variable in
switch.(T/F)
39. The default statement is not mandatory in switch statement.(T/F)
40. ____________refers to the execution of statement or a group pf statements of
code for a fixed number of times or till the condition is satisfied.
41. The condition in loop statement should be a Boolean condition.(T/F)
42. The ______________and ______________loop executes statements as long as
condition becomes true.
43. ____________is assigning initial value to the variable, which executes only once
and then the condition is checked..
44. _____________will execute statements In statement block till the condition is
true.
45. ___________means increment or decrement value of a running variable.
46. __________statement is used to jump out of loop.
47. _______________is used to make an early exit from a loop.
48. When the keyword_____________is encountered inside the loop, control
automatically passes to the next statement after the loop.
49. _________statement in JavaScript is used to skip statement block and take the
control at the beginning for next iteration.
50. ___________is an object based scripting language.
3.3
51. A JavaScript object is an _________ having state and behavior.
52. A JavaScript object is an entity having ________ and ____________.
53. An __________ can group data together with functions needed to manipulate it.
54. ________and ___________of object’s are accessed with ‘.’ Operator.
55. JavaScript supports ___________and ______________objects.
56. Following are the built in objects ___________,___________and____________.
57. JavaScript gives facility to create _____________objects as per user
requirements.
58. The ________keyword is used to create new objet in JavaScript.
59. When HTML document is loaded into a web browser, it becomes a
_________object.
60. The way in which HTML document content is accessed and modified is called as
_____________________.
61. W3C stands for_______________.
62. DOM stands for____________________.
63. The standardization of DOM was founded by _________________.
64. ___________work for the standardization of web technologies.
65. __________method is used to write HTML expressions or JavaScript code to a
document.
66. ___________method used to add a newline character after each statement.
67. The easiest way of accessing form element is _____________method.
68. The very top of the object hierarchy is the __________object.
69. ___________object is parent object of all other objects.
70. Window object is __________object of all other objects.
71. ___________object represents an open window in a browser.
72. An object of __________________is created automatically by the browser.
73. _______object represents an open window in a browser.
74. An object of ____________is created automatically by the browser.
75. ____________property of the window object returns the name of the window.
76. _______________property of the window object returns the Location of the
window.
77. _______________property of the window sets or returns the text in the status
bar of a window.
78. _______________Returns a Boolean value indicating whether a window has
been closed or not.
79. _______________method of the window displays the alert box containing
message with ok button.
80. _______________method of the window displays the confirming dialog box
containing message with ok and cancel button.
81. _______________method of the window displays a dialog box to get input from
the user.
82. _______________method of the window opens a new window.
83. _______________method of the window closes the current window.
84. _______________method of the window removes focus from the current
window.
85. _______________method of the window set focus to the current window.
86. _______________method of the window closes the current window.
87. _______________method of the window removes focus from the current
window.
88. _______________method of the window set focus to the current window.
89. _______________method of the window prints the content of current window.
90. _______________method of the window calls a function or evaluates an
expression after a specified number of milliseconds.
91. ____________and ____________are valid property of window object.
92. ____________and _____________are valid method of window object.
93. ______________are actions done by the user or an application that occurs on
the webpage.
94. Following are the keyboards events in JavaScripts ______, __________and ____.
95. Following are the mouse events in ______, ____________and _________.
96. _____________event occurs when user leaves field or losses focus of an
element.
97. ____________event occurs when an element gets focus.
98. ____________event occurs when user changes content of an element or select
dropdown value.
99. _______________event occurs when user selects some text of an element.
100. _______________event occurs when user clicks submit button.
101. _______________ event occurs when user clicks reset button.
102. _______________method of the window closes the current window.
103. _____________event occurs when page/image has been loaded.
104. ____________event occurs document/page has been unloaded or closes.
105. ____________and__________are the valid JavaScript events.
106. JavaScript has several built-in or core language objects.(T/F)
107. The built-in object provides different ________and __________that are
useful while creating live web pages.
108. _____________is used to store zero or more characters of text within single
or double quotes.
109. ___________object is used to store and manipulate text.
110. _________property of the string object returns the number of character in a
string.
111. ___________method of string object returns the character at the specified
position.
112. ____________method of the string object returns the index number of the
first occurrence of specified character in given string.
113. _____________method of the string object returns the index of the last
occurrence of specified character in given string.
114. _____________and ________method of the string object returns the
characters specified.
115. _____________method of the string object removes the whitespace from
both sides of a string.
116. ______-method of the string object converts the string to lower case.
117. ______-method of the string object converts the string to upper case.
118. ___________is a valid property of string object.
119. _______and_____________are the valid method of string object.
120.
Removed for the year 2022
121. The built in Math object includes mathematical ___________and_______.
122. Math object is not created before using it(T/F)
123. _________method of Math object returns the absolute value of a number.
124. _________method of Math object returns the cube root of a number.
125. _________method of Math object returns the next integer greater than or
equal to a given number.
126. _________method of Math object returns the next integer less than or equal
to a given number.
127. _________method of Math object returns the highest-valued number in a list
of numbers
128. _________method of Math object returns the lowest valued number in a list
of number.
129. _________method of Math object returns the base to the exponent power.
130. _________method of Math object returns a random number between 0 and 1
131. _________method of Math object returns the square root of a number.
132. The ___________object is used to create the __________and
___________values.
133. Date object is created using the ___________keyword.
134. ___________method of the date object returns the day of month (from 1-31).
135. ____________method of the date object returns the day of week(from 0-6)
136. ____________method of the date object returns year(four digits)
19/9/2020
137. ____________method of the date object returns the hours(0-23)
138. ____________ method of the date object returns the minutes(0-59)
139. _____________method of the date object returns the month(0-11)
140. _______________ method of the date object returns the seconds (0-59)
141. ___________and________ method of the date object returns the number of
milliseconds since midnight Jan 1, 1970.
142. ______________sets the day of the month of a date object.
143. ______________sets the full year of a date object.
144. ______________sets the hours of a date object.
145. ______________sets the minutes of a date object.
146. ______________sets the month of a date object.
147. ______________sets the seconds of a date object.
148. ______________sets the day of the month of a date object.
149. ______________sets a date to a specified number of milliseconds
after/before Jan 1, 1970.
150. ____________object helps to work with numbers.
151. _______________ property of the of the number object returns the largest
minimum value
152. _______________ property of the of the number object returns the largest
maximum value
153. ____________represents ‘Not a Number’ value
154. ___________ Method of number object determines whether the given value
is a integer.
155. ___________ Method of number object converts the given string into a
floating point number.
156. ___________ Method of number object converts the given string into a
integer number.
157. ___________ Method of number object returns the string that represents a
number with exact digits after decimal point.
158. An_______ is an object that can store a collection of items.
159. JavaScript __________are used to store multiple values in single variable.
160. An _____ is a special variable which can hold more than one value at a time.
161. ___________become really useful when you need to store large amounts of
data of the same type.
162. The index of the first element of an array is ____________.
163. One can access and set the items in an array by referring to its
_____________.
164. _____________property of an array object represents the Zero-based index
of the match in the string.
165. _____________property of an array object reflect the number of elements in
an array.
166. ____________method of an array object joins two or more arrays and returns
a copy of the joined arrays.
167. ____________method of an array object copies an elements within the array,
to and from specified positions.
168. ______________method of an array object returns the value of the first
element of the first element in an array that satisfies a test in testing.
169. ______________method of an array object calls a function for each array
element.
170. ______________method of an array object is used to search the array
element and returns its position.
171. ______________method of an array object is used to check whether an
object is an array.
172. ______________method of an array object removes the last element and
returns the element.
173. ______________method of an array object adds new element to the end of
an array and returns the new length.
174. ______________method of an array object reverse the order of the elements
in an array.
175. ______________method of an array sorts the elements of an array.
176. Following are the valid method of Math object_________,____________and
_________.
177. Following are the valid method of the Date object_________,_________and
____________.
178. Following are the valid property of the Number object ________,______and
________.
179. Valid method of number object are____________and _____________
180. Valid properties of the Array object are____________and ____________.
181. Following are the valid methods of Array objects_____________,______and
_________