Python Programming Quiz

Python Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Export and Import overview

Export and Import overview

University

8 Qs

CS201: Chapter 1

CS201: Chapter 1

University

12 Qs

Exploring Dictionaries and Arrays in Python

Exploring Dictionaries and Arrays in Python

University

10 Qs

PYTHON set4

PYTHON set4

University

10 Qs

Python armenia

Python armenia

1st Grade - University

10 Qs

Quiz Sistem Basis Data 2PITA(16/06/2022)

Quiz Sistem Basis Data 2PITA(16/06/2022)

University

14 Qs

AMONG US

AMONG US

3rd Grade - Professional Development

10 Qs

EDUC 104 (QUIZ 2) 2A-2

EDUC 104 (QUIZ 2) 2A-2

University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Other

University

Medium

Created by

Kartik Dubey

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of print(2 ** 3)?

6

8

4

9

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a mutable data type in Python?

String

Tuple

List

Integer

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code snippet? x = [1, 2, 3]; print(x[1:])

[1, 2, 3]

[2, 3]

[1, 2]

[3, 2]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to define a function in Python?

func

define

def

function

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create a dictionary in Python?

d = {}

d = []

d = ()

d = <>

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following functions can be used to find the length of a list in Python?

size()

length()

len()

count()

7.

OPEN ENDED QUESTION

20 sec • 1 pt

What will be the output of print(type(3.0))?

Evaluate responses using AI:

OFF

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?