9 DIS - Python Modules 1-3

9 DIS - Python Modules 1-3

9th Grade

16 Qs

quiz-placeholder

Similar activities

Review loops

Review loops

8th Grade - University

12 Qs

Питон П411

Питон П411

9th - 12th Grade

20 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

Module 3 - Unity Scripting Basics

Module 3 - Unity Scripting Basics

9th - 12th Grade

15 Qs

Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

9th Grade

20 Qs

Python (basics)

Python (basics)

1st Grade - University

11 Qs

Unit 3 Karel Programming Review 2

Unit 3 Karel Programming Review 2

9th - 12th Grade

15 Qs

Python тесті

Python тесті

9th Grade

16 Qs

9 DIS - Python Modules 1-3

9 DIS - Python Modules 1-3

Assessment

Quiz

Information Technology (IT)

9th Grade

Hard

Created by

Jackson RILEY

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? x = 5 y = 3 print(x + y)
2
8
53
15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to take input from a user?
input = 5
name = input('Enter your name: ')
name == input('Enter your name')
print('Enter your name: ')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python statement is used to check conditions?
while
for
if
check

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? x = 10 if x > 5: print('x is greater than 5') else: print('x is not greater than 5')
x is not greater than 5
x is greater than 5
x = 10
Nothing will be printed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this loop? for i in range(3): print(i)
0 1 2
1 2 3
0 1 2 3
1 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword can be used to immediately exit a loop in Python?
stop
exit
break
continue

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to assign a value to a variable in Python?
value = 10
10 == value
value == 10
10 = value

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?