
Programming Quiz
Quiz
•
Computers
•
11th Grade
•
Hard
Adam Dennison
Used 1+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the last thing printed by the following program?
10
20
30
60
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We want to simulate constantly flipping a coin until we get 3 heads in a row. What kind of loop should we use?
For loop
While loop
Loop and a half
Infinite loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the following program print "hello"?
var i = 0;
while(i < 10){
println("hello");
}
0
1
10
Infinite
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will fix the given program that continually asks the user for a password until they guess the correct password?
Change `while(true)` to `while(password != SECRET_PASSWORD)` at the beginning of the function.
Change `while(true)` to `while(password == SECRET_PASSWORD)` at the beginning of the function.
Add `var password` at the top of the function.
Put `break` at the end of the function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program print when run?
0 0 1 1
0 1 0 1
0 0 0 0
1 1 1 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the boolean variable canVote at the end of this program?
true
false
null
undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
0
5
true
nothing will print
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
20 questions
Quiz
•
7th - 12th Grade
20 questions
Dasar Animasi 3D
Quiz
•
10th - 11th Grade
25 questions
Codehs - Python
Quiz
•
11th - 12th Grade
20 questions
แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน
Quiz
•
9th - 12th Grade
25 questions
HTML
Quiz
•
11th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
20 questions
TIK 9 - Penggunaan Browser Untuk Akses Internet
Quiz
•
11th - 12th Grade
20 questions
Komputer
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
