Python Programming Quiz

Python Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Diagnostico PLyF

Diagnostico PLyF

University

10 Qs

Python Data Structures Quiz

Python Data Structures Quiz

University

15 Qs

01 Databases Overview

01 Databases Overview

University

10 Qs

quiz - 8 - day - 4

quiz - 8 - day - 4

12th Grade - University

11 Qs

python

python

3rd Grade - University

12 Qs

Python

Python

University

15 Qs

quiz - 7(exceptions and file handling)

quiz - 7(exceptions and file handling)

12th Grade - University

9 Qs

2R C-Skill Lab Test Autumn 2024-25

2R C-Skill Lab Test Autumn 2024-25

University

14 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?