Python Programming Quiz

Python Programming Quiz

University

49 Qs

quiz-placeholder

Similar activities

Java қазақша 51 - 100

Java қазақша 51 - 100

University

50 Qs

KM02

KM02

University

50 Qs

Quiz Pra-Asesmen

Quiz Pra-Asesmen

7th Grade - University

52 Qs

MS Word Shortcuts Quiz

MS Word Shortcuts Quiz

University

52 Qs

KELAS 2-REVIEW MATERI INFORMATIKA SM2

KELAS 2-REVIEW MATERI INFORMATIKA SM2

2nd Grade - University

50 Qs

соңғы сессия 2

соңғы сессия 2

University

50 Qs

Mengenal Algoritma Pemrograman Scratch

Mengenal Algoritma Pemrograman Scratch

10th Grade - University

50 Qs

Ôn tập C# Chương 6,7,8,9

Ôn tập C# Chương 6,7,8,9

University

46 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

sunkar ...

Used 2+ times

FREE Resource

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the continue statement do in a loop?

Skips to the next iteration.

Exits the loop completely.

Repeats the current iteration.

Stops the program.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to determine the type of an object in Python?

type()

typeof()

object_type()

classof()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print(bool(""))

False

True

None

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start a Python script file?

By saving it with a .py extension.

By saving it with a .python extension.

By using #start as the first line.

By running python init in the terminal.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print([1, 2, 3] + [4, 5]) output?

[1, 2, 3, 4, 5]

12345

[5, 4, 3, 2, 1]

[1, 2, 3][4, 5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to repeat a string multiple times in Python?

*

+

&

!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the is operator do in Python?

Checks if two variables point to the same object.

Compares the values of two variables.

Assigns a value to a variable.

Tests for membership in a sequence.

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?