Function
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:
How do you call a function named "myFunction"?
A
call function myFunction()
B
myFunction()
C
call myFunction()
D
none
Note:
Not available
Show answer
Show Note
Report
Question:
How do you round the number 8.25, to the nearest whole number?
A
Math.rnd(8.25)
B
Math.round(8.25)
C
round(8.25)
D
rnd(8.25)
E
Math.round("8.25")
Note:
Not available
Show answer
Show Note
Report
Question:
What is the correct JavaScript syntax for opening a new window called "window5" ?
A
new("http://www.ex-designz.net","window5")
B
window.open("http://www.ex-designz.net","window5")
C
open.new window("http://www.ex-designz.net","window5")
D
new.window("http://www.ex-designz.net","window5")
Note:
Not available
Show answer
Show Note
Report
Question:
Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?
A
setElapsedTime()
B
Timeout()
C
setTimeout()
D
setTime()
Note:
Not available
Show answer
Show Note
Report
Question:
You are working on a JavaScript project. What is used to restart the inner most loop?
A
Abort
B
Breakloop
C
Stop
D
Continue
Note:
Not available
Show answer
Show Note
Report
Question:
You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs?
A
alert()
B
display()
C
prompt()
D
input()
Note:
Not available
Show answer
Show Note
Report
Question:
In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?
A
Substring()
B
String()
C
Stringlength()
D
CharAt()
Note:
Not available
Show answer
Show Note
Report
Question:
What statement (keyword) supplies the value of the function?
A
return
B
receive
C
take
D
print
Note:
Not available
Show answer
Show Note
Report
Question:
What is the correct output for the following code?
var str=”This is a text.”; alert(str.charAt(3));
A
i
B
s
C
white space
D
none
Note:
Not available
Show answer
Show Note
Report
Question:
How do you convert string into integer number?
A
With strToInt() function
B
With parseInt() function
C
With parseFloat() function
D
None of above
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
3
Next
Last
/4
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd