Python - Quiz

Python - Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Python test

Python test

Professional Development

16 Qs

Intro to Python by AUG Problem solving module

Intro to Python by AUG Problem solving module

University - Professional Development

24 Qs

PYTHON BASICS

PYTHON BASICS

Professional Development

15 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Roblox quizz

Roblox quizz

Professional Development

18 Qs

Python 1

Python 1

Professional Development

20 Qs

Foundations of Programming

Foundations of Programming

Professional Development

25 Qs

Play with Python Lib

Play with Python Lib

KG - Professional Development

25 Qs

Python - Quiz

Python - Quiz

Assessment

Quiz

Other

Professional Development

Hard

Created by

Joel Soloman

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to create an empty list in Python?

list = []

list = {}

list = ()

list = [None]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

"py"

"th"

"tho"

"ho"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 2 ** 3?

8

6

2

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the " != " operator represent in Python?

Less than or equal to

Equal to

Not equal to

Greater than or equal to

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code snippet?

2.0

2.5

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'len()' function return when applied to a string in Python?

The number of characters in the string

The first character of the string

The last character of the string

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is unordered in Python?

List

Dictionary

Set

Tuple

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?