Basic
Test
Model Test
Ebook
Quiz-1 : JavaScript basic
Quiz 2: JavaScript
Quiz 3: JavaScript Basic Level1 quiz
Quiz 4: JavaScript Model Test 6-Jan-2014
Quiz 5: JavaScript Model Test 17 Feb 2014
Quiz 6: JavaScript Model Test 23 Feb 2014
Quiz 7: JavaScript Model Test 3 Mar 2014
Quiz 8: JavaScript Model Test 6 Mar 2014
Index
Javascript Home
Basic
84
Array
7
Function
39
Control structure
18
Syntax
14
Operators
38
Objects
7
Data types & variables
45
Event
7
OOP
7
IO
2
DHTML
1
Regular Expression
1
BOM
2
DOM
4
Schools
Ebook
Question:
Which element allows to write JavaScript?
A
<scripting>
B
<javascript>
C
<script>
D
<js>
E
<js language='javascript'>
Note:
Not available
Show answer
Show Note
Report
Question:
What is the correct JavaScript syntax to write "Hello World"?
A
response.write("Hello World")
B
document.write("Hello World")
C
print("Hello World")
D
echo("Hello World")
Note:
Not available
Show answer
Show Note
Report
Question:
How do you write a conditional statement for executing some statements only if "i" is equal to 5?
A
if i==5 then
B
if i=5 then
C
if (i==5)
D
if i=5
Note:
Not available
Show answer
Show Note
Report
Question:
How many different kind of loops are there in JavaScript?
A
Two. The "for" loop and the "while" loop
B
Three. The "for" and "for-in" loop, the "while" loop, and the "do-while" loop.
C
Four. The "for" loop, the "while" loop, the "do-while" loop, and the "loop-until" loop
D
One. The "for" loop
Note:
Not available
Show answer
Show Note
Report
Question:
How do you find the largest number of 6 and 8?
A
Math.max(6,8)
B
top(6,8)
C
ceil(6,8)
D
Math.ceil(6,8)
Note:
Not available
Show answer
Show Note
Report
Question:
How do you put a message in the browser's status bar?
A
window.status = "put your message here"
B
statusbar = "put your message here"
C
status("put your message here")
D
window.status("put your message here")
Note:
Not available
Show answer
Show Note
Report
Question:
How do you find the client's browser name?
A
browser.name
B
navigator.appName
C
client.navName
D
none
Note:
Not available
Show answer
Show Note
Report
Question:
Which is the numerical literal?
A
"1507"
B
1507
C
true
D
"Integer"
Note:
Not available
Show answer
Show Note
Report
Question:
You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?
A
Conservation of client CPU resources
B
Increased validity of form submission
C
Conservation of bandwidth
D
Increase end-user satisfaction
Note:
Not available
Show answer
Show Note
Report
Question:
You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?
A
Check for the presence of certain characters
B
Check the position of substrings
C
Test the length of data
D
Check the variable type of the strings
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
3
4
Next
Last
/9
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd