What will print in the debug console?

Variables/Conditionals/Functions

Quiz
•
Computers
•
9th Grade
•
Easy
Darrin Patterson
Used 7+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
20
100
10
200
Answer explanation
The answer is C since that is the latest time that the variable “plop” is called.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print in the debug console?
5
25
75
55
Answer explanation
The answer is C since we add each call of the variable together with the number for each line.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print in the debug console?
35
5
45
50
Answer explanation
The answer is D since koala = 35 and bear = 5, koala adds 10 = 45. So, when we combine koala and bear we get 50 as our output.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct output?
Less than 10
Less than 20
Less than 20
Less than 30
40 or more
Answer explanation
The answer is E since each time the score is called it adds onto the previous call of the variable.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct output?
Output C
Output E
Output D
Output A
Answer explanation
The answer is output D because it is the one conditional that is true due to the || (or) in the if-else-ifs.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct output?
Hi You’ve got this!
Hi Hi You’ve You’ve got this! got this!
Hi You’ve got this! You’ve got this!
Hi You’ve got this! Hi You’ve got this!
Answer explanation
The answer is C because line 1 will print Hi, then the function is called twice, so there will be two lines of You’ve got and two lines of this! printed one part on one line and the other on the following line.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You rock! cannot display. How can we change this in the event handler to make it display correctly?
Line 1 change the global variable to total grade
Line 3 take out var and remove the local variable
Line 4 change grade to == 90
Line 5 change to getText command
Answer explanation
The answer is B because we don’t want local variables since they will only focus on one event handler and not the entire program. Set the variables first so that they remain global instead. This way when you call the variable into an event handler, you do not use the var version of it.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
11 questions
Boolean Expressions, Truth Tables, and Logic Gates

Quiz
•
9th Grade
10 questions
CodeHS 2.6 Booleans

Quiz
•
9th Grade
15 questions
Python Conditionals and If Statements

Quiz
•
8th Grade - University
16 questions
Variables

Quiz
•
7th - 10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
10 questions
Programming Basics Basics

Quiz
•
8th Grade - University
16 questions
Python Basics

Quiz
•
KG - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
10 questions
Exponential Growth and Decay Word Problems

Quiz
•
9th Grade