JavaScript Input and Variables Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Guillermo Moreno
Used 95+ times
FREE Resource
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
Similar Resources on Wayground
19 questions
Java Basic 1 - Quiz

Quiz
•
8th Grade - University
20 questions
Computer Science: Chapter 2 Test Review

Quiz
•
9th - 12th Grade
20 questions
Unit 1 - Introduction to Kotlin (L2)[ID]

Quiz
•
12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
15 questions
Pentaksiran T4(1.3)

Quiz
•
11th Grade
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
24 questions
Java Loops

Quiz
•
10th - 12th Grade
18 questions
JAVA string

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade