Search Header Logo

Python PRIMM L3

Authored by Matthew Kelsall

Computers

6th Grade

Used 2+ times

Python PRIMM L3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A type of fruit

A container for storing data values

A type of Python snake

A mathematical operation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a data type in Python?

Elephant

String

Bicycle

Mountain

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to get input from a user in Python?

print()

input()

output()

enter()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to store the number 42 in a variable called `age`, which of the following is the correct way to do it in Python?

age = "42"

age = 42

42 = age

"age" = 42

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a user's input into an integer in Python?

int(input())

str(input())

float(input())

bool(input())

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of getting a user's name as input in Python?

name = input("Enter your name: ")

name = int("Enter your name: ")

name = str("Enter your name: ")

name = bool("Enter your name: ")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of getting a user's age as an integer input in Python?

age = input("Enter your age: ")

age = int(input("Enter your age: "))

age = str(input("Enter your age: "))

age = float(input("Enter your age: "))

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?