Python Programming Quiz

Python Programming Quiz

Professional Development

25 Qs

quiz-placeholder

Similar activities

c-basics-1

c-basics-1

10th Grade - Professional Development

24 Qs

Javascript Assessment

Javascript Assessment

Professional Development

20 Qs

C Code Master

C Code Master

Professional Development

20 Qs

For Loop Python_2024

For Loop Python_2024

Professional Development

20 Qs

Know your basics in C?

Know your basics in C?

Professional Development

20 Qs

Preprocessor Directives

Preprocessor Directives

Professional Development

25 Qs

CONTROL STRUCTURES - LIST

CONTROL STRUCTURES - LIST

Professional Development

25 Qs

C-4 CHAPTAR -1

C-4 CHAPTAR -1

Professional Development

22 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Roshni Mahajan

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code?

A

B

C

Error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be printed?

Python

Java

Error

Nothing

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output?

Equal

Not Equal

Error

None

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output?

0

2

4

0

1

2

3

4

0

2

4

6

Infinite loop

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will happen when we run this code?

Prints 5

TypeError

Prints None

SyntaxError

6.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Fill in the blank to print numbers from 1 to 5. for i in _______(1, 6): print(i)

7.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Fill in the blank to get a random integer between 1 and 10. import random num = random._______(1, 10)

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?