9 DIS - Python Modules 1-3

9 DIS - Python Modules 1-3

9th Grade

16 Qs

quiz-placeholder

Similar activities

N5 Admin Letters and Tables

N5 Admin Letters and Tables

8th Grade - University

15 Qs

Unit 1 - Bugs and Debugging Lesson & Input and Output Lesson

Unit 1 - Bugs and Debugging Lesson & Input and Output Lesson

9th Grade

16 Qs

Тест по функциям Python (functions 3)

Тест по функциям Python (functions 3)

9th - 12th Grade

18 Qs

2.00

2.00

9th - 12th Grade

20 Qs

Python Battle Royale: Who Will Survive in the End?❤️🤔

Python Battle Royale: Who Will Survive in the End?❤️🤔

9th - 12th Grade

15 Qs

AR - 1.5 - Looping Shuffles

AR - 1.5 - Looping Shuffles

8th Grade - University

17 Qs

Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

9th Grade

15 Qs

Python: тест #1

Python: тест #1

1st Grade - University

11 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?