Exam (elaborations) COMP 230
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................................
Written for
- Institution
-
Devry University-Chicago
- Course
-
COMP 230
Document information
- Uploaded on
- June 21, 2021
- Number of pages
- 7
- Written in
- 2020/2021
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
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