CS 214 Practice Sets Exam With
Complete Solutions
Computer software is divided into two broad categories: system software and
operational software
T or F - ANSWER F
The operating system provides services such as a user interface, file and database
access, and interfaces to communications systems.
T or F - ANSWER T
The first step in system development is to crate a source program.
T or F - ANSWER F
The programmer design tool used to design the whole program is the flowchart
T or F - ANSWER F
Blackbox testing gets its name from the concept that the program is being tested
without knowing how it works.
T or F - ANSWER T
Which of the following is a component(s) of a computer system?
Hardware
Software
Both hardware and software
Pseudocode
System test - ANSWER Correct! Both hardware and software
Which of the following is an example of application software?
Database management system
Language translator
Operating system
Sort
,Security monitor - ANSWER Correct! Database management system
Which of the following is not a computer language?
Assembly/symbolic language
Binary language
High-level languages
Machine language
Natural language - ANSWER Correct! Binary language
The computer language that most closely resembles machine language is
Assembly/symbolic
COBOL
FORTRAN
High-level - ANSWER Correct! Assembly/symbolic
The tool used by a programmer to convert a source program to a machine language
object module is a
Compiler
Language translator
Linker
Preprocessor
Text editor - ANSWER Correct! Compiler
The _____________________ contains the programmer's original program code.
Application file
Executable file
Object file
Source file
Text file - ANSWER Correct! Source file
The series of interrelated phases that is used to develop computer software is known
as:
Program development
Software engineering
System development life cycle
System analysis
System design - ANSWER Correct! System development life cycle
The _______________________ is a program design tool that is a visual
representation of the logic in a function within a program.
Flowchart
Program map
Pseudocode
Structure chart
Waterfall model - ANSWER Correct! Flowchart
, The test that validates a program by ensuring that all of its statements have been
executed -- that is, by knowing exactly how the program is written -- is:
Blackbox testing
Destructive testing
Nondestructive testing
System testing
Whitebox testing - ANSWER Correct! Whitebox testing
The purpose of a header file, such as stdio.h, is to store a program's source code.
True
False - ANSWER Correct! False
Any valid printable ASCII character can be used in an identifier.
True
False - ANSWER Correct! False
The C standard function that receives data from the keyboard is printf.
True
False - ANSWER Correct! False
Which of the following statements about the structure of a C program is false?
A C program starts with a global declaration section
Declaration sections contain instructions to the computer
Every program must have at least one function.
One and only one function may be named main.
Within each function there is a local declaration section. - ANSWER Correct!
Declaration sections contain instructions to the computer
Which of the following statements about block comments is false?
Comments are internal documentation for programmers.
Comments are used by the preprocessor to help format the program..
Comments begin with a /* token
Comments cannot be nested.
Comments end with a */ token - ANSWER Correct! Comments are used by the
preprocessor to help format the program..
Which of the following identifiers is not valid?
_option
amount
sales_amount
salesAmount
$salesAmount - ANSWER Correct! $salesAmount
Which of the following is not a data type?
char
float
Complete Solutions
Computer software is divided into two broad categories: system software and
operational software
T or F - ANSWER F
The operating system provides services such as a user interface, file and database
access, and interfaces to communications systems.
T or F - ANSWER T
The first step in system development is to crate a source program.
T or F - ANSWER F
The programmer design tool used to design the whole program is the flowchart
T or F - ANSWER F
Blackbox testing gets its name from the concept that the program is being tested
without knowing how it works.
T or F - ANSWER T
Which of the following is a component(s) of a computer system?
Hardware
Software
Both hardware and software
Pseudocode
System test - ANSWER Correct! Both hardware and software
Which of the following is an example of application software?
Database management system
Language translator
Operating system
Sort
,Security monitor - ANSWER Correct! Database management system
Which of the following is not a computer language?
Assembly/symbolic language
Binary language
High-level languages
Machine language
Natural language - ANSWER Correct! Binary language
The computer language that most closely resembles machine language is
Assembly/symbolic
COBOL
FORTRAN
High-level - ANSWER Correct! Assembly/symbolic
The tool used by a programmer to convert a source program to a machine language
object module is a
Compiler
Language translator
Linker
Preprocessor
Text editor - ANSWER Correct! Compiler
The _____________________ contains the programmer's original program code.
Application file
Executable file
Object file
Source file
Text file - ANSWER Correct! Source file
The series of interrelated phases that is used to develop computer software is known
as:
Program development
Software engineering
System development life cycle
System analysis
System design - ANSWER Correct! System development life cycle
The _______________________ is a program design tool that is a visual
representation of the logic in a function within a program.
Flowchart
Program map
Pseudocode
Structure chart
Waterfall model - ANSWER Correct! Flowchart
, The test that validates a program by ensuring that all of its statements have been
executed -- that is, by knowing exactly how the program is written -- is:
Blackbox testing
Destructive testing
Nondestructive testing
System testing
Whitebox testing - ANSWER Correct! Whitebox testing
The purpose of a header file, such as stdio.h, is to store a program's source code.
True
False - ANSWER Correct! False
Any valid printable ASCII character can be used in an identifier.
True
False - ANSWER Correct! False
The C standard function that receives data from the keyboard is printf.
True
False - ANSWER Correct! False
Which of the following statements about the structure of a C program is false?
A C program starts with a global declaration section
Declaration sections contain instructions to the computer
Every program must have at least one function.
One and only one function may be named main.
Within each function there is a local declaration section. - ANSWER Correct!
Declaration sections contain instructions to the computer
Which of the following statements about block comments is false?
Comments are internal documentation for programmers.
Comments are used by the preprocessor to help format the program..
Comments begin with a /* token
Comments cannot be nested.
Comments end with a */ token - ANSWER Correct! Comments are used by the
preprocessor to help format the program..
Which of the following identifiers is not valid?
_option
amount
sales_amount
salesAmount
$salesAmount - ANSWER Correct! $salesAmount
Which of the following is not a data type?
char
float