Programming Approach in C,
4th Edition by Behrouz A. Forouzan
,SOLUTION MATUAL
PQ
, Solution and Answer Guide: Afyouni/Forouzan, Computer Science: A Structured Programming Approach in C,
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
4e,
©2023, 9780357506134, Chapter 1: Introduction to Comput P Q P Q P Q P Q P Q P Q
ers
SolutionandAnswerGuide Q
P Q
P Q
P
AFYOUNI/FOROUZAN , COMPUTER SCIENCE: A STRUCTURED P ROGRAMMING A PPROACH IN C, 4
P Q P Q P Q P Q P Q P Q P Q PQPQ P Q
e,
©2023, 9780357506134, Chapter 1: I NTRODUCTION TO C OMPUTERS
PQPQ P Q PQPQ P Q PQP Q PQP Q
TABLEOFCONTENTS Q
P Q
P
Review Questions ........................................................................................................................................ 1
PQ
Exercises ......................................................................................................................................................... 6
Problems.......................................................................................................................................................... 9
Note to instructor: It is recommended that students be required to respond, whe
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
re appropriate, with answers that are complete sentences.
P Q PQP Q PQP Q PQP Q PQP Q PQP Q PQP Q
REVIEW QUESTIONS P Q
1. Computer software is divided into two broad categories: system software an
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
d operational software.
P Q PQ
a. True
b. False
Answer: b. False PQ P
Q
Feedback: Computer software is divided into two categories: system software and
P
Q PQ PQ PQ PQ PQ PQ PQ PQ PQ P
Qapplication software. PQ
2. The operating system provides services such as a user interface, file and databa
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
se access, and interfaces to communications systems.
P Q PQ PQ PQ PQ PQ
a. True
b. False
Answer:a. True Q
P Q
P
Feedback: Operating system is the interface between the user and the comput
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
er hardware.
P Q
3. The first step in system development is to create a source program.
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
a. True
b. False
Answer: b. False PQ P
Q
Feedback: The first phase in system P Q P Q P Q P Q P Q P Q development is system requirements phase.P Q P Q P Q P Q
, 4. The programmer design tool used to design the whole program is the flowchart.
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
a. True
b. False
Answer: b. False PQ P
Q
Feedback: Flowchart is a tool to represent the flow of data through a program
PQ P Q P Q P Q PQ P Q P Q PQ PQ P Q PQ P Q P Q P
Qand how it is processed.
P Q P Q P Q P Q
5. Blackbox testing gets its name from the concept that the program is being te
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
sted without knowing how it works.
P Q PQ PQ PQ PQ
a. True
b. False
Answer:a. True Q
P Q
P
Feedback: Blackbox testing is a concept of testing where the test engineer and
PQ P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q
the user perform the testing without knowing how the program is actually
P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q
built.
6. Which of the following is a component(s) of a computer system?
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
a. Hardware
b. Software
c. Both hardware and software
PQ PQ PQ
d. Pseudocode
e. System test PQ
Answer: c. Both hardware and software
PQ PQ PQ PQ PQ
Feedback: Pseudocode is a tool that describes in part English the algorithm of
PQ P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P
Qthe program.
P Q
7. Which of the following is not an example of application software?
PQ PQ PQ PQ PQ PQ PQ PQ PQ PQ
a. Database management system PQ P
Q
b. Language translator P
Q
c. Operating system Q
P
d. Accounting system PQ
e. Virus detection P
Q
Answer: c. Operating System
P
Q P
Q P
Q
Feedback: Operating system is not an application; it is a required software to i
PQ P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q P Q
nterface with the computer hardware.
P Q P Q PQPQ PQP Q