Program solving and program concepts 9ed

Program solving and program concepts 9ed

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Call-by-value parameters:

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

3

All-time users

3

Favorites

0

Last updated

5 years ago

Date created

Mar 14, 2020

Cards (60)

Section 1

(50 cards)

Call-by-value parameters:

Front

b and c.

Back

An annotated flowchart includes:

Front

a and c.

Back

The last step in problem solving is to evaluate the solution. This means

Front

To check if the set of step by step instructions developed in step 5, list instructions that enable you to solve the problem, solve the problem identified in step 1.

Back

Cohesion relates to:

Front

The functional independence of each module.

Back

Data can be made available to other modules through the use of:

Front

All of the above.

Back

A problem that requires a heuristic solution might be:

Front

Choosing stock on the stock market.

Back

In the expression 4 + 10, the operand(s)

Front

are the 4 and the 10.

Back

Step 4 is to select the best way to solve the problem. This means:

Front

All of the above.

Back

An example of data found in a file would be:

Front

A quantity

Back

Step 3 in problem solving is to identify alternative ways to solve the problem. This means:

Front

To identify as many solutions as possible to the problem.

Back

Computers can best deal with problems that require:

Front

Reasoning.

Back

External documentation:

Front

Provides communication to the user.

Back

Calculations may be found:

Front

Only in any process modules.

Back

The loop logic structure:

Front

Allows the computer to repeat instructions.

Back

Coupling allows:

Front

Data to be passes from one module to another module.

Back

In an algorithm:

Front

All of the above

Back

Mathematical operators include among others:

Front

MOD, *, ^

Back

In the following expression, what is the order of execution of the operators and the result, given A = 4, B = 5, E = 3, G = True, F = True? A * B + 7 > E ^ 3 OR NOT G AND F

Front

^, *, +, >, NOT, AND, OR : Result is True

Back

When using the problem solving tools, the first one to use is:

Front

PAC Chart.

Back

In the following equation under what conditions would PriorityUse be True? PriorityUse = (ValidCard AND TimeNoted) OR (Computer AND GuestCard)

Front

ValidCard is True, TimeNoted is True, Computer is True, GuestCard is False.

Back

A computer bug is:

Front

An error in a solution.

Back

The sequential logic structure:

Front

Processes instructions in order of listing.

Back

To create a set of instructions to make Otto walk in a figure other than a square, the following instruction(s) would need to be added to the instruction set:

Front

Any of the above

Back

The concatenation of "4" and "10" is:

Front

"410"

Back

Internal documentation:

Front

Provides communication and reminders to the programmer

Back

After you have identified alternative solutions

Front

You are ready to evaluate the solution(s).

Back

A variable:

Front

All of the above.

Back

When a flowchart does not fit on a page:

Front

Use off page connectors.

Back

In a flowchart the diamond indicates:

Front

A decision.

Back

The values of local variables:

Front

Are defined within the calling module....

Back

The set of step-by-step instructions written for the solution to a problem must:

Front

Be within the knowledge base of the problem.

Back

An ideal variable name for a client name is:

Front

Client_name

Back

When a module is processed:

Front

The computer jumps to the module, executes the instructions in the module, and then quits.

Back

A parallelogram in a flowchart represents:

Front

Input or Output.

Back

The resultant of A OR B

Front

Is always true except when A and B are both false.

Back

The Problem Analysis Chart:

Front

Has Four parts: the given data, the required results, the processing required, and the solution alternatives

Back

The decision logic structure:

Front

Allows the computer to make a choice of two paths to follow.

Back

In the equation: R = A + B * 2 - (C + 4) / A, the operands are:

Front

A, B, C

Back

An algorithm is:

Front

The set of step by step instructions to solve the problem.

Back

String data:

Front

Is group of characters.

Back

To identify the best alternative solutions you should:

Front

Use other people's ideas as well as your own.

Back

The algorithms:

Front

Is the set of step by step instructions divided into the specific parts, or modules.

Back

Evaluate the following equation for R, given A = 4, B = 5, C = 8 is: R = A + B * 2 - (C + 4) / A

Front

11

Back

Testing the solution:

Front

Provides a validation of the solution.

Back

The variable names in the formal and actual parameter listings:

Front

Must be the same

Back

The data dictionary is:

Front

A list of definitions and attributes of the variables used in the solution.

Back

If the operands are both numerical, and the operator is relational, the data type of the resultant is:

Front

Logical.

Back

A coupling diagram shows:

Front

How the data is passed from one module to another.

Back

The solution to a problem is

Front

All of the above.

Back

The IPO chart:

Front

All of the above.

Back

Section 2

(10 cards)

In the function LEFT(S,3), the parameter(s):

Front

Are S and 3.

Back

The data type of a parameter may be:

Front

all of the above.

Back

The case logic structure within the decision logic structure:

Front

Allows the computer to make a choice of two paths to follow

Back

To select the best solution, you should

Front

Identify and list the pros and cons of each alternative solution.

Back

When writing a set of instructions for the computer:

Front

All of the above.

Back

A set of step-by-step instructions is processed:

Front

In the order they are presented and processed.

Back

A problem that would require an algorithmic solution is:

Front

All of the above.

Back

Call-by-reference parameters pass values:

Front

By passing the memory location of the variable.

Back

Modules should:

Front

All of the above.

Back

The data type of Zip Codes:

Front

Must always be string data.

Back