Python Quiz - Workbooks 1-5

Python Quiz - Workbooks 1-5

10th Grade

40 Qs

quiz-placeholder

Similar activities

Kuis Aplikasi Kamus Digital

Kuis Aplikasi Kamus Digital

8th Grade - University

35 Qs

Y9 Computing Test - Phase 1

Y9 Computing Test - Phase 1

8th - 11th Grade

40 Qs

ย้อนหลัง กลางภาค Java ระดับต้น

ย้อนหลัง กลางภาค Java ระดับต้น

KG - University

40 Qs

Grade 6-Sistem Komputer

Grade 6-Sistem Komputer

6th Grade - University

40 Qs

tekno perkantoran PAS

tekno perkantoran PAS

10th Grade

40 Qs

98-368 Mobility and Devices Fundamentals Study Guide

98-368 Mobility and Devices Fundamentals Study Guide

9th - 12th Grade

40 Qs

SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI

SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI

10th Grade

40 Qs

PowerPoint  2016

PowerPoint 2016

7th Grade - University

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?