Python Quiz - Workbooks 1-5

Python Quiz - Workbooks 1-5

10th Grade

40 Qs

quiz-placeholder

Similar activities

Graphic Design Principles & Elements of Design (20 min)

Graphic Design Principles & Elements of Design (20 min)

9th - 12th Grade

40 Qs

Unit 5 Formative

Unit 5 Formative

9th - 12th Grade

40 Qs

Ôn Tập Chuong III - Tin 11

Ôn Tập Chuong III - Tin 11

6th Grade - University

40 Qs

INFORMÁTICA_EXAMEN_1BGU _2_QUIMESTRE

INFORMÁTICA_EXAMEN_1BGU _2_QUIMESTRE

9th - 12th Grade

40 Qs

Ôn tập thi HK1 - Tin 10 - Cánh Diều

Ôn tập thi HK1 - Tin 10 - Cánh Diều

10th Grade

39 Qs

MTA - Windows Operating System

MTA - Windows Operating System

9th - 12th Grade

37 Qs

6. SINIF 2022 2. DÖNEM 1. SINAV ÇALIŞMA SORULARI

6. SINIF 2022 2. DÖNEM 1. SINAV ÇALIŞMA SORULARI

5th - 10th Grade

44 Qs

Pemrograman Dasar Kelas X

Pemrograman Dasar Kelas X

10th Grade

40 Qs

Python Quiz - Workbooks 1-5

Python Quiz - Workbooks 1-5

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

r tingle

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to take user input in Python?

print()

input()

read()

write()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2variable

variable_name

variable-name

variable name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

num1 = 1

num2 = 1

total = num1 + num2

print (total)

4

8

2

16

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? x = 10 if x > 5: print("Greater than 5") else: print("5 or less")

5 or less

Greater than 5

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following code? x = int("10") + float("5.5") print(x)

15

15.5

TypeError

ValueError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will the loop run in the following code? for i in range(5): print(i)

4

5

6

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to display output in Python?

print()

write()

output()

Both write and print

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?