Python Programming Quiz

Python Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

HIMSI Webinar Series 4

HIMSI Webinar Series 4

University

15 Qs

CÂU HỎI ĐƠN GIẢN VỀ PYTHON

CÂU HỎI ĐƠN GIẢN VỀ PYTHON

University

11 Qs

ATP-lab viva

ATP-lab viva

University

10 Qs

snakes

snakes

3rd Grade - University

10 Qs

TEST 1

TEST 1

University

10 Qs

Globalization

Globalization

KG - University

15 Qs

Python Programming

Python Programming

University

8 Qs

Quiz #3 - MIT

Quiz #3 - MIT

University

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