JavaScript Input and Variables Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Guillermo Moreno
Used 98+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the proper function to call to print to the screen?
write
println
post
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How will the output look in the following programs?
The code snippet will print Hello World on a single line.
The code snippet will print Hello on the first line and World on the second line.
The code snippet will print an error because of the extra space after the letter o.
The code snippet requires only one println.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What keyword do you need to use to define a variable in JavaScript?
println
var
float
int
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A naming convention where the first letter is lower case, and each subsequent start of a word is upper case
capitalization
variable
upperCase
lowerCamelCase
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output to the console to the following JavaScript program?
1
2
3
1
2
.3
1
2
.03
1
2
0.03
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What are the different variable types that can be used in Javascript?
Booleans, Numbers, Strings
Booleans, Int, Float
Strings, Booleans, Int
Strings, Int, Doubles
7.
FILL IN THE BLANK QUESTION
3 mins • 1 pt
How would you create a variable named myPet and give it the value “Your Name”?
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
9 сынып массив2
Quiz
•
9th Grade
20 questions
HISTORY OF COMPUTER_SUMMATIVE 1
Quiz
•
11th - 12th Grade
20 questions
Hardware 1
Quiz
•
11th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
20 questions
Bài TX1 - HK2 - Tin học 11
Quiz
•
11th Grade
15 questions
THỬ THÁCH VỚI CHƯƠNG TRÌNH CON
Quiz
•
11th Grade
20 questions
Strategi Algoritmik dan Pemrograman
Quiz
•
11th Grade
20 questions
CSS Acronyms
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
