
JavaScript Control Structures Quiz Unit 5 Test A
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Joseph Armanious
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the boolean variable canVote at the end of this program?
True
False
Yes
none, there is a syntax error in this code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program? var number = 5; var greater_than_zero = number > 0; if (greater_than_zero){ println(number); }
0
5
True
Nothing will print
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
0
5
True
Nothing will print
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following program? var isRaining = false; var isCloudy = false; var isSunny = !isRaining && !isCloudy; var isSummer = false; var isWarm = isSunny || isSummer; println("Is it warm: " + isWarm);
Is it warm: true
Is it warm: false
Is it warm: yes
Is it warm: no
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following program? var numApples = 10; var numOranges = 5; if(numApples < 20 || numOranges == numApples){ println("Hello, we are open!"); } else { println("Sorry, we are closed!"); } println("Sincerely, the grocery store");
Hello, we are open!
Sorry, we are closed!
Sincerely, the grocery store
Hello, we are open! Sincerely, the grocery store
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program print when run? var above16 = true; var hasPermit = true; var passedTest = false; if (above16 && hasPermit && passedTest){ println("Issue Driver's License"); } else { if (above16 || hasPermit || passedTest) { println("Almost eligible for Driver's License"); } else { println("No requirements met."); } }
Issue Driver’s License
Almost eligible for Driver’s License
No requirements met.
Nothing will print
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? printIn(4); } if (numberOne != numberTwo) { printIn(5); }
1
1 3 5
1 4
1 4 5
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
SOAL KOMPUTER KELAS 8 SEMESTER GANJIL
Quiz
•
7th - 12th Grade
10 questions
Anime
Quiz
•
KG - University
11 questions
Marvel Future Fight
Quiz
•
KG - Professional Dev...
15 questions
Quis Grade 5
Quiz
•
9th - 12th Grade
12 questions
File dan Folder
Quiz
•
9th - 12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
12 questions
ULANGAN SISTEM KOMPUTER KELAS 7
Quiz
•
9th - 12th Grade
20 questions
kuis asj
Quiz
•
9th - 12th Grade
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
