PTHS

PTHS

10th Grade

30 Qs

quiz-placeholder

Similar activities

GCSE Computer Science: Programming (Python)

GCSE Computer Science: Programming (Python)

9th - 12th Grade

25 Qs

Python Class 9

Python Class 9

9th - 10th Grade

25 Qs

Understanding Input, Selection and Loops in Python

Understanding Input, Selection and Loops in Python

7th Grade - University

25 Qs

Turtle Python Quiz 1

Turtle Python Quiz 1

10th - 12th Grade

27 Qs

Python new

Python new

3rd Grade - University

26 Qs

Python Programming with sequences a selection

Python Programming with sequences a selection

9th - 12th Grade

25 Qs

Python Quiz II

Python Quiz II

9th Grade - University

30 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

PTHS

PTHS

Assessment

Quiz

Computers

10th Grade

Hard

Created by

George Aryeetey

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a variable in Python?

var x = 5

x = 5

int x = 5

declare x = 5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid Python datatype?

List

Dictionary

Stack

Tuple

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which datatype in Python is immutable?

List

Tuple

Dictionary

Set

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

7

52

3

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What datatype is used to store text in Python?

Integer

Float

String

Boolean

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used for exponentiation in Python?

^

**

//

%

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of 10 / 3 in Python?

3.3333

3

3.0

Error

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?