Chapter 13 Questions

 

True/False

Indicate whether the sentence or statement is true or false.

 

1.  A machine-dependent language can run on many different types of computers and operating systems.

 

2.  With a high-level language, each language instruction typically equates to multiple machine language instructions.

 

3.  Although COBOL programs always are short, their obscure statements make the code difficult to read, write, and maintain.

 

4.  Nonprocedural languages are more difficult to use than procedural languages.

 

5.  The program development cycle guides information technology (IT) professionals through the development of an information system.

 

6.  The program development cycle begins at the start of the planning phase in the system development cycle.

 

7.  Two common types of selection control structures are the do-while and do-until.

 

8.  The action(s) in a do-until control structure always will execute at least once.

 

9.  A logic error occurs when the code violates the syntax, or grammar, of the programming language.

 

10. Each programming language has a particular syntax.

 

11. A syntax error is a flaw in the design of a program that causes inaccurate results.

 

12.  Programmers usually discover syntax errors the first time they attempt to compile or interpret the program code on a computer.

 

 13. As a general rule, the less time and effort programmers spend analyzing and designing a solution algorithm, the less time spent debugging the program.

 

Multiple Choice

Identify the letter of the choice that best completes the statement or answers the question.

 

14. The machine language version that results from compiling a 3GL is called the _____.

a.

dead code or dead program

c.

live code or live program

b.

source code or source program

d.

object code or object program

 

 

15. An advantage of an interpreter is that _____.

a.

when it finds errors, it displays feedback immediately

b.

interpreted programs run faster than compiled programs

c.

an interpreter produces an object program

d.

all of the above

 

 

16. Naval officer _____, a pioneer in computer programming, was a prime developer of COBOL.

a.

Grace Hopper

c.

Dennis Ritchie

b.

John Kemeny

d.

Bjarne Sroustrup

 

 

17. In an application generator, a _____ allows a developer to design a report on the screen, retrieve data into the report design, and then display or print the report.

a.

counter

c.

form

b.

report writer

d.

menu generator

 

 

18. Examples of HTML _____ are <B> to bold text, <P> to indicate a new paragraph, and <HR> to display a horizontal rule across the page.

a.

controls

c.

events

b.

bugs

d.

tags

 

 

19. A(n) _____ is a compiled program that runs on the client.

a.

script

c.

applet

b.

servlet

d.

image map

 

 

20. The _____ is the communications standard that defines how a Web server communicates with outside sources.

a.

RPG (report program generator)

c.

SQL (structured query language)

b.

VPE (visual programming environment)

d.

CGI (common gateway interface)

 

 

21. In sequence, the program development cycle consists of six steps: _____.

a.

validate design, test solution, design solution, implement design, analyze requirements, and document solution

b.

implement design, document solution, test solution, validate design, design solution, and analyze requirements

c.

analyze requirements, design solution, validate design, implement design, test solution, and document solution

d.

test solution, analyze requirements, document solution, implement design, validate design, and design solution

 

 

22. A(n) _____, also called program logic, is a graphical or written description of the step-by-step procedures to solve the problem.

a.

object model

c.

solution algorithm

b.

style sheet

d.

source code

 

 

23. A _____ shows one or more actions following each other in order.

a.

sequence control structure

c.

repetition control structure

b.

selection control structure

d.

compliance control structure

 

 

24. Syntax errors will be caused by all of the following except _____.

a.

misspelling a command

c.

typing command words out of order

b.

leaving out required punctuation

d.

using the wrong control structure

 

 

25. One purpose of using test data is to try to cause a _____, which is an error that occurs while a program is running.

a.

run-time error

c.

one-time error

b.

syntax error

d.

logic error