Search Header Logo

Fun with Python Basics

Authored by Kaustubh Pandey

Others

1st Grade

Fun with Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we call a name that stores a value?

Parameter

Function

Variable

Constant

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is '5' in Python?

string

boolean

integer

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to assign a value to a variable?

+=

<>

=

==

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use to make decisions in Python?

Conditional statements

Functions

Variables

Loops

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 3 + 2?

4

5

6

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list in Python?

A list in Python is an immutable, unordered collection of items.

A list in Python is a mutable, ordered collection of items defined by square brackets.

A list in Python is a type of function that returns values.

A list in Python is a collection of items defined by curly braces.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a tuple?

You create a tuple by using square brackets, e.g., [1, 2, 3].

You create a tuple by using parentheses, e.g., (1, 2, 3).

You create a tuple by using curly braces, e.g., {1, 2, 3}.

You create a tuple by using angle brackets, e.g., <1, 2, 3>.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?