Deck 2: Simple Sequence Control Structure
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/30
Play
Full screen (f)
Deck 2: Simple Sequence Control Structure
1
A single piece of data about a single entity is a
A)file
B)record
C)field
D)character
A)file
B)record
C)field
D)character
C
2
A pictorial description of an algorithm is a
A)system flowchart
B)program flowchart
C)memory diagram
D)simulation
A)system flowchart
B)program flowchart
C)memory diagram
D)simulation
B
3
Which of the following assignment statements is invalid?
A)SALES = 1000
B)1000 = SALES
C)SALES = SALES + 1000
D)SALES = SALES1 + SALES2
A)SALES = 1000
B)1000 = SALES
C)SALES = SALES + 1000
D)SALES = SALES1 + SALES2
B
4
Which program flowcharting symbol can be used to indicate the beginning and the end of an algorithm?
A)process
B)general input/output
C)terminal interrupt
D)sequence
A)process
B)general input/output
C)terminal interrupt
D)sequence
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
What is the value of the following expression: 2*6+15/3/1+4?
A)21
B)13
C)14
D)18
A)21
B)13
C)14
D)18
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
A collection of related data or facts about a single entity in a file is called a
A)data hierarchy
B)record
C)field
D)character
A)data hierarchy
B)record
C)field
D)character
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
What is the value of the following expression: (9+6*(8-13))/3?
A)25
B)-25
C)7
D)-7
A)25
B)-25
C)7
D)-7
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
The use of constants helps to ensure that a program is data independent.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
Which program flowcharting symbol can be used to represent the statement WRITE SUM?
A)process
B)general input/output
C)terminal interrupt
D)sequence
A)process
B)general input/output
C)terminal interrupt
D)sequence
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
Input can be indicated on a program flowchart by all of the following words except
A)READ
B)WRITE
C)GET
D)ENTER
A)READ
B)WRITE
C)GET
D)ENTER
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
A program can be described as data independent if it contains no variable names.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
Which program flowcharting symbol can be used to represent the statement SUM=GR1+GR2+GR3?
A)process
B)general input/output
C)terminal interrupt
D)sequence
A)process
B)general input/output
C)terminal interrupt
D)sequence
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
A step-by-step procedure to solve a problem is a(n)
A)program
B)algorithm
C)flowchart
D)structured walkthrough
A)program
B)algorithm
C)flowchart
D)structured walkthrough
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following graphics is created to show general information about an application?
A)program flowchart
B)system flowchart
C)control structure
D)memory diagram
A)program flowchart
B)system flowchart
C)control structure
D)memory diagram
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
A data item whose value may change during processing is a(n)
A)defined value
B)constant
C)input
D)variable
A)defined value
B)constant
C)input
D)variable
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
A system flowchart is also called a logic diagram.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following terms is an example of a constant?
A)AVERAGE
B)123AVERAGE
C)AVERAGE123
D)123
A)AVERAGE
B)123AVERAGE
C)AVERAGE123
D)123
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
An algorithm can produce an answer in an infinite number of steps.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
The ellipsis symbol is used to indicate the entry and exit points of a program flowchart.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following choices is not one of the three basic elements of an information processing system?
A)input
B)processing
C)storage
D)output
A)input
B)processing
C)storage
D)output
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
(90+80+95)/3=AVERAGE is a valid assignment statement,assuming AVERAGE has been defined and assigned a value
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
WRITE NAME,AVERAGE is a valid output statement,assuming NAME and AVERAGE have been defined and assigned values.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
A structured walkthrough is a formal design review.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
In an assignment statement,the value of any variable to the left of the = should not be changed during processing.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
READ 1000,2000,3000 is a valid input statement.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
An algorithm must use operations from only a given set of basic operations.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
The general input/output symbol is used to indicate a specific process in an algorithm.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
A record is a collection of facts about a single entity.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
NEWSALES=NEWSALES+OLDSALES is a valid assignment statement,assuming NEWSALES and OLDSALES have been defined and assigned values
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
The SIMPLE SEQUENCE control structure is the simplest control structure but it is rarely used.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck