Search Header Logo

Python Basics Quiz - Revision

Authored by Vatsala Dadeech

Computers

12th Grade

Python Basics Quiz - Revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the year in which Python was developed by Guido van Rossum?

1992

1990

1993

1991

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a feature of Python?

Difficult to use

Compiled language

Limited library support

Cross-platform language

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression 'print(3**3)' in Python?

6

9

27

81

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'int()' function in Python?

Converts string to integer

Converts integer to float

Converts float to integer

Converts integer to string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'math.factorial(4)' in Python?

8

120

6

24

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of '5 & 3' in Python bitwise operations?

1

3

5

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'break' statement in Python?

Print a message

Do nothing

Skip remaining statements in the loop

Terminate the loop

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?