Unit 4 Assessment Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Aziza Munem
Used 123+ times
FREE Resource
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"?
10
11
9
This code will loop infinitely
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code continually asks the user for a password until they guess the correct password, then ends. But there is one problem.
Which of the following will fix this program?
Change the True in line 3 to be password != SECRET_PASSWORD so that the program doesn’t loop infinitely
Change the True in line 3 to be password == SECRET_PASSWORD so that the program doesn’t loop infinitely
Add a break; statement after line 6 so that the program doesn’t loop infinitely
Put line 7 inside of an else statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following program print when run?
4
5
4
5
6
5
4
6
5
4
0
2
6
4
6
5
6
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the boolean variable can_vote at the end of this program?
True
False
Yes
none, there is a syntax error in this code
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
Similar Resources on Wayground
20 questions
Procedures and Functions

Quiz
•
10th Grade
20 questions
Python Next Steps Homework Quiz

Quiz
•
8th - 10th Grade
20 questions
Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

Quiz
•
9th - 12th Grade
20 questions
National 5 Programming (VB and Theory)

Quiz
•
1st - 11th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
20 questions
Quiz Scratch kelas 8

Quiz
•
12th Grade
20 questions
AQA GCSE Computer Science - 3.2.2 Programming Concepts

Quiz
•
8th - 10th Grade
20 questions
Creating Algorithms through Pseudocodes and Flowcharts

Quiz
•
10th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade