
Programming Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
27 questions
CDI - Electronic Components & Signals
Quiz
•
10th - 12th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
CSS - Operating System
Quiz
•
11th Grade
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
20 questions
SOAL INFORMATIKA SEM-2 X IPAS-4
Quiz
•
9th - 12th Grade
20 questions
Latihan Ujian Sekolah
Quiz
•
11th Grade
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
