Search Header Logo

Python Quiz June 22 2024

Authored by Krishna Srinivasan

Computers

Professional Development

Used 1+ times

Python Quiz June 22 2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a=False

type(a)

What is the output?

str

int

syntax error

bool

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a="True"

print(a)

What is the output?

True

bool

str

Syntax Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

x = 7

y = 20

print(X)

What is the output?

7

27

20

Name Error - X is not defined.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In this code, 88.9 is entered as input.

What will be the output?

System asks for next number

Value Error is prompted

System does not process it

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a = "Krishna"

b = "Srinivasan"

print(a+b)

What is the output?

Krishna

Srinivasan

KrishnaSrinivasan

Strings cannot be added together

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a = 10

b = "Krishna"

c = a + b

print(c)

What is the output?

Value Error

10Krishna

10

Krishna

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Value for a is entered as 10

Value for b is entered as 20

What is the output?

200

30

0.5

Type Error

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?