Search Header Logo

Python Quiz

Authored by Jothi P

others

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What gets printed?

Python Program
PythonXProgram
PythonXrogram
Error, this code will not run

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What gets printed?

nPr
npr
onPr
nP

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The output of the code shown below is . . . . .

Error
12
15
1512

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many keyword arguments can be passed to a function in a single function call?

zero
one
zero or more
one or more

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following?

The sum of 2 and 10 is 12
Error
The sum of 0 and 1 is 2
The sum of 10 and 12 is 22

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following? print('Ab!2'.swapcase())

AB!@
ab12
aB!2
aB1@

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the Output:

2
1
error
None

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?