Unit 6: JavaScript and Graphics Test

Quiz
•
Computers
•
9th Grade
•
Hard
Serenitymarie Sanchez-Lopez
FREE Resource
Student preview

8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword do you need to use to define a variable in JavaScript?
variable
x
var
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function do you need to call to get the width of the screen?
width()
getWidth()
screenWidth()
getscreenWidth()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper function to call to print to the screen?
write
println
post
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function do you need to call to ask the user of the program to enter text?
readLine
readln
text
println
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To ask the user of the program for a number, which function should you use?
readLine
readInt
readFloat
Both readInt and readFloat are for numbers.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print to the screen?
println(2 + 2);
2 + 2
4
22
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol do you use to do division in JavaScript?
%
/
//
*
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol do you use to do multiplication in JavaScript?
x
X
*
#
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade