Comp 230 Quiz Week 2
1. Question :
(TCO 2) What is the problem with the following statement? lastName = "smith
Student Answer: There is nothing wrong with this statement.
lastName is not a descripti
...
Comp 230 Quiz Week 2
1. Question :
(TCO 2) What is the problem with the following statement? lastName = "smith
Student Answer: There is nothing wrong with this statement.
lastName is not a descriptive variable name. Smith should be in double quotes.
The value on the left must be a variable name.
Instructor Explanation:
See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8.
Points Received: 2 of 2
Comments:
Question 2 Question :
.
(TCO 2) An English-like statement used to describe the logic of a program is known as .
Student Answer: desk-checking pseudocode flowchart code map
Instructor Explanation:
See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8.
Points Received: 2 of 2
Comments:
Question 3 Question :
.
(TCO 2) Variable names should typically be .
Student Answer: multiple words with spaces
multiple words without spaces only a single letter
uppercase letters only
Instructor Explanation:
See the Week 2 Lecture, Doc Sharing files, and textbook references to Chapters 1, 2, 5, 6, 7, and 8.
Points Received: 2 of 2
Comments:
Question 4 Question :
.
(TCO 2) What is the best choice for a variable name representing a bank balance?
Student Answer: bankBalance balance
bb b
Instructor Explanation:
See the Week 2 Lecture, Doc Sharing files, and textbook references to
...............................................................CONTINUED..........................................
[Show More]