Search Header Logo

Inputs and Variables

Authored by Patrick Bryar

Computers

9th - 11th Grade

Used 34+ times

Inputs and Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to accept data as input at run time?

output()

print()

int()

input()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions display an output to the screen?

display()

output()

print()

post()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code produces the following output? Hello

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a input?

A function that allows us to ask the user to enter some data.

To plug in something.

Data displayed on a screen.

A user-defined function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python3, Whatever you enter as input, the input() function converts it into a string

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following input commands would allow the user to receive and store an integer from the keyboard?

integer = input("Please enter an integer:")

integer = int(input("Please enter an integer:"))

integer = float(input("Please enter an integer:"))

integer = bool(input("Please enter an integer:"))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly assigns the string "Tanner" to the variable name?

name  = print( "Tanner")
input("Tanner")
name = "Tanner"
name = input("Tanner")

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?