1.8. Multiple Choice ExercisesΒΆ
Answer the following Multiple Choice questions to assess what you have learned in this chapter.
Q1
What is a program in computer science?
Q2
What is the function of the compiler?
Q3
What is the difference between source code and object code?
Q4
Multiple Response What are the basic functions that appear in every programming language?
Q5
What type of error would the following code cause? Assume you are trying to calculate the volume of a cylinder:
int radius = 7;
int height = 8;
double volume = 3.14 * radius * height;
Q6
What type of error would the following generate? Assume you are trying to calculate the volume of a cylinder:
int radius = 7;
int height = 8
double volume = 3.14 * r * r * height;
Q7
Multiple Response C++ is a(n) ________.
Q8
Multiple Response Which of the following is true about writing a program.
Q9
Multiple Response Which is true about programming languages?
Q10
You were asked to parse through your program, what should this entail?