Question
Which of the following values would be stored in an "integer" variable?
Select one:
a.
False
b.
5.0
c.
50
d.
"Fifty"
Select one:
a.
False
b.
5.0
c.
50
d.
"Fifty"
Answers
Answer
What would be displayed on the output panel when the following code is run?
data = 100
print(data)
Select one:
a.
A syntax error message
b.
$100.00
c.
100
d.
data
data = 100
print(data)
Select one:
a.
A syntax error message
b.
$100.00
c.
100
d.
data
Answer
Which data type would best hold the numeric value 1.732?
Select one:
a.
floating point
b.
Boolean
c.
integer
d.
string
Select one:
a.
floating point
b.
Boolean
c.
integer
d.
string
Answer
Given a variable named "mystery", which of the following statements will display the data type of that variable?
Select one:
a.
print(mystery)
b.
print(type(mystery))
c.
mystery.type()
d.
No such statement exists
Select one:
a.
print(mystery)
b.
print(type(mystery))
c.
mystery.type()
d.
No such statement exists
Answer
Which of the following statements will add 10 to the value in the "mystery" variable and store the answer in the "result" variable?
Select one:
a.
mystery + 10 = result
b.
result = mystery(10)
c.
result = 10 + mystery
d.
mystery = result - 10
Select one:
a.
mystery + 10 = result
b.
result = mystery(10)
c.
result = 10 + mystery
d.
mystery = result - 10
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.