Programming Approach in C,
4th Edition by Behrouz A. Forouzan
SOLUTION MANUAL
, Solution and Answer Guide: Afyouni/Forouzan, Computer Science: A Structured Programming Approach in C, 4e,
©2023, 9780357506134, Chapter 1: Introduction to Computers
Solution and Answer Guide
AFYOUNI/FOROUZAN , C OMPUTER SCIENCE: A STRUCTURED P ROGRAMMING APPROACH IN C, 4e,
©2023, 9780357506134, Chapter 1: I NTRODUCTION TO C OMPUTERS
TABLE OF CONTENTS
Review Questions ........................................................................................................................................ 1
Exercises ......................................................................................................................................................... 6
Problems.......................................................................................................................................................... 9
Note to instructor: It is recommended that students be required to respond, where
appropriate, with answers that are complete sentences.
REVIEW QUESTIONS
1. Computer software is divided into two broad categories: system software and
operational software.
a. True
b. False
Answer: b. False
Feedback: Computer software is divided into two categories: system software and
application software.
2. The operating system provides services such as a user interface, file and database
access, and interfaces to communications systems.
a. True
b. False
Answer: a. True
Feedback: Operating system is the interface between the user and the computer
hardware.
3. The first step in system development is to create a source program.
a. True
b. False
Answer: b. False
Feedback: The first phase in system development is system requirements phase.
,4. The programmer design tool used to design the whole program is the flowchart.
O O O O O O O O O O O O
a. True
b. False
Answer: b. False O O
Feedback: Flowchart is a tool to represent the flow of data through a
O O O O O O O O O O O O
Oprogram and how it is processed.
O O O O O
5. Blackbox testing gets its name from the concept that the program is being
O O O O O O O O O O O O
Otested without knowing how it works.
O O O O O
a. True
b. False
Answer: a. True O O
Feedback: Blackbox testing is a concept of testing where the test engineer
O O O O O O O O O O O
Oand the user perform the testing without knowing how the program is
O O O O O O O O O O O
Oactually built. O
6. Which of the following is a component(s) of a computer system?
O O O O O O O O O O
a. Hardware
b. Software
c. Both hardware and software
O O O
d. Pseudocode
e. System test O
Answer: c. Both hardware and software
O O O O O
Feedback: Pseudocode is a tool that describes in part English the algorithm of
O O O O O O O O O O O O
Othe program.
O
7. Which of the following is not an example of application software?
O O O O O O O O O O
a. Database management system O O
b. Language translator O
c. Operating system O
d. Accounting system O
e. Virus detection O
Answer: c. Operating System
O O O
Feedback: Operating system is not an application; it is a required software to
O O O O O O O O O O O O
Ointerface with the computer hardware.
O O OO O O
, 8. Which of the following is not a computer language?
O O O O O O O O
a. Assembly/symbolic language O
b. Binary language O
c. High-level languages O
d. Machine language O
e. Natural language O
Answer: b. Binarylanguage
O O
Feedback: a, c, d, and e. Assembly/symbolic, high-level, machine, and natural are
O O O O O O O O O O O
Ocategories of computer languages. O O O
9. The computer language that most closely resembles machine language is
O O O O O O O O O
O .
a. assembly/symbolic
b. COBOL
c. FORTRAN
d. high level O
Answer: a. assembly/symbolic
O O
O Feedback:
b and c. COBOL and FORTRAN are high-level computer languages.
O O O O O O O O O
d. High level is not a computer language.
O O O O O O O
10. The tool used by a programmer to convert a source program to a machine
O O O O O O O O O O O O O
Olanguage object module is a O . O O O
a. compiler
b. language translator O
c. linker
d. preprocessor
e. text OO O editor
O Answer: a. O
compiler
O
O Feedback:
b. Language translator is a part of the compiler.
O O O O O O O
c. The linker assembles all input/output processes and mathematical library
O O O O O O O O
functions.
O
d. Preprocessor is part of the compiler. O O O O O
e. Text editor is used to create the program.
O O O O O O O