Ch 1-3 Review

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/60

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

61 Terms

1
New cards

Computer programs also known as ___. (1.1)

Software

2
New cards

The major operations performed by all sizes of computer include ___. (1.1)

input, processing, and output

3
New cards

Visual Basic, C++, and Java are all examples of computer ___. (1.1, 1.2, 1.3)

programming languages

4
New cards

A programming language’s rules are its ___. (1.1)

syntax

5
New cards

The most important task of compiler or an interpreter is to ___. (1.1)

translate programming language statements into machine language

6
New cards

Which of the following is temporary, internal storage? (1.1)

computer memory

7
New cards

Which of the following pairs of steps in the programming process is in the correct order? (1.3)

code the program, translate it into machine language

8
New cards

What is the program development cycle? (1.3)

knowt flashcard image
9
New cards

A programmer’s most important task before planning the logic of a program is to ___. (1.3)

Understand the problem

10
New cards

The two most commonly used tools for planning a program’s logic are ___. (1.3)

flowcharts and pseudocode

11
New cards

Writing a program in a language such as C++ or Java is known as ___ the program. (1.3)

coding

12
New cards

An English-like programming language such as Java or Visual Basic is a ___ programming language. (1.3)

high-level

13
New cards

Which of the following is an example of a syntax error? (1.3)

misspelling a programming language word

14
New cards

Which of the following is an example of a logical error? (1.3)

dividing by 3 when you meant to divide by 30

15
New cards
<p></p><p>The parallelogram is the flowchart symbol representing the ___. (1.4)</p>

The parallelogram is the flowchart symbol representing the ___. (1.4)

either input or output

16
New cards
<p>In a flowchart, a rectangle represents ___. (1.4)</p>

In a flowchart, a rectangle represents ___. (1.4)

processing

17
New cards

In flowchart, the decision symbol is a ___. (1.4)

diamond

18
New cards

The term of ‘eof’ represents ___. (1.5)

a generic sentinel value

19
New cards

When you use an IDE instead of a simple text editor to develop a program, ___. (1.6)

some help is provided

20
New cards

When you write a program that will run in a GUI environment as opposed to a command-line environment ___. (1.6)

the logic is very different

21
New cards

As compared to procedural programming, with object-oriented programming, ___. (1.7)

the programmer’s focus differs

22
New cards

What does a declaration always provide for a variable? (2.1)

A name, a data type, and a value.

23
New cards

A variable’s data type describes all the following except ___. (2.1)

the scope of the variable

24
New cards

The value stored in an uninitialized variable is ____. (2.1)

garbage

25
New cards

The value 3 is a ___. (2.1)

numeric constant

26
New cards

The assignment operator ___. (2.1)

is a binary operator.

27
New cards

Multiplication has a lower precedence than ___. (2.2)

parentheses

28
New cards

Which of the following is not a term used as a synonym for module? (2.3)

object

29
New cards

Modularization ___. (2.3)

facilitates reusability

30
New cards

What is the name for the process of paying attention to important properties while ignoring nonessential details? (2.3)

abstraction

31
New cards

Every module has all of the following except ___. (2.4)

local variables

32
New cards

Programmers say that one module can ___ another, meaning that the first module causes the second module to execute. (2.3)

call

33
New cards

The more that a module’s statements contribute to the same job, the greater the ___ of the module. (2.4)

function cohesion

34
New cards

In most modern programming languages, a variable or constant that is declared in a module is ____ in that module. (2.4)

global

35
New cards

Which of the following is not a typical housekeeping task? (2.4)

printing summaries

36
New cards

Which module in a typical program will execute the most times? (2.4)

the detail loop

37
New cards

A hierarchy chart tells you ___. (2.4)

which modules call other modules

38
New cards

What are nonexecuting statements that programmers place within code to explain program statements in English? (2.5)

comments

39
New cards

Program comments are ___. (2.5)

neither required in a program nor a form of external documentation.

40
New cards

Which of the following is valid advice for naming variables? (2.5)

To make names easier to read, separate long names by underscores or capitalization for each new word.

41
New cards

A message that asks a user for inputs is a(n) ___.

prompt

42
New cards

Snarled program logic is called ___ code. (3.1)

spaghetti

43
New cards

The three structures of structured programming are ___. (3.2)

sequence, selection, and loop

44
New cards

A sequence structure can contain ___. (3.2)

any number of tasks

45
New cards

Which of the following is not another term for a selection structure? (3.2)

loop structure

46
New cards

A ____ expression has one of two values, often expressed as true or false. (3.2)

Boolean

47
New cards

Placing a structure within another structure is called ___ structure.

nesting

48
New cards

Attaching structures end to end is called ___. (3.2)

stacking

49
New cards

When an action is required if condition is true, but no action is needed if it is false, you use a ___. (3.2)

single-alternative selection

50
New cards

To take action repeatedly as long as a condition remains true, you use a ___. (3.2)

loop

51
New cards

When you must perform one action when a condition is true and a different one when it is false, and then the program continues, you use a ___. (3.2)

dual-alternative selection

52
New cards

Which of the following attributes do all three basic structures share? (3.2)

They all have one entry and one exit point.

53
New cards

Which true of stacking structures? (3.2)

When you stack structures, you cannot nest them in the same programs.

54
New cards

When input data in a loop within a program, the input statement that precedes the loop ___. (3.3)

is called a priming input

55
New cards

A group of statements that executes as a unit is a ___. (3.2)

block

56
New cards

Placing a decision within a loop is ___. (3.2)

an acceptable structured programming technique

57
New cards

In a selection structure, the structure-controlling condition is ___. (3.2)

tested once at the beginning of the structure

58
New cards

When a loop executes, the structure-controlling condition is ___. (3.2)

tested either before or after the loop body executes

59
New cards

Which of the following is not a reason for enforcing structure rules in computer programs? (3.4)

Structured programs usually are shorter than unstructured ones.

60
New cards

Which of the following is not a benefit of modularizing programs. (3.4)

If you use modules, you can ignore the rules of structures.

61
New cards

Which of the following is true of structured logic? (3.6)

Any task can be described using some combination of the three structures: sequence, selection, and loop.