Deck 1: Introduction to Computers and Programming

Full screen (f)
exit full mode
Question
The __________ decodes an instruction and generates an electronic signal.

A) Arithmetic and Logic Unit
B) Main memory
C) BIOS
D) Control Unit
E) None of these
Use Space or
up arrow
down arrow
to flip the card.
Question
In C++, key words are written in all lowercase letters.
Question
Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.
Question
The preprocessor executes after the compiler.
Question
Pseudocode is a form of a program statement that will always evaluate to "False."
Question
The CPU is the most important component in a computer because without it, the computer could not run software.
Question
A computer stores a program while it is running

A) in main memory
B) on a hard disk
C) on the computer monitor
D) in the CPU
E) None of these
Question
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?

A) fetch
B) decode
C) execute
D) portability
Question
Computer programs are also known as

A) hardware
B) firmware
C) software
D) Any of these
E) None of these
Question
The term "bit" stands for binary digit.
Question
The two parts of the CPU are

A) the output device and the input device
B) the software and the hardware
C) the Control Unit and the Arithmetic and Logic Unit
D) the single-task device and the multi-task device
E) None of these
Question
The CPU's control unit retrieves the next instruction in a sequence of program instructions from main memory in the __________ stage.

A) fetch
B) decode
C) execute
D) portability
Question
What does the term hardware refer to?

A) The relative difficulty of writing computer programs
B) The physical components that make up a computer
C) The way a computer's storage space is organized
D) The logical flow of instructions
E) None of these
Question
A(n) __________ is a set of instructions that the computer follows to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) None of these
Question
A volatile type of memory that is used for temporary storage is

A) an address
B) the ALU
C) RAM
D) a disk drive
E) None of these
Question
At the heart of a computer is its central processing unit. The CPU's job is:

A) To fetch instructions
B) To carry out the operations commanded by the instructions
C) To produce some outcome or resultant information
D) All of these
E) None of these
Question
Machine language is an example of a high-level language.
Question
A CPU only understands machine language instructions.
Question
Programs are often referred to as hardware.
Question
In programming, the terms "line" and "statement" always mean the same thing.
Question
When a programmer saves to a file the statements he or she writes to create a program, these statements are

A) high level
B) source code
C) a preprocessor file
D) object code
E) None of these
Question
The programmer usually enters source code into a computer with

A) a hierarchy chart
B) a text editor
C) a compiler
D) pseudocode
E) None of these
Question
Which of the following is not one of the major components of a computer system?

A) the preprocessor
B) the CPU
C) main memory
D) input/output devices
E) secondary storage
Question
An Integrated Development Environment (IDE) typically consists of

A) a text editor
B) a compiler
C) a debugger
D) All of the above
E) None of these
Question
A variable definition defines the name of a variable that will be used in a program, as well as:

A) the type of data it will be used to hold
B) the operators that will be used on it
C) the number of times it will be used in the program
D) the value it will hold
E) None of these
Question
Words that have a special meaning and may be used only for their intended purpose are known as

A) operators
B) programmer defined words
C) key words
D) syntax
E) None of these
Question
This is a set of rules that must be followed when constructing a program:

A) syntax
B) punctuation
C) key words
D) operators
E) identifiers
Question
Programs are normally stored in __________ and loaded into main memory as needed.

A) the input device
B) the output device
C) secondary storage
D) the CPU
E) None of these
Question
A set of well-defined steps for performing a task or solving a problem is known as a(n):

A) hierarchy chart
B) algorithm
C) instruction set
D) statement
E) None of these
Question
In the process of translating a source file into an executable file, which of the following is the correct sequence?

A) Source code, preprocessor, modified source code, linker, object code, compiler, executable code
B) Preprocessor, source code, compiler, executable code, linker, modified source code, object code
C) Source code, compiler, modified source code, preprocessor, object code, linker, executable code.
D) Source code, preprocessor, modified source code, compiler, object code, linker, executable code.
E) Source code, linker, object code, compiler, modified source code, preprocessor, executable code.
Question
A computer monitor is a type of

A) input device
B) output device
C) storage device
D) software
E) None of these
Question
A named storage location in the computer's memory that holds a piece of information is a(n):

A) variable
B) operator
C) key word
D) statement
E) None of these
Question
This is a complete instruction that causes the computer to perform some action:

A) line
B) statement
C) variable
D) key word
E) None of these
Question
________ are used to translate each source code instruction into the appropriate machine language instruction.

A) modules
B) runtime libraries
C) compilers
D) preprocessor directives
E) None of these
Question
Which of the following is not a common input device?

A) keyboard
B) mouse
C) digital camera
D) printer
E) All are common input devices
Question
The purpose of a memory address is:

A) to identify the location of a byte in memory
B) to prevent multitasking
C) to obtain an algorithm
D) to improve the speed of processing
E) None of these
Question
This is used in a program to mark the beginning or ending of a statement, or separate items in a list:

A) separators
B) punctuation
C) operators
D) key words
E) None of these
Question
Three primary activities of a program are:

A) variable definitions, operators, lists of key words
B) lines, statements, punctuation
C) input, processing, output
D) integer, floating-point, character definitions
E) None of these
Question
Characters or symbols that perform operations on one or more operands are:

A) separators
B) op codes
C) operators
D) key words
E) None of these
Question
Which of the following best describes an operator?

A) An operator is a rule that must be followed when constructing a program.
B) An operator allows you to perform operations on one or more pieces of data.
C) An operator marks the beginning or ending of a statement, or is used to separate items in a list.
D) An operator is a word that has a special meaning.
E) An operator is a symbolic name that refers to a variable.
Question
Mistakes that cause a running program to produce incorrect results are called:

A) syntax errors
B) logic errors
C) compiler errors
D) linker errors
E) None of these
Question
The programming process consists of several steps, which include:

A) key words, operator definitions, punctuation
B) design, creation, testing, debugging
C) input, processing, output
D) syntax, logic, error handling
E) None of these
Question
The first step in writing a program is to

A) type the code
B) visualize the program running on a computer
C) visualize logical errors
D) clearly define what the program is to do
E) None of these
Question
The two methods used by C++ to write computer programs are:

A) top-down programming and procedural programming
B) procedural programming and object-oriented programming
C) pseudocoding and object-oriented programming
D) flowcharting and procedural programming
E) None of these
Question
The term that refers to the programmer reading the program from the beginning and stepping through each statement is

A) pseudocoding
B) software engineering
C) desk checking
D) spot checking
E) None of these
Question
A model often used when creating a program that begins with the overall task and refines it into smaller subtasks is a(n)

A) flowchart
B) UML diagram
C) blueprint
D) hierarchy chart
E) None of these
Question
Which step uncovers any syntax errors in your program?

A) editing
B) compiling
C) linking
D) executing
E) None of these
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/47
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Introduction to Computers and Programming
1
The __________ decodes an instruction and generates an electronic signal.

A) Arithmetic and Logic Unit
B) Main memory
C) BIOS
D) Control Unit
E) None of these
D
2
In C++, key words are written in all lowercase letters.
True
3
Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.
True
4
The preprocessor executes after the compiler.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
5
Pseudocode is a form of a program statement that will always evaluate to "False."
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
6
The CPU is the most important component in a computer because without it, the computer could not run software.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
7
A computer stores a program while it is running

A) in main memory
B) on a hard disk
C) on the computer monitor
D) in the CPU
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
8
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?

A) fetch
B) decode
C) execute
D) portability
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
9
Computer programs are also known as

A) hardware
B) firmware
C) software
D) Any of these
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
10
The term "bit" stands for binary digit.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
11
The two parts of the CPU are

A) the output device and the input device
B) the software and the hardware
C) the Control Unit and the Arithmetic and Logic Unit
D) the single-task device and the multi-task device
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
12
The CPU's control unit retrieves the next instruction in a sequence of program instructions from main memory in the __________ stage.

A) fetch
B) decode
C) execute
D) portability
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
13
What does the term hardware refer to?

A) The relative difficulty of writing computer programs
B) The physical components that make up a computer
C) The way a computer's storage space is organized
D) The logical flow of instructions
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
14
A(n) __________ is a set of instructions that the computer follows to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
15
A volatile type of memory that is used for temporary storage is

A) an address
B) the ALU
C) RAM
D) a disk drive
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
16
At the heart of a computer is its central processing unit. The CPU's job is:

A) To fetch instructions
B) To carry out the operations commanded by the instructions
C) To produce some outcome or resultant information
D) All of these
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
17
Machine language is an example of a high-level language.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
18
A CPU only understands machine language instructions.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
19
Programs are often referred to as hardware.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
20
In programming, the terms "line" and "statement" always mean the same thing.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
21
When a programmer saves to a file the statements he or she writes to create a program, these statements are

A) high level
B) source code
C) a preprocessor file
D) object code
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
22
The programmer usually enters source code into a computer with

A) a hierarchy chart
B) a text editor
C) a compiler
D) pseudocode
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following is not one of the major components of a computer system?

A) the preprocessor
B) the CPU
C) main memory
D) input/output devices
E) secondary storage
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
24
An Integrated Development Environment (IDE) typically consists of

A) a text editor
B) a compiler
C) a debugger
D) All of the above
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
25
A variable definition defines the name of a variable that will be used in a program, as well as:

A) the type of data it will be used to hold
B) the operators that will be used on it
C) the number of times it will be used in the program
D) the value it will hold
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
26
Words that have a special meaning and may be used only for their intended purpose are known as

A) operators
B) programmer defined words
C) key words
D) syntax
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
27
This is a set of rules that must be followed when constructing a program:

A) syntax
B) punctuation
C) key words
D) operators
E) identifiers
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
28
Programs are normally stored in __________ and loaded into main memory as needed.

A) the input device
B) the output device
C) secondary storage
D) the CPU
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
29
A set of well-defined steps for performing a task or solving a problem is known as a(n):

A) hierarchy chart
B) algorithm
C) instruction set
D) statement
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
30
In the process of translating a source file into an executable file, which of the following is the correct sequence?

A) Source code, preprocessor, modified source code, linker, object code, compiler, executable code
B) Preprocessor, source code, compiler, executable code, linker, modified source code, object code
C) Source code, compiler, modified source code, preprocessor, object code, linker, executable code.
D) Source code, preprocessor, modified source code, compiler, object code, linker, executable code.
E) Source code, linker, object code, compiler, modified source code, preprocessor, executable code.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
31
A computer monitor is a type of

A) input device
B) output device
C) storage device
D) software
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
32
A named storage location in the computer's memory that holds a piece of information is a(n):

A) variable
B) operator
C) key word
D) statement
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
33
This is a complete instruction that causes the computer to perform some action:

A) line
B) statement
C) variable
D) key word
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
34
________ are used to translate each source code instruction into the appropriate machine language instruction.

A) modules
B) runtime libraries
C) compilers
D) preprocessor directives
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following is not a common input device?

A) keyboard
B) mouse
C) digital camera
D) printer
E) All are common input devices
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
36
The purpose of a memory address is:

A) to identify the location of a byte in memory
B) to prevent multitasking
C) to obtain an algorithm
D) to improve the speed of processing
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
37
This is used in a program to mark the beginning or ending of a statement, or separate items in a list:

A) separators
B) punctuation
C) operators
D) key words
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
38
Three primary activities of a program are:

A) variable definitions, operators, lists of key words
B) lines, statements, punctuation
C) input, processing, output
D) integer, floating-point, character definitions
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
39
Characters or symbols that perform operations on one or more operands are:

A) separators
B) op codes
C) operators
D) key words
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following best describes an operator?

A) An operator is a rule that must be followed when constructing a program.
B) An operator allows you to perform operations on one or more pieces of data.
C) An operator marks the beginning or ending of a statement, or is used to separate items in a list.
D) An operator is a word that has a special meaning.
E) An operator is a symbolic name that refers to a variable.
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
41
Mistakes that cause a running program to produce incorrect results are called:

A) syntax errors
B) logic errors
C) compiler errors
D) linker errors
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
42
The programming process consists of several steps, which include:

A) key words, operator definitions, punctuation
B) design, creation, testing, debugging
C) input, processing, output
D) syntax, logic, error handling
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
43
The first step in writing a program is to

A) type the code
B) visualize the program running on a computer
C) visualize logical errors
D) clearly define what the program is to do
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
44
The two methods used by C++ to write computer programs are:

A) top-down programming and procedural programming
B) procedural programming and object-oriented programming
C) pseudocoding and object-oriented programming
D) flowcharting and procedural programming
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
45
The term that refers to the programmer reading the program from the beginning and stepping through each statement is

A) pseudocoding
B) software engineering
C) desk checking
D) spot checking
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
46
A model often used when creating a program that begins with the overall task and refines it into smaller subtasks is a(n)

A) flowchart
B) UML diagram
C) blueprint
D) hierarchy chart
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
47
Which step uncovers any syntax errors in your program?

A) editing
B) compiling
C) linking
D) executing
E) None of these
Unlock Deck
Unlock for access to all 47 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 47 flashcards in this deck.