Deck 1: Introduction to Computers and Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
Play
Full screen (f)
Deck 1: Introduction to Computers and Programming
1
Which of the following is an example of a secondary storage device?
A)a DVD
B)a USB flash drive
C)a hard disk drive
D)a CD
E)all of the above
A)a DVD
B)a USB flash drive
C)a hard disk drive
D)a CD
E)all of the above
E
2
Internally, the central processing unit (CPU)consists of two parts:
A)software and hardware.
B)the compiler and the linker.
C)single- task devices and multi- task devices.
D)input devices and output devices.
E)the arithmetic and logic unit (ALU)and the control unit.
A)software and hardware.
B)the compiler and the linker.
C)single- task devices and multi- task devices.
D)input devices and output devices.
E)the arithmetic and logic unit (ALU)and the control unit.
E
3
Three primary activities of a typical program are
A)creating variables, operators, and keywords.
B)reading, writing, and arithmetic.
C)executing lines, statements, and keywords.
D)compiling, linking, and debugging.
E)input, processing, and output.
A)creating variables, operators, and keywords.
B)reading, writing, and arithmetic.
C)executing lines, statements, and keywords.
D)compiling, linking, and debugging.
E)input, processing, and output.
E
4
A(n)is a set of instructions that tells the computer how to solve a problem.
A)variable
B)program
C)operator
D)compiler
E)linker
A)variable
B)program
C)operator
D)compiler
E)linker
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
The term hardware refers to
A)the fixed order of a program's instructions.
B)the way a computer's storage space is organized.
C)the physical components that make up a computer.
D)the difficulty of programming.
E)none of the above.
A)the fixed order of a program's instructions.
B)the way a computer's storage space is organized.
C)the physical components that make up a computer.
D)the difficulty of programming.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
A variable definition always specifies the name of a variable and tells
A)what its starting value is.
B)what type of data it can hold.
C)the part of the code where it will be used.
D)how many times it will be used in the program.
E)all of the above.
A)what its starting value is.
B)what type of data it can hold.
C)the part of the code where it will be used.
D)how many times it will be used in the program.
E)all of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
Creating a program requires many steps. Three of these are
A)input, processing, and output.
B)keywords, operators, and punctuation.
C)syntax, logic, and error handling.
D)program design, writing source code, and testing.
E)none of the above.
A)input, processing, and output.
B)keywords, operators, and punctuation.
C)syntax, logic, and error handling.
D)program design, writing source code, and testing.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
The programmer usually enters source code into a computer using
A)a debugger.
B)a preprocessor.
C)a compiler.
D)a linker.
E)none of the above.
A)a debugger.
B)a preprocessor.
C)a compiler.
D)a linker.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
A storage location in the computer's memory that can hold a piece of data is called
A)a storage box.
B)a number.
C)a data cell.
D)a variable.
E)RAM.
A)a storage box.
B)a number.
C)a data cell.
D)a variable.
E)RAM.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
An integrated development environment (IDE)normally includes
A)a compiler.
B)a debugger.
C)a text editor.
D)all of the above.
E)none of the above.
A)a compiler.
B)a debugger.
C)a text editor.
D)all of the above.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
The coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components.
A)instruction manager
B)traffic controller
C)operating system
D)control unit
E)arithmetic and logic unit (ALU)
A)instruction manager
B)traffic controller
C)operating system
D)control unit
E)arithmetic and logic unit (ALU)
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
In the C++ statement pay = rate * hours;
the *symbol is an example of
A)syntax.
B)an operator.
C)an operand.
D)a variable separator.
E)none of the above.
the *symbol is an example of
A)syntax.
B)an operator.
C)an operand.
D)a variable separator.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Mistakes that allow a program to run, but cause it to produce erroneous results are called
A)syntax errors.
B)compiler errors.
C)linker errors.
D)logic errors.
E)none of the above.
A)syntax errors.
B)compiler errors.
C)linker errors.
D)logic errors.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
The purpose of a memory address is
A)to locate a program.
B)to prevent multitasking.
C)to identify the location of a memory cell.
D)to allow multitasking.
E)none of the above.
A)to locate a program.
B)to prevent multitasking.
C)to identify the location of a memory cell.
D)to allow multitasking.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
is used in a C++ program to mark the end of a statement, or to separate items in a list.
A)A keyword
B)Punctuation
C)An operator
D)A blank space
E)A separator
A)A keyword
B)Punctuation
C)An operator
D)A blank space
E)A separator
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
The programs that control and manage the basic operations of a computer are generally referred to as
A)system software.
B)system hardware programs.
C)computer application programs.
D)control programs.
E)utility programs.
A)system software.
B)system hardware programs.
C)computer application programs.
D)control programs.
E)utility programs.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
The statements written by a programmer are called
A)language elements.
B)syntax.
C)source code.
D)object code.
E)none of the above.
A)language elements.
B)syntax.
C)source code.
D)object code.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
C++ is an example of a programming language.
A)high- level
B)mid- level
C)non- structured
D)low- level
E)binary
A)high- level
B)mid- level
C)non- structured
D)low- level
E)binary
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
At the heart of a computer is its central processing unit. The CPU's job is to
A)carry out the operations commanded by the instructions.
B)fetch instructions.
C)produce some result.
D)do all of the above.
E)do none of the above.
A)carry out the operations commanded by the instructions.
B)fetch 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
20
A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called
A)a high- level programming language.
B)a software utility package (SUP).
C)an operating system.
D)a low- level programming language.
E)none of the above.
A)a high- level programming language.
B)a software utility package (SUP).
C)an operating system.
D)a low- level programming language.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
Even when there is no power to the computer, data can be held in
A)RAM.
B)a computer program.
C)variables.
D)a secondary storage device.
E)any of the above.
A)RAM.
B)a computer program.
C)variables.
D)a secondary storage device.
E)any of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
A set of well- defined steps for performing a task or solving a problem is known as
A)a flowchart.
B)an algorithm.
C)a hierarchy chart.
D)a solution engine.
E)software engineering.
A)a flowchart.
B)an algorithm.
C)a hierarchy chart.
D)a solution engine.
E)software engineering.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
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
24
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
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
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
27
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
28
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
29
The computer's main memory is commonly known as
A)read only memory (ROM).
B)random- access memory (RAM).
C)secondary storage.
D)direct- access memory (DAM).
E)none of the above.
A)read only memory (ROM).
B)random- access memory (RAM).
C)secondary storage.
D)direct- access memory (DAM).
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
Words with a special meaning that may be used only for their intended purpose are known as
A)programmer- defined identifiers.
B)single purpose words..
C)syntax words.
D)keywords.
E)none of the above.
A)programmer- defined identifiers.
B)single purpose words..
C)syntax words.
D)keywords.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
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
32
IDE stands for
A)initial development error.
B)internal direct execution.
C)integrated development environment.
D)internal data engine.
E)interactive data entry.
A)initial development error.
B)internal direct execution.
C)integrated development environment.
D)internal data engine.
E)interactive data entry.
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
Memory locations that can hold data are called
A)operators.
B)operands.
C)syntax.
D)variables.
E)none of the above.
A)operators.
B)operands.
C)syntax.
D)variables.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
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
36
A _ is a complete instruction that causes the computer to perform some action.
A)statement
B)statement number
C)programming construct
D)line
E)line number
A)statement
B)statement number
C)programming construct
D)line
E)line number
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
is an example of volatile memory, used for temporary storage while a program is running.
A)RAM
B)A flash drive
C)A hard disk
D)The ALU
E)The CPU
A)RAM
B)A flash drive
C)A hard disk
D)The ALU
E)The CPU
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
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.
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
39
The CPU includes
A)the I/O unit and the control unit.
B)the arithmetic and logic unit (ALU)and the control unit.
C)the ALU and the main memory unit.
D)the ALU and the I/O unit.
E)all of the above.
A)the I/O unit and the control unit.
B)the arithmetic and logic unit (ALU)and the control unit.
C)the ALU and the main memory unit.
D)the ALU and the I/O unit.
E)all of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
Characters or symbols that perform operations on one or more operands are
A)op codes.
B)syntax.
C)program ops.
D)operators.
E)none of the above.
A)op codes.
B)syntax.
C)program ops.
D)operators.
E)none of the above.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck