CS 1400 EXAM 1 QUESTIONS WITH VERIFIED ANSWERS
Correct 57
Incorrect 00
1 of 57
Term
T/F? Computer Science and Computer Programming are the same
thing.
Give this one a try later!
my_list float
True False
Don't know?
2 of 57
Term
,In the following code, if I want to change the name of the variable, pi,
to PI, I should right click on the variable name and then choose what?
pi = 3.14159
radius = 5
area = pi * radius ** 2
Give this one a try later!
count >= 8 hellothere!
refactor > rename constant values should never change
Don't know?
3 of 57
Term
What kind of error will occur with the following code?
print("My name is", my_name)
my_name = "Alice"
Give this one a try later!
compile-time burst time
, creation-time run-time
Don't know?
4 of 57
Term
How should a programmer treat constants that differs from how a
variable should be treated? Choose the most complete answer.
Responses
Give this one a try later!
Constant values should be stored in Constant values should never
variables change
Constant values can be changed Constant values should be updated
during runtime regularly
Don't know?
5 of 57
Term
What is a statement?
, Give this one a try later!
A single line of code that defines a
A function that returns a value
variable
One or multiple lines of code
A block of code that executes a loop
that are related
Don't know?
6 of 57
Term
What is the term for a description of a program in a step-by-step way,
but written in English instead of a programming language?
Give this one a try later!
Iteration Algorithm
Pseudocode Source Code
Don't know?
7 of 57
Term
Correct 57
Incorrect 00
1 of 57
Term
T/F? Computer Science and Computer Programming are the same
thing.
Give this one a try later!
my_list float
True False
Don't know?
2 of 57
Term
,In the following code, if I want to change the name of the variable, pi,
to PI, I should right click on the variable name and then choose what?
pi = 3.14159
radius = 5
area = pi * radius ** 2
Give this one a try later!
count >= 8 hellothere!
refactor > rename constant values should never change
Don't know?
3 of 57
Term
What kind of error will occur with the following code?
print("My name is", my_name)
my_name = "Alice"
Give this one a try later!
compile-time burst time
, creation-time run-time
Don't know?
4 of 57
Term
How should a programmer treat constants that differs from how a
variable should be treated? Choose the most complete answer.
Responses
Give this one a try later!
Constant values should be stored in Constant values should never
variables change
Constant values can be changed Constant values should be updated
during runtime regularly
Don't know?
5 of 57
Term
What is a statement?
, Give this one a try later!
A single line of code that defines a
A function that returns a value
variable
One or multiple lines of code
A block of code that executes a loop
that are related
Don't know?
6 of 57
Term
What is the term for a description of a program in a step-by-step way,
but written in English instead of a programming language?
Give this one a try later!
Iteration Algorithm
Pseudocode Source Code
Don't know?
7 of 57
Term