Python Basics Quiz - Revision

Python Basics Quiz - Revision

12th Grade

15 Qs

quiz-placeholder

Similar activities

C++ vs Python: A Quiz Introduction

C++ vs Python: A Quiz Introduction

11th Grade - University

10 Qs

Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

20 Qs

Python Quiz (part 1)

Python Quiz (part 1)

9th - 12th Grade

20 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Section 4A: Decompose the code using functions

Section 4A: Decompose the code using functions

12th Grade

14 Qs

Python Basics Quiz

Python Basics Quiz

11th - 12th Grade

12 Qs

Python Functions

Python Functions

12th Grade

15 Qs

File Handling

File Handling

12th Grade

10 Qs

Python Basics Quiz - Revision

Python Basics Quiz - Revision

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Vatsala Dadeech

FREE Resource

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

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?