N4 SDD - Code understanding quiz 1

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
G Alexander-Doyle
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if the age is less than or the same as to 18
if age > 18:
if age < 18:
if age >= 18:
if age <= 18:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if the age is the same as 18
if age > 18:
if age < 18:
if age >= 18:
if age = 18:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if SavedPassword is different to UserPassword
if SavedPassword != UserPassword:
if SavedPassword == UserPassword:
if SavedPassword / UserPassword:
if SavedPassword * UserPassword:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if score is less than 50
if score > 50
if score < 50:
if score >= 50
if score <= 50
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if score is more than or the same as 75
if score > 75
if score < 75:
if score >= 75
if score <= 75
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the four options matches the following description:
Checks to see if score is more than 45
if score > 45:
if score < 45:
if score >= 45:
if score <= 45:
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which message would be output to the screen if the user entered the score of 15 in this program:
if score > 15:
print ("You got a high score, great job!")
else:
print ("You didn't get a high score this time, sorry!")
You got a high score, great job!
You didn't get a high score this time, sorry!
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
National 5 Programming

Quiz
•
10th - 12th Grade
15 questions
BTEC Digital Information Technology: Component 2 - Learning Aim A

Quiz
•
9th - 11th Grade
20 questions
Jago PHP

Quiz
•
11th Grade
20 questions
Cyber Security

Quiz
•
5th Grade - Professio...
10 questions
Cyber Security

Quiz
•
8th - 12th Grade
13 questions
Thunkable Intro!

Quiz
•
9th - 12th Grade
20 questions
AP CS Principles ALGORITHMS AND PROGRAMMING

Quiz
•
11th Grade
15 questions
PCEP Section 2a: Make decisions with if instruction

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade