Search Header Logo

Python Input

Authored by Michael Alves

Computers

11th Grade

Used 2+ times

Python Input
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 function is used to retrieve text from the user?

input

print

variable

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variable is used to store the text retrieved from the user?

float

int

string

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the input function is called?

It stores the text in a variable

It converts a string into an integer

It prints a prompt and retrieves text from the user

It performs a mathematical operation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to convert a string into an integer?

variable

input

int

print

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of the variable when the user enters a number without using a number function?

boolean

float

string

int

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the int function do?

It prints a prompt and retrieves text from the user

It converts a string into a decimal number

It stores the text in a variable

It converts a string into a whole number

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the int function do when given the string '22'?

It converts it into an integer

It converts it into a boolean

It converts it into a string

It converts it into a float

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?