Deck 1: An Overview of Computers and Logic
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
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/50
Play
Full screen (f)
Deck 1: An Overview of Computers and Logic
1
Computer programmers often refer to memory addresses using hexadecimal notation.
True
2
Variable names may not begin with a digit,although usually they may contain digits.
True
3
A magic number is a named constant whose meaning is not immediately apparent.
False
4
The language translation software that converts a programmer's statements to binary form is called a ____.
A) processor
B) compiler
C) translator
D) central processing unit
A) processor
B) compiler
C) translator
D) central processing unit
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
To use a computer program,you must first load it into the computer's ____.
A) memory
B) monitor
C) disk
D) software
A) memory
B) monitor
C) disk
D) software
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
No matter which programming language a computer programmer uses,the language has rules governing its word usage and punctuation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
____ are instruction sets written by programmers.
A) Tests
B) Outputs
C) Programs
D) Inputs
A) Tests
B) Outputs
C) Programs
D) Inputs
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
A(n)____ is the sequence of steps necessary to solve any problem.
A) algorithm
B) pseudocode list
C) rhythm
D) problem statement
A) algorithm
B) pseudocode list
C) rhythm
D) problem statement
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
____ are the two major components of any computer system.
A) Input and output
B) Monitors and printers
C) Keyboards and mice
D) Hardware and software
A) Input and output
B) Monitors and printers
C) Keyboards and mice
D) Hardware and software
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
External storage is needed to run a program but it is volatile.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
When you declare variables,you have the option of assigning initial values to them.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Each programming language uses a piece of software to translate programming language statements into ____.
A) logic
B) syntax
C) object code
D) semantic code
A) logic
B) syntax
C) object code
D) semantic code
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
The ____ of a language are the rules that govern word usage and punctuation.
A) semantics
B) structure
C) syntax
D) logic
A) semantics
B) structure
C) syntax
D) logic
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
In arithmetic statements,the rules of precedence can be overridden using parentheses.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
A program that is free of syntax errors will produce the correct results.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The programmer's job can be broken down into five development steps.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
____ comprises the programs you use to manage your computer,including operating systems such as Windows,Linux,or UNIX.
A) System software
B) Hardware
C) Application software
D) Processing software
A) System software
B) Hardware
C) Application software
D) Processing software
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
Word-processing programs,spreadsheets,payroll and inventory programs,and even games are considered to be ____.
A) application software
B) system software
C) low-level programming languages
D) high-level programming languages
A) application software
B) system software
C) low-level programming languages
D) high-level programming languages
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
____ is the process of walking through a program's logic on paper before you actually write the program.
A) Bench-checking
B) Bench-testing
C) Desk-checking
D) Desk-testing
A) Bench-checking
B) Bench-testing
C) Desk-checking
D) Desk-testing
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
It is more common for uninitialized variables to have an a valid default value assigned to them,than it is for them to contain an unknown,or garbage value.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
You must always ____ a variable before you can use it for the first time in a program.
A) declare
B) reference
C) instantiate
D) announce
A) declare
B) reference
C) instantiate
D) announce
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
A ____ variable can hold letters of the alphabet and other special characters such as punctuation marks.
A) character
B) numeric
C) string
D) alphabetic
A) character
B) numeric
C) string
D) alphabetic
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The ____ dictate the order in which operations in the same statement are carried out.
A) rules of execution
B) rules of order
C) rules of operation
D) rules of precedence
A) rules of execution
B) rules of order
C) rules of operation
D) rules of precedence
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
You represent a decision in a flowchart by drawing a decision symbol,which is shaped like a ____.
A) diamond
B) parallelogram
C) rectangle
D) triangle
A) diamond
B) parallelogram
C) rectangle
D) triangle
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
The entire set of actions an organization must take to switch over to using a new program or set of programs is called ____.
A) turnover
B) renovation
C) translation
D) conversion
A) turnover
B) renovation
C) translation
D) conversion
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
____ is an English-like representation of the logical steps it takes to solve a problem.
A) Algorithm
B) Pseudocode
C) Code
D) Syntax
A) Algorithm
B) Pseudocode
C) Code
D) Syntax
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
An important feature of modern programming is the ability to build programs from smaller segments.This is known as ____.
A) monolithic
B) structured
C) independence
D) modularity
A) monolithic
B) structured
C) independence
D) modularity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
___ is the process of updating programs after the programs are put into production.
A) Design
B) Implementation
C) Maintenance
D) Desk-checking
A) Design
B) Implementation
C) Maintenance
D) Desk-checking
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Programming languages can recognize the end of data in a file automatically,through a(n)____ code that is stored at the end of the data.
A) diamond
B) exit
C) eof
D) end
A) diamond
B) exit
C) eof
D) end
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
A(n)____ is a pictorial representation of logical steps it takes to solve a problem.
A) flowchart
B) algorithm
C) source program
D) diagram
A) flowchart
B) algorithm
C) source program
D) diagram
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
____ programming focuses on breaking down programming processes into manageable subtasks.
A) Functional
B) Procedural
C) Object-oriented
D) Structured
A) Functional
B) Procedural
C) Object-oriented
D) Structured
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
A(n)____ value is a predetermined value that means "Stop the program!"
A) flag
B) sentinel
C) indicator
D) counter
A) flag
B) sentinel
C) indicator
D) counter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
In many modern programming languages,the equal sign is the _______.
A) sentinel value
B) assignment operator
C) magic number
D) variable
A) sentinel value
B) assignment operator
C) magic number
D) variable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
A(n)____ loop is a repeating flow of logic that never ends.
A) definite
B) finite
C) circling
D) infinite
A) definite
B) finite
C) circling
D) infinite
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
A variable's ____ describes the kind of values the variable can hold,how much memory the value occupies,and the types of operations that can be performed with the data stored there.
A) size
B) name
C) data type
D) value
A) size
B) name
C) data type
D) value
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
____ programming focuses on objects,or "things," and describes their attributes and behaviors.
A) Functional
B) Procedural
C) Object-oriented
D) Structured
A) Functional
B) Procedural
C) Object-oriented
D) Structured
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A ____ variable can have mathematical operations performed on it.
A) character
B) numeric
C) pointer
D) string
A) character
B) numeric
C) pointer
D) string
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
____ are named memory locations,whose contents can vary over time.
A) Named constants
B) Constants
C) Literals
D) Variables
A) Named constants
B) Constants
C) Literals
D) Variables
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
In a flowchart,you use a ____ to represent a processing symbol.
A) diamond
B) parallelogram
C) rectangle
D) triangle
A) diamond
B) parallelogram
C) rectangle
D) triangle
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
____ a program is when a programmer can execute the program with some sample data to see whether the results are logically correct.
A) Planning
B) Coding
C) Maintaining
D) Testing
A) Planning
B) Coding
C) Maintaining
D) Testing
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
When Jerry plans the solution to this programming problem,he will use one of two tools to help him.These tools are: ____.
A) algorithms and flowcharts
B) pseudocode and algorithms
C) code and algorithms
D) pseudocode and flowcharts
A) algorithms and flowcharts
B) pseudocode and algorithms
C) code and algorithms
D) pseudocode and flowcharts
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Jerry needs to know more about the report.He asks Anna questions about what the report should look like and what other information should be included on the report.What part of the program development cycle is this?
A) Understanding the problem
B) Planning the logic
C) Coding the program
D) Interviewing about the problem
A) Understanding the problem
B) Planning the logic
C) Coding the program
D) Interviewing about the problem
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
After talking with Anna,Jerry has all the information he needs to move to the next step in the program development cycle.What is the next step?
A) Understanding the problem
B) Planning the logic
C) Coding the program
D) Installing the program
A) Understanding the problem
B) Planning the logic
C) Coding the program
D) Installing the program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What are the three major operations that computer hardware and software accomplish? Provide a brief explanation of each operation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Discuss rules for naming variables.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
Do programmers usually create both pseudocode and a flowchart for the same problem? Why or why not?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
The program is now in production.The Billing Department manager,Anna,asks Jerry to change the report to show only customers who owe more than $500 and who are more than 30 days overdue on their payments.What part of the program development cycle is this?
A) Planning the logic
B) Coding the program
C) Testing the program
D) Maintaining the program
A) Planning the logic
B) Coding the program
C) Testing the program
D) Maintaining the program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
What are the arithmetic operators?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
After the program has been coded,compiled and is free of syntax errors,Jerry must now ____.
A) translate the code
B) test the program
C) put the program into production
D) maintain the program
A) translate the code
B) test the program
C) put the program into production
D) maintain the program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What are the rules of precedence?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck