COMPUTER SCIENCE 1 FINAL EXAM AND RATIONALE
EXAM COMPREHENSIVE 2026 QUESTIONS EXAM LATEST
VERSION SOLVED QUESTIONS & ANSWERS VERIFIED
100 %
True/False: Most of the lines in a program contain something meaningful;
however, some of the lines may contain nothing at all.
True
The CPU includes
the arithmetic and logic unit (ALU) and the control unit.
A(n) ________ is a set of instructions that tells the computer how to solve a
problem.
program
At the heart of a computer is its central processing unit (CPU). Its job is to
do all of these
Characters or symbols that perform operations on one or more operands are
operators
Memory locations that can hold data are called
variables
The statements written by a programmer are called
source code
True/False: Once a value has been stored in a variable it cannot be changed.
False
An integrated development environment (IDE) normally includes
all of these
True/False: Before a computer can execute a program written in a high level
language, such as C++, it must be translated into object code.
, Page 2 of 20
True
True/False: The purpose of the compiler is to convert object code into source
code.
False
Creating a program requires many steps. Three of these are
program design, writing source code, and testing.
The computer's main memory is commonly known as
random-access memory (RAM).
The term hardware refers to the
physical components that make up a computer.
The ________ coordinates the computer's operations by fetching the next
instruction and using control signals to regulate the other major computer
components.
control unit
The purpose of a memory address is
to identify the location of a memory cell.
A storage location in the computer's memory that can hold a piece of data is
called
a variable.
Words with a special meaning that may be used only for their intended
purpose are known as
keywords
all of these.
High-level programming languages include
A variable definition always specifies the name of a variable and tells
what type of data it can hold.
In the C++ statement pay = rate * hours;
the * symbol is an example of
an operator.
True/False: Syntax involves rules that must be followed when writing a
program.
True
True/False: Most modern computers can understand and execute pseudocode.
False
, Page 3 of 20
Internally, the central processing unit (CPU) consists of two parts:
the arithmetic and logic unit (ALU) and the control unit.
A ________ is a complete instruction that causes the computer to perform
some action.
statement
all of these
Which of the following is an example of a secondary storage device?
________ is an example of volatile memory, used for temporary storage while a
program is running.
RAM
Even when there is no power to the computer, data can be held in
a secondary storage device.
Even when there is no power to the computer, data can be held in
a secondary storage device.
True/False: Executable code is computer code that contains no errors.
False
The programs that control and manage the basic operations of a computer are
generally referred to as
system software.
Mistakes that allow a program to run, but cause it to produce erroneous
results are called
logic errors
The bool data type
has only two values: true and false.
C++ automatically places ________ at the end of a string literal.
the null terminator
#include is an example of a(n)
preprocessor directive
The expression evaluates to
2
The ________ is used to display information on the computer's screen.
cout object
In a C++ program, two slash marks ( // ) indicate the beginning of
a comment