Question
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
Select one:
a.
String
b.
It depends on what the user types in
c.
Integer
d.
Floating point
Answers
Answer
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
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
Answer
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
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
Answer
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?")
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?")
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.