
Unit 4 - Variables, Conditionals, Functions

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Brian Ranallo
Used 32+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the order of letters printed to the console when this program is run?
a b c
a b c b c b c
a b c b c
a b c a
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This function chooses the screen to display based on the score. What is the correct way to call this function?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the value of the variable bags be at the end of the flowchart shown here?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct definition for Conditional Statement.
affects the sequential flow of control by executing different statements based on the value of a Boolean expression
stores information as a number, String, or Boolean
joins together two or more strings end-to-end to make a new string
an ordered sequence of characters
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What number will be output by the console.log command on line 7?
10
100
20
200
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This flowchart is used by an apartment rental Web site to set the variable "include" to "true" for apartments that meet certain criteria.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age ?
boolean
number
string
list
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
17 questions
Python KS3

Quiz
•
6th - 9th Grade
18 questions
Unit 4 Variables, Conditionals & Functions CS20-21

Quiz
•
9th - 12th Grade
20 questions
Javascript Basics Test

Quiz
•
7th - 12th Grade
16 questions
algorithms and programming

Quiz
•
8th - 10th Grade
18 questions
Microbit Quiz

Quiz
•
8th - 10th Grade
22 questions
Fundamentals of Programming (GCSE Computer Science AQA)

Quiz
•
9th - 11th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade