N4 SDD - Code understanding quiz 1

N4 SDD - Code understanding quiz 1

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

SQL SELECT

SQL SELECT

8th - 10th Grade

10 Qs

Python Basics - yr 9

Python Basics - yr 9

9th - 12th Grade

18 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

3.1 Data Types

3.1 Data Types

8th - 10th Grade

15 Qs

Post-Break Python Refresher

Post-Break Python Refresher

9th - 12th Grade

20 Qs

Maths - ICT Quiz Battle

Maths - ICT Quiz Battle

10th Grade

18 Qs

Computer Lab Rules

Computer Lab Rules

5th - 11th Grade

10 Qs

ENCRYPTION AND CYBERCRIME

ENCRYPTION AND CYBERCRIME

7th - 10th Grade

15 Qs

N4 SDD - Code understanding quiz 1

N4 SDD - Code understanding quiz 1

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?