Question1
Compared to a sequence of machine code instructions, a fragment of C code
a. describes the actions of the computer, not just of the CPU | ||
b. does not engage any transistors during its execution | ||
c. may describe the same algorithm ![]() | ||
d. is the native way to program most computers |
Question2
Which of the following is able to describe a computation at the highest level of bstraction?
a. machine code | ||
b. logic Gates | ||
c. C++ code ![]() | ||
d. C code |
Question3
Which of the following does a debugger do?
1. Analyze the source code to find programming errors.
2. Decode machine code generated by a compiler.
3. Stop execution of a program.
a. I, II, and III | ||
b. III only | ||
c. II and III only ![]() | ||
d. I and III only |
Question4
Integrated programming environments make it difficult to mix and match tools from different sources. This is
a. good, because it ensures compilation is not done incrementally by accident | ||
b. bad, because all the tools will then have the same user interface | ||
c. good, because tools from different sources cannot be made to interact with each other | ||
d. bad, because no single vendor is likely to be the source of all the best tools ![]() |
Question5
Consider the following fragment of C++ source code.
String msg; unsigned int x; int y;
cin >> msg >> x >> y;
cout << x + y;
Which of the following is (are) true regarding execution of the segment?
1. The input statement will always take the same amount of time to execute.
2. The output statement will always be executed immediately after the input statement.
3. If x and y are both positive, an integer greater than both will be printed.
a. II and III only | ||
b. none ![]() | ||
c. I and II only | ||
d. II only |
Question6
Which of t he following Visual C++ objects are contained within a "Project"?
I.Files II.Visual C++ Solutions III.Flow charts
I.Files II.Visual C++ Solutions III.Flow charts
a. II only | ||
b. I, II and III | ||
c. I only ![]() | ||
d. II and III only |
Question7
When using a debugger to find the cause of a program's incorrect behavior,
a. the faulty code fragment must first be identified | ||
b. it is fastest to start by stopping the debugger long before the behavior appears | ||
c. it is often necessary to start the program multiple times under the debugger ![]() | ||
d. the program is usually executed to the point at which the behavior occurs and then executed backwards to find the cause |
Question8
In Visual C++, a Win32 Console Application is
a. the simplest type of application Visual C++ can generate ![]() | ||
b. built by using sophisticated "Application Wizards" | ||
c. a program that is able to control the operating system of a windows computer | ||
d. the status window of the Visual C++ environment |