Question Detail

COS 102 concept of problem solving; lecture 1 week 2 Objective Question

Question

What is the primary difference highlighted on page 23 between 'Pseudocode' and 'Processing code (i.e., program)'?
Options
A Pseudocode uses graphical symbols, while processing code uses plain English.
B Pseudocode is an informal high-level description of an algorithm, while processing code is the actual executable instructions for a computer.
Correct Answer
C Pseudocode is only used for very simple algorithms, whereas processing code is for complex ones.
D Pseudocode involves debugging; processing code involves testing.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 23 presents a side-by-side comparison: 'Pseudocode' lists conceptual steps in plain language (e.g., 'set the sum to 0', 'load all grades'), while 'Processing code (i.e., program)' shows actual code syntax (e.g., 'int sum = 0;', 'byte[] x = loadBytes("numbers");'). This illustrates pseudocode as a plan and processing code as the implementation.

Hint

Examine the two columns on page 23: 'Pseudocode' and 'Processing code (i.e., program)' and their respective contents.

Question Info