Python Basics Quiz - Revision

Python Basics Quiz - Revision

12th Grade

15 Qs

quiz-placeholder

Similar activities

untitled

untitled

8th Grade - University

11 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

10 Qs

Lists and Tuples

Lists and Tuples

12th Grade

10 Qs

Python Lists Dictionaries Tuple Set

Python Lists Dictionaries Tuple Set

12th Grade

10 Qs

python quiz

python quiz

12th Grade

20 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

list in python

list in python

12th Grade

20 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 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?