Python Programming Test 2

Python Programming Test 2

7th Grade

30 Qs

quiz-placeholder

Similar activities

IT-квест (IT-Старт-2)

IT-квест (IT-Старт-2)

6th - 8th Grade

25 Qs

file formats

file formats

KG - Professional Development

27 Qs

COMPTIA ITF

COMPTIA ITF

1st Grade - Professional Development

29 Qs

ULANGAN HARIAN MANAJEMEN FILE DAN FOLDER

ULANGAN HARIAN MANAJEMEN FILE DAN FOLDER

7th - 9th Grade

25 Qs

DigLit - CH06: Multiple Choice

DigLit - CH06: Multiple Choice

6th - 8th Grade

30 Qs

HTML Review

HTML Review

6th - 8th Grade

25 Qs

Internet Terms Grade 7 & 8

Internet Terms Grade 7 & 8

6th - 8th Grade

29 Qs

Python 2d topic (типы данных, ввод, вывод)

Python 2d topic (типы данных, ввод, вывод)

6th - 12th Grade

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