|
A free membership is required to access uploaded content. Login or Register.
Tools for Structured Design.docx
|
Uploaded: 6 years ago
Category: Computer Science
Type: Other
Rating:
N/A
|
Filename: Tools for Structured Design.docx
(18.3 kB)
Page Count: 3
Credit Cost: 1
Views: 89
Last Download: N/A
|
Transcript
Tools for Structured Design
1. A step-by-step procedure to solve a problem is a(n)
a) program
b) algorithm
c) flowchart
d) structured walkthrough
Answer: b
2. 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
Answer: b
3. A single piece of data about a single entity is a
a) file
b) record
c) field
d) character
Answer: c
4. 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
Answer: b
5. 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
Answer: c
6. 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
Answer: a
7. Which program flowcharting symbol can be used to represent the statement WRITE SUM?
a) process
b) general input/output
c) terminal interrupt
d) sequence
Answer: b
8. A pictorial description of an algorithm is a
a) system flowchart
b) program flowchart
c) memory diagram
d) simulation
Answer: b
9. A data item whose value may change during processing is a(n)
a) defined value
b) constant
c) input
d) variable
Answer: d
10. Input can be indicated on a program flowchart by all of the following words except
a) READ
b) WRITE
c) GET
d) ENTER
Answer: b
11. Which of the following terms is an example of a constant?
a) AVERAGE
b) 123AVERAGE
c) AVERAGE123
d) 123
Answer: d
12. 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
Answer: c
13. Which of the following assignment statements is invalid?
a) SALES = 1000
b) 1000 = SALES
c) SALES = SALES + 1000
d) SALES = SALES1 + SALES2
Answer: b
14. What is the value of the following expression: (9+6*(8-13))/3?
a) 25
b) -25
c) 7
d) -7
Answer: d
15. What is the value of the following expression: 2*6+15/3/1+4?
a) 21
b) 13
c) 14
d) 18
Answer: a
16. An algorithm can produce an answer in an infinite number of steps.
Answer: False
17. The ellipsis symbol is used to indicate the entry and exit points of a program flowchart.
Answer: True
18. A system flowchart is also called a logic diagram.
Answer: False
19. A program can be described as data independent if it contains no variable names.
Answer: False
20. The use of constants helps to ensure that a program is data independent.
Answer: False
21. An algorithm must use operations from only a given set of basic operations.
Answer: True
22. (90+80+95)/3=AVERAGE is a valid assignment statement, assuming AVERAGE has been defined and assigned a value
Answer: False
23. NEWSALES=NEWSALES+OLDSALES is a valid assignment statement, assuming NEWSALES and OLDSALES have been defined and assigned values
Answer: True
24. READ 1000, 2000, 3000 is a valid input statement.
Answer: False
25. A structured walkthrough is a formal design review.
Answer: True
26. The general input/output symbol is used to indicate a specific process in an algorithm.
Answer: False
27. The SIMPLE SEQUENCE control structure is the simplest control structure but it is rarely used.
Answer: False
28. WRITE NAME, AVERAGE is a valid output statement, assuming NAME and AVERAGE have been defined and assigned values.
Answer: True
29. A record is a collection of facts about a single entity.
Answer: True
30. In an assignment statement, the value of any variable to the left of the = should not be changed during processing.
Answer: False
|
|
Comments (0)
|
Post your homework questions and get free online help from our incredible volunteers
|