COSC 1436 Exam with complete
solutions latest version
In a broad sense, the two primary categories of programming languages are -
CORRECT ANSWER-Low-level and high-level
A set of instructions that the computer follows to solve a problem - CORRECT
ANSWER-program
An example of a secondary storage device is - CORRECT ANSWER-the disk drive
This is a complete instruction that causes the computer to perform some action -
CORRECT ANSWER-statement
During which stage does the central processing unit analyze the instruction and encode
it in the form of a number, and then generate an electronic signal? - CORRECT
ANSWER-decode
The programming process consists of several steps, which include: - CORRECT
ANSWER-Design, creation, testing, and debugging
This step will uncover any syntax errors in your program - CORRECT ANSWER-
compiling
In the process of translating a source file into an executable file, which of the following is
the correct sequence? - CORRECT ANSWER-Source code, preprocessor, modified
source code, compiler, object code, linker, executable code
Three primary activities of a program are - CORRECT ANSWER-input, processing, and
output
This is a volatile type of memory, used for temporary storage. - CORRECT ANSWER-
RAM
BRAINSCAPE1
, BRAINSCAPE1
A set of well-defined steps for performing a task or solving a problem is known as -
CORRECT ANSWER-algorithm
Internally, the CPU consist of two parts - CORRECT ANSWER-the control unit and the
arithmetic and logic unit
A diagram that shows the logical flow of a program - CORRECT ANSWER-flowchat
which of the following is not one of the five major components of a computer system? -
CORRECT ANSWER-preprocessor
An integrated development enviroment typically consists of - CORRECT ANSWER-text
editor, compiler, debugger
the name for a memory location that may hold data is - CORRECT ANSWER-variable
A set of rules that must be followed when constructing a program - CORRECT
ANSWER-syntax
decodes an instruction and generates electrical signals - CORRECT ANSWER-Control
unit
Words that have a special meaning and may be used only for their intended purpose
are known as - CORRECT ANSWER-key word
Mistakes that cause a running program to produce incorrect results are called: -
CORRECT ANSWER-logic errors
the computer's main memory is - CORRECT ANSWER-RAM
What statement best describes a variable and its primary purpose? - CORRECT
ANSWER-A variable is a named storage location in the computer's memory used for
holding a piece of information
Used in a program to mark the beginning or ending of a statement, or separate items in
a list - CORRECT ANSWER-Punctuation
The purpose of a memory address is - CORRECT ANSWER-To identify the location of
a byte in memory
The programmer usually enters source code into a computer using: - CORRECT
ANSWER-A text editor
What will the following code display?
int number = 7;
cout << "The number is" << "number" << endl; - CORRECT ANSWER-the number is
number
BRAINSCAPE1