PTHS

PTHS

10th Grade

30 Qs

quiz-placeholder

Similar activities

Python Vocab

Python Vocab

9th - 12th Grade

34 Qs

Programming Loops, Data Structures, etc..

Programming Loops, Data Structures, etc..

9th - 12th Grade

35 Qs

Python Basics

Python Basics

8th - 10th Grade

30 Qs

Python Revision

Python Revision

7th - 11th Grade

35 Qs

Python Practice Review

Python Practice Review

9th - 12th Grade

30 Qs

AP Computer Science Midterm Review

AP Computer Science Midterm Review

9th - 12th Grade

30 Qs

Python set 1

Python set 1

9th - 12th Grade

26 Qs

Data Types- Python

Data Types- Python

7th - 11th Grade

25 Qs

PTHS

PTHS

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Nii Jorge

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?