Sie sind auf Seite 1von 9

Part 1 of 1 -

Question 1 of 20

100.0/ 100.0 Points


5.0/ 5.0 Points

The __________ structure involves repeating a sequence until a condition is met.


A. selection

B. conditional

C. loop

D. sequence

Question 2 of 20

5.0/ 5.0 Points

When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -1/x^n is calculated, which of the following
should be inserted in the process box in the flowchart shown below?

A. b)

B. c)

C. d)

D. a)

Question 3 of 20

5.0/ 5.0 Points

"Which of the following is the appropriate basic structure in a flowchart for working out the sum
from 1 to 10 using the sequence below?
Assign the initial value 0 to x

Assign the initial value 1 to i


End when i is greater that 10
If i is 10 or smaller, add i to x, and substitute that value for x
Add 1 to i, and substitute that value for i
Return to "
A. b) Selection structure

B. c) Conditional branch

C. d) Repetition structure

D. a) Sequence structure

Question 4 of 20

5.0/ 5.0 Points

The programming tool that uses linked symbols to show the sequence of steps needed to solve a
programming problem
A. grid table

B. flowchart

C. algorithm

D. pseudocode

Question 5 of 20

5.0/ 5.0 Points

Which structure is described by the following flowchart?

A. Post-test repetition (DO... WHILE)

B. Selection (IF)

C. Sequence

D. Pre-test repetition (WHILE)

Question 6 of 20

5.0/ 5.0 Points

The control structure used to perform a series of statements one after the other is called
A. random

B. sequential

C. selection

D. loop

Question 7 of 20

5.0/ 5.0 Points

What is an example of the information-receiving operation of a computer?


A. Use actual mathematical symbols or the words for the symbols (+, -, *, /)

B. Giving data an initial value: Initialize, Set

C. Read (information from a file)

D. Write (information to a file)

Question 8 of 20

5.0/ 5.0 Points

Which of the following is the correct result produced by executing the program shown below?
Here, the parameter x is called by value, and the parameter y is called by reference.
A. a= 2, b= 5

B. a= 7, b= 5

C. a= 2, b= 3

D. a= 7, b= 3

Question 9 of 20

5.0/ 5.0 Points

When develop the outline into an algorithm, which tools can we use to represent the solution
algorithm?
A. Pseudo code

B. Flowchart

C. Sequence diagram

Question 10 of 20

5.0/ 5.0 Points

Which of the following is not necessary for a good program?


A. colorful graphics

B. well-documented

C. catches common errors

D. reliability

Question 11 of 20

5.0/ 5.0 Points

________ language is made up only of binary digits


A. Natural

B. Procedural

C. Assembly

D. Machine

Question 12 of 20

5.0/ 5.0 Points

When a program whose functions are as shown in the flowchart in the Figure 1 was executed
when the contents of array A were as given in Figure 2, array B, whose contents are shown in the
Figure 3, was produced. Which operation should be filled in a of Figure 1? Here, the element of
arrays A and B are represented by A(i, j) and B(i, j), respectively.
A. A (i,j) --> B (i, 7-j)

B. A (i,j) --> B (j, 7-i)

C. A (i,j) --> B (7-j, i)

D. A (i,j) --> B (7-i, 7-j)

Question 13 of 20

5.0/ 5.0 Points

What are the three control structures for creating programs in structured programming?
A. Repetition, recursion, and selection

B. Repetition, recursion and sequence

C. Recursion, sequence, and selection

D. Repetition, sequence, and selection

Question 14 of 20

5.0/ 5.0 Points

Which is not one of 3 basic structure when design an algorithm?


A. Sequence

B. Repetition

C. Selection

D. Iteration

Question 15 of 20

5.0/ 5.0 Points

In below definitions on the global data, which one is incorrect?

A. Variables which are defined within the sub module

B. Data that can be used by all the modules in a program

C. Every module in the program can access and change data

D. Lifetime of a global variable spans the execution of the whole program

Question 16 of 20

5.0/ 5.0 Points

Please select one item which is not a guide when writing pseudo code
A. Structural elements might come separately

B. The names of subprograms are underlined

C. Indenting is used to show structure in the algorithm

D. Keywords are written in CAPITALS

Question 17 of 20

5.0/ 5.0 Points

Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A. test

B. specification

C. code

D. design

Question 18 of 20

5.0/ 5.0 Points

Integers are stored in the 1st to N-th elements of an array A(N>1). The flowchart below shows
the process to check which element of the array contains the same value as X. Which of the
following correctly describes the execution result of this process?

A. If the same value as X is not in the array, k is set to N.

B. If the same value as X exists in two places of the array, the 1st and N-th elements, k is
set to 1.
C. If the same value as X is not in the array, k is set to 1.

D. If the same value as X exists in two places of the array, the 1st and N-th elements, k is
set to N.

Question 19 of 20

5.0/ 5.0 Points

In the course of creating program specifications, the end-user should sketch out the desired
A. input

B. output

C. splash logo

D. icon

Question 20 of 20

5.0/ 5.0 Points

What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A. Use it to represent an event which occurs automatically. Such an event will trigger a
subsequent action, for example `receive telephone call, or describe a new state of affairs.
B. Use it to represent an event which is controlled within the process. Typically this will be
a step or action which is taken. In most flowcharts this will be the most frequently used symbol
C. Use it to represent a point at which the flowchart connects with another process. The
name or reference for the other process should appear within the symbol
D. Use it to represent a decision point in the process. Typically, the statement in the symbol
will require a `yes' or `no' response and branch to different parts of the flowchart accordingly

Das könnte Ihnen auch gefallen