Python Programming Quiz

Python Programming Quiz

12th Grade

52 Qs

quiz-placeholder

Similar activities

Simple HTML and CSS

Simple HTML and CSS

9th - 12th Grade

55 Qs

French 1 final Harmon

French 1 final Harmon

9th - 12th Grade

56 Qs

fun :D

fun :D

KG - 12th Grade

51 Qs

Budgets, Spending Plans

Budgets, Spending Plans

12th Grade

57 Qs

Abeka Spanish 1 Test 1 (Volume 1)

Abeka Spanish 1 Test 1 (Volume 1)

8th - 12th Grade

48 Qs

Rolling Sky Birthday Quiz

Rolling Sky Birthday Quiz

KG - Professional Development

50 Qs

Business Management Unit Quiz

Business Management Unit Quiz

9th - 12th Grade

50 Qs

APCSP Create Task

APCSP Create Task

10th - 12th Grade

50 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Other

12th Grade

Medium

Created by

Mamta Kaundal

Used 2+ times

FREE Resource

52 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2variable

my_var

break

var-name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print(type("Hello"))

<class 'char'>

<class 'string'>

<class 'str'>

<class 'text'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a keyword in Python?

def

class

print

return

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of 5 + 3 * 2 in Python?

16

11

13

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? a = 10 b = 5 a, b = b, a print(a, b)

10 5

5 10

5 5

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is immutable in Python?

List

Dictionary

Tuple

Set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python statement? print(10 > 5 and 5 < 3)

True

False

Error

None

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?