Quizzes
Search
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
JavaScript Trivia Quiz
18 Questions
|
By Haxor Cefee | Updated: Jul 24, 2018
| Attempts: 147
Share
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 18
0 %
0/100
Score
0/100
1.
You define an array using
Var myarray = new Array();
Var myarray = array new;
Var new Array() = myarray;
Var new array = myarray;
Submit
Start Quiz
About This Quiz
.
2.
What's your name?
We’ll put your name on your report, certificate, and leaderboard.
2.
What is the correct JavaScript syntax to write "Hello World"?
Response.write("Hello World")
Document.write("Hello World")
("Hello World")
Echo("Hello World")
Submit
3.
CHow do you find the largest number of 6 and 8?
Math.max(6,8)
Top(6,8)
Ceil(6,8)
Math.ceil(6,8)
Submit
4.
How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?
If (i 5)
If (i != 5)
If =! 5 then
If 5
Submit
5.
How does a "for" loop start?
For (i = 0; i
For (i = 0; i
For i = 1 to 5
For (i
Submit
6.
How do you call a function named "myFunction"?
Call myFunction()
MyFunction()
Call function myFunction
Submit
7.
How do you write a conditional statement for executing some statements only if "i" is equal to 5?
If i==5 then
If i=5 then
If (i==5)
If i=5
Submit
8.
How do you round the number 8.25, to the nearest whole number?
Math.rnd(8.25)
Math.round(8.25)
Round(8.25)
Rnd(8.25)
Submit
9.
What is the correct way to write a JavaScript array?
Var txt = new Array("tim","shaq","kobe")
Var txt = new Array="tim","shaq","kobe"
Var txt = new Array(1:"tim",2:"shaq",3:"kobe")
Submit
10.
Inside which HTML element do we put the JavaScript?
1
2
3
4
Submit
11.
What is the correct JavaScript syntax for opening a new window called "window5" ?
New("http://www.ex-designz.net","window5")
Window.open("http://www.ex-designz.net","window5")
Open.newwindow("http://www.ex-designz.net","window5")
New.window("http://www.ex-designz.net","window5")
Submit
12.
Which of the following JavaScript statements use arrays?
SetTimeout("a["+i+"]",1000)
K = a & i
K = a(i)
Submit
13.
Which property would you use to redirect visitor to another page?
Window.location.href
Document.href
Java.redirect.url
Link.redirect.href
Submit
14.
How many different kind of loops are there in JavaScript?
Two. The "for" loop and the "while" loop
Four. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop
One. The "for" loop
Submit
15.
How do you find the client's browser name?
Navigator.appName
Client.navName
Browser.name
Submit
16.
Onclick is equivalent to which two events in sequence
Onmouseover and onmousedown
Onmousedown and onmouseout
Onmousedown and onmouseup
Onmouseup and onmouseout
Submit
17.
Wich best describe void?
A method
A function
An operator
A statement
Submit
18.
How do you put a message in the browser's status bar?
Window.status = "put your message here"
Statusbar = "put your message here"
Status("put your message here")
Window.status("put your message here")
Submit
View My Results
Related Quizzes
Online Quiz With JavaScript
Online Quiz With JavaScript
JavaScript Quiz: MCQ Trivia Exam!
JavaScript Quiz: MCQ Trivia Exam!
Multiplication Families 5 To 7 : Trivia Quiz
Multiplication Families 5 To 7 : Trivia Quiz
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (18)
Unanswered (
)
Answered (
)
You define an array using
What is the correct JavaScript syntax to write "Hello World"?
CHow do you find the largest number of 6 and 8?
How do you write a conditional statement for executing some statements...
How does a "for" loop start?
How do you call a function named "myFunction"?
How do you write a conditional statement for executing some statements...
How do you round the number 8.25, to the nearest whole number?
What is the correct way to write a JavaScript array?
Inside which HTML element do we put the JavaScript?
What is the correct JavaScript syntax for opening a new window called...
Which of the following JavaScript statements use arrays?
Which property would you use to redirect visitor to another page?
How many different kind of loops are there in JavaScript?
How do you find the client's browser name?
Onclick is equivalent to which two events in sequence
Wich best describe void?
How do you put a message in the browser's status bar?
X
OK
X
OK
Cancel
X
OK
Cancel
Back to top
Back to top
Advertisement