Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

coding

coding

KG - Professional Development

15 Qs

Comparison operators

Comparison operators

6th - 11th Grade

9 Qs

Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

Data Conversion &  User Input

Data Conversion & User Input

10th Grade

10 Qs

IDT S1 Final Review Part 2

IDT S1 Final Review Part 2

8th - 12th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Mr McCallion

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A reserved memory location to store values

A mathematical equation

A type of snake in the Amazon rainforest

A type of data structure in Python

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are all built-in data types in Python?

integer, float, string, boolean, list, dictionary

number, boolean, string, vector, class

variable, selection, iteration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between integer and float data types?

Float data type stores both whole and decimal numbers, while integer data type stores only whole numbers.

Integer data type stores whole numbers, while float data type stores decimal numbers.

Integer data type can be used for text data, while float data type is only used for numerical data.

Integer data type stores decimal numbers, while float data type stores whole numbers.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a variable in Python?

value = variableName

variableName = value

variableName == value

value == variableName

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print(type(5))?

5

<type 'int'>

NoneType

integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

x = 5

y = 'Hello'

print(x + y)

None

TypeError

10

SyntaxError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

x = 10

y = 3

print(x // y)

3

30

2.5

7

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?