Deck 1: Introduction to Computers and Programming

Full screen (f)
exit full mode
Question
________ is used in a C++ program to mark the end of a statement, or to separate items in a list.

A) A separator
B) Punctuation
C) An operator
D) A keyword
E) A blank space
Use Space or
up arrow
down arrow
to flip the card.
Question
A(n) ________ is a set of instructions that tells the computer how to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) variable
Question
An integrated development environment (IDE) normally includes

A) a text editor.
B) a compiler.
C) a debugger.
D) all of the above.
E) none of the above.
Question
Memory locations that can hold data are called

A) operators.
B) variables.
C) syntax.
D) operands.
E) none of the above.
Question
A set of well-defined steps for performing a task or solving a problem is known as

A) a hierarchy chart.
B) a flowchart.
C) a solution engine.
D) an algorithm.
E) software engineering.
Question
Before a computer can execute a program written in a high level language, such as C++, it must be translated into object code.
Question
The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components.

A) arithmetic and logic unit (ALU)
B) traffic controller
C) instruction manager
D) control unit
E) operating system
Question
The statements written by a programmer are called

A) syntax.
B) object code.
C) source code.
D) language elements.
E) none of the above.
Question
The purpose of the compiler is to convert object code into source code.
Question
The purpose of a memory address is

A) to identify the location of a memory cell.
B) to allow multitasking.
C) to prevent multitasking.
D) to locate a program.
E) none of the above.
Question
At the heart of a computer is its central processing unit (CPU). Its job is to

A) fetch instructions.
B) carry out the operations commanded by the instructions.
C) produce some result.
D) do all of the above.
E) do none of the above.
Question
C++ is an example of a ________ programming language.

A) low-level
B) mid-level
C) high-level
D) binary
E) non-structured
Question
Most of the lines in a program contain something meaningful; however, some of the lines may contain nothing at all.
Question
The CPU includes

A) the arithmetic and logic unit (ALU) and the control unit.
B) the ALU and the I/O unit.
C) the I/O unit and the control unit.
D) the ALU and the main memory unit.
E) all of the above.
Question
Once a value has been stored in a variable it cannot be changed.
Question
Creating a program requires many steps. Three of these are

A) input, processing, and output.
B) keywords, operators, and punctuation.
C) program design, writing source code, and testing.
D) syntax, logic, and error handling.
E) none of the above.
Question
Characters or symbols that perform operations on one or more operands are

A) syntax.
B) op codes.
C) operators.
D) program ops.
E) none of the above.
Question
List five elements that are common to all programming languages.
Question
The term hardware refers to

A) the difficulty of programming.
B) the physical components that make up a computer.
C) the way a computer's storage space is organized.
D) the fixed order of a program's instructions.
E) none of the above.
Question
The computer's main memory is commonly known as

A) direct-access memory (DAM).
B) random-access memory (RAM).
C) read only memory (ROM).
D) secondary storage.
E) none of the above.
Question
In the C++ statement pay = rate * hours;
The * symbol is an example of

A) an operator.
B) an operand.
C) a variable separator.
D) syntax.
E) none of the above.
Question
Words with a special meaning that may be used only for their intended purpose are known as

A) single purpose words..
B) programmer-defined identifiers.
C) keywords.
D) syntax words.
E) none of the above.
Question
Even when there is no power to the computer, data can be held in

A) a secondary storage device.
B) random accdss memory (RAM).
C) variables.
D) a computer program.
E) any of the above.
Question
Executable code is computer code that contains no errors.
Question
If a new value is stored in a variable, it replaces whatever value was previously there.
Question
A ________ is a complete instruction that causes the computer to perform some action.

A) line
B) line number
C) statement
D) statement number
E) programming construct
Question
________ is an example of volatile memory, used for temporary storage while a program is running.

A) A flash drive
B) The ALU
C) RAM
D) The CPU
E) A hard disk
Question
Mistakes that allow a program to run, but cause it to produce erroneous results are called

A) syntax errors.
B) logic errors.
C) compiler errors.
D) linker errors.
E) none of the above.
Question
Syntax involves rules that must be followed when writing a program.
Question
A variable definition always specifies the name of a variable and tells

A) what type of data it can hold.
B) how many times it will be used in the program.
C) the part of the code where it will be used.
D) what its starting value is.
E) all of the above.
Question
The programs that control and manage the basic operations of a computer are generally referred to as

A) control programs.
B) utility programs.
C) system hardware programs.
D) system software.
E) computer application programs.
Question
Which of the following is an example of a secondary storage device?

A) a hard disk drive
B) a USB flash drive
C) a CD
D) a DVD
E) all of the above
Question
Most modern computers can understand and execute pseudocode.
Question
The programmer usually enters source code into a computer using

A) a preprocessor.
B) a compiler.
C) a linker.
D) a debugger.
E) none of the above.
Question
IDE stands for internal data engine.
Question
High-level programming languages include

A) C++ and Java.
B) C++ and JavaScript.
C) C++ and Visual Basic.
D) all of the above.
E) A and B, but not C.
Question
Internally, the central processing unit (CPU) consists of two parts:

A) input devices and output devices.
B) software and hardware.
C) the arithmetic and logic unit (ALU) and the control unit.
D) single-task devices and multi-task devices.
E) the compiler and the linker.
Question
A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called

A) a low-level programming language.
B) a high-level programming language.
C) a software utility package (SUP).
D) an operating system.
E) none of the above.
Question
A storage location in the computer's memory that can hold a piece of data is called

A) a variable.
B) a number.
C) a data cell.
D) a storage box.
E) RAM.
Question
Three primary activities of a typical program are

A) creating variables, operators, and keywords.
B) executing lines, statements, and keywords.
C) reading, writing, and arithmetic.
D) input, processing, and output.
E) compiling, linking, and debugging.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Introduction to Computers and Programming
1
________ is used in a C++ program to mark the end of a statement, or to separate items in a list.

A) A separator
B) Punctuation
C) An operator
D) A keyword
E) A blank space
B
2
A(n) ________ is a set of instructions that tells the computer how to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) variable
C
3
An integrated development environment (IDE) normally includes

A) a text editor.
B) a compiler.
C) a debugger.
D) all of the above.
E) none of the above.
D
4
Memory locations that can hold data are called

A) operators.
B) variables.
C) syntax.
D) operands.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
A set of well-defined steps for performing a task or solving a problem is known as

A) a hierarchy chart.
B) a flowchart.
C) a solution engine.
D) an algorithm.
E) software engineering.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
Before a computer can execute a program written in a high level language, such as C++, it must be translated into object code.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components.

A) arithmetic and logic unit (ALU)
B) traffic controller
C) instruction manager
D) control unit
E) operating system
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
The statements written by a programmer are called

A) syntax.
B) object code.
C) source code.
D) language elements.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
The purpose of the compiler is to convert object code into source code.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
The purpose of a memory address is

A) to identify the location of a memory cell.
B) to allow multitasking.
C) to prevent multitasking.
D) to locate a program.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
At the heart of a computer is its central processing unit (CPU). Its job is to

A) fetch instructions.
B) carry out the operations commanded by the instructions.
C) produce some result.
D) do all of the above.
E) do none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
C++ is an example of a ________ programming language.

A) low-level
B) mid-level
C) high-level
D) binary
E) non-structured
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Most of the lines in a program contain something meaningful; however, some of the lines may contain nothing at all.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
The CPU includes

A) the arithmetic and logic unit (ALU) and the control unit.
B) the ALU and the I/O unit.
C) the I/O unit and the control unit.
D) the ALU and the main memory unit.
E) all of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
Once a value has been stored in a variable it cannot be changed.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
Creating a program requires many steps. Three of these are

A) input, processing, and output.
B) keywords, operators, and punctuation.
C) program design, writing source code, and testing.
D) syntax, logic, and error handling.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
Characters or symbols that perform operations on one or more operands are

A) syntax.
B) op codes.
C) operators.
D) program ops.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
List five elements that are common to all programming languages.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
The term hardware refers to

A) the difficulty of programming.
B) the physical components that make up a computer.
C) the way a computer's storage space is organized.
D) the fixed order of a program's instructions.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
The computer's main memory is commonly known as

A) direct-access memory (DAM).
B) random-access memory (RAM).
C) read only memory (ROM).
D) secondary storage.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
In the C++ statement pay = rate * hours;
The * symbol is an example of

A) an operator.
B) an operand.
C) a variable separator.
D) syntax.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
Words with a special meaning that may be used only for their intended purpose are known as

A) single purpose words..
B) programmer-defined identifiers.
C) keywords.
D) syntax words.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
Even when there is no power to the computer, data can be held in

A) a secondary storage device.
B) random accdss memory (RAM).
C) variables.
D) a computer program.
E) any of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
Executable code is computer code that contains no errors.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
If a new value is stored in a variable, it replaces whatever value was previously there.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
A ________ is a complete instruction that causes the computer to perform some action.

A) line
B) line number
C) statement
D) statement number
E) programming construct
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
________ is an example of volatile memory, used for temporary storage while a program is running.

A) A flash drive
B) The ALU
C) RAM
D) The CPU
E) A hard disk
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
Mistakes that allow a program to run, but cause it to produce erroneous results are called

A) syntax errors.
B) logic errors.
C) compiler errors.
D) linker errors.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
Syntax involves rules that must be followed when writing a program.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
A variable definition always specifies the name of a variable and tells

A) what type of data it can hold.
B) how many times it will be used in the program.
C) the part of the code where it will be used.
D) what its starting value is.
E) all of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
The programs that control and manage the basic operations of a computer are generally referred to as

A) control programs.
B) utility programs.
C) system hardware programs.
D) system software.
E) computer application programs.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
Which of the following is an example of a secondary storage device?

A) a hard disk drive
B) a USB flash drive
C) a CD
D) a DVD
E) all of the above
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
Most modern computers can understand and execute pseudocode.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
The programmer usually enters source code into a computer using

A) a preprocessor.
B) a compiler.
C) a linker.
D) a debugger.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
IDE stands for internal data engine.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
High-level programming languages include

A) C++ and Java.
B) C++ and JavaScript.
C) C++ and Visual Basic.
D) all of the above.
E) A and B, but not C.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
Internally, the central processing unit (CPU) consists of two parts:

A) input devices and output devices.
B) software and hardware.
C) the arithmetic and logic unit (ALU) and the control unit.
D) single-task devices and multi-task devices.
E) the compiler and the linker.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called

A) a low-level programming language.
B) a high-level programming language.
C) a software utility package (SUP).
D) an operating system.
E) none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
A storage location in the computer's memory that can hold a piece of data is called

A) a variable.
B) a number.
C) a data cell.
D) a storage box.
E) RAM.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
Three primary activities of a typical program are

A) creating variables, operators, and keywords.
B) executing lines, statements, and keywords.
C) reading, writing, and arithmetic.
D) input, processing, and output.
E) compiling, linking, and debugging.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.