python Quiz

python Quiz

University

7 Qs

quiz-placeholder

Similar activities

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

104-P-01: Delegates and lambdas

104-P-01: Delegates and lambdas

University

10 Qs

PYTHON BASICS PART 1

PYTHON BASICS PART 1

University

10 Qs

PSP Week3

PSP Week3

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

IP-Com3 - Clase 2

IP-Com3 - Clase 2

University

12 Qs

python Quiz

python Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Usha Chennai

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code

print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))

False True True True

False True False True

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of print(type([]) is list)

False

True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following variable assignment

x = 75

def myfunc():

x = x + 1

print(x)


myfunc()

print(x)

Error

1

76

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the right way to create a string literal Ault'Kelly

str1 = ‘Ault\\’Kelly’

str1 = ‘Ault\’Kelly’

str1 = “””Ault’Kelly”””

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of print(type({}) is set)

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the following

aTuple = (1, 'Jhon', 1+3j)

print(type(aTuple[2:3]))

list

complex

tuple

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python 3, what is the type of type(range(5))


int

list

range

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers