Programming Approach in C,
4th Edition by Behrouz A. Forouzan
SOLUTION MATUAL
, 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.
a. True
b. False
Answer: b. False
Feedback: Flowchart is a tool to represent the flow of data through a program and
how it is processed.
5. Blackbox testing gets its name from the concept that the program is being tested
without knowing how it works.
a. True
b. False
Answer: a. True
Feedback: Blackbox testing is a concept of testing where the test engineer and the
user perform the testing without knowing how the program is actually built.
6. Which of the following is a component(s) of a computer system?
a. Hardware
b. Software
c. Both hardware and software
d. Pseudocode
e. System test
Answer: c. Both hardware and software
Feedback: Pseudocode is a tool that describes in part English the algorithm of the
program.
7. Which of the following is not an example of application software?
a. Database management system
b. Language translator
c. Operating system
d. Accounting system
e. Virus detection
Answer: c. Operating System
Feedback: Operating system is not an application; it is a required software to interface
with the computer hardware.
, 8. Which of the following is not a computer language?
a. Assembly/symbolic language
b. Binary language
c. High-level languages
d. Machine language
e. Natural language
Answer: b. Binarylanguage
Feedback: a, c, d, and e. Assembly/symbolic, high-level, machine, and natural are
categories of computer languages.
9. The computer language that most closely resembles machine language is
.
a. assembly/symbolic
b. COBOL
c. FORTRAN
d. high level
Answer: a. assembly/symbolic
Feedback:
b and c. COBOL and FORTRAN are high-level computer languages.
d. High level is not a computer language.
10. The tool used by a programmer to convert a source program to a machine language
object module is a .
a. compiler
b. language translator
c. linker
d. preprocessor
e. text editor
Answer: a. compiler
Feedback:
b. Language translator is a part of the compiler.
c. The linker assembles all input/output processes and mathematical library functions.
d. Preprocessor is part of the compiler.
e. Text editor is used to create the program.