Python Programming Test 2

Python Programming Test 2

7th Grade

30 Qs

quiz-placeholder

Similar activities

Programming Logic & Design

Programming Logic & Design

KG - University

28 Qs

Python Quiz - print + input

Python Quiz - print + input

7th Grade

25 Qs

Python and ML Basics

Python and ML Basics

6th Grade - University

30 Qs

PCEP QUIZ 4

PCEP QUIZ 4

6th - 8th Grade

32 Qs

OOP & Pygame Quiz

OOP & Pygame Quiz

6th - 8th Grade

25 Qs

Python Programming Test

Python Programming Test

7th Grade

30 Qs

Understanding Input, Selection and Loops in Python

Understanding Input, Selection and Loops in Python

7th Grade - University

25 Qs

IT'S QUIZ TIME

IT'S QUIZ TIME

7th Grade

25 Qs

Python Programming Test 2

Python Programming Test 2

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Oluwadamilare Alonge

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is NOT a Python data type?

Integer

String

Function

Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will be the output of print(10 % 3)?

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which function is used to get input from the user in Python?

output()

get_input()

input()

ask()

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the correct way to write a comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of print(2 ** 3)?

5

6

8

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used to create a loop that iterates over a sequence?

for

loop

repeat

while

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code? if 5 > 3: print("Yes")

Yes

No

Error

Nothing

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?