What type of data does the input() function return?

Select one:

a.
String

b.
It depends on what the user types in

c.
Integer

d.
Floating point

7 answers

a. String
Which of the following best describes the input() parameter?
Select one:

a.
It contains the length of time the function will wait for an answer

b.
It contains a text prompt for the user to enter a value

c.
It contains the name of the variable that will hold the output

d.
It contains the number of values the user must enter
b. It contains a text prompt for the user to enter a value
If the user enters "18" in response to an input() question, what kind of data is returned?
Select one:

a.
A string containing "18"

b.
A "True" Boolean value showing success

c.
A floating point containing 18.0

d.
An integer containing 18
a. A string containing "18"
Which of the following statements will successfully prompt the user for input and store the result in the "answer" variable?
Select one:

a.
input.answer("What is your quest?")

b.
answer = input("What is your quest?")

c.
answer = parse(What is your quest?)

d.
answer("What is your quest?")
b. answer = input("What is your quest?")