
Programming Quiz
Authored by Adam Dennison
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
21 questions
GarageBand / Logic Shortcuts
Quiz
•
11th Grade
20 questions
FTP Server
Quiz
•
11th Grade
20 questions
G11 ITGS Test 1 Revision
Quiz
•
11th - 12th Grade
20 questions
Online Platform Block Q
Quiz
•
11th - 12th Grade
20 questions
Access Lesson 7
Quiz
•
9th - 12th Grade
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
20 questions
POST TEST MAPEL PEMOGRAMAN WEB
Quiz
•
11th Grade
21 questions
AQA 4.6.4 Logic Gates and Circuits
Quiz
•
11th 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