
JavaScript
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Pratima B
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. JavaScript is a _______________ language.
a) Object-Oriented
b) High-level
c) Assembly-language
d) Object-Based
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What will be the output of the following JavaScript code?
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}a) 10
b) Error
c) 1
d) 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. A conditional expression is also called a _______________
a) Alternative to if-else
b) Immediate if
c) If-then-else statement
d) Switch statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Which is a more efficient JavaScript code snippet?
Code 1 :
for(var num=10;num>=1;num--)
{
document.writeln(num);
}Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}a) Code 1
b) Code 2
c) Both Code 1 and Code 2
d) Cannot Compare
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is a block statement in JavaScript?
a) conditional block
b) block that contains a single statement
c) both conditional block and a single statement
d) block that combines multiple statements into a single compound statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. When an empty statement is encountered, a JavaScript interpreter __________
a) Ignores the statement
b) Prompts to complete the statement
c) Throws an error
d) Shows a warning
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. The “var” and “function” are __________
a) Keywords
b) Declaration statements
c) Data type
d) Prototypes
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Google Nivel 1 7-9
Quiz
•
Professional Development
15 questions
INTELLISY
Quiz
•
Professional Development
16 questions
Cyber Resilience Training
Quiz
•
Professional Development
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
18 questions
UT5 - ARP - DNS - DHCP
Quiz
•
Professional Development
15 questions
Technical Training
Quiz
•
Professional Development
20 questions
Linguaxes de marcas: HTML
Quiz
•
Professional Development
20 questions
POST TEST WEB STATIC
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
