Beruflich Dokumente
Kultur Dokumente
Question 1 of 20
B. conditional
C. loop
D. sequence
Question 2 of 20
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
"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
B. c) Conditional branch
C. d) Repetition structure
D. a) Sequence structure
Question 4 of 20
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
B. Selection (IF)
C. Sequence
Question 6 of 20
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
Question 8 of 20
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
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
B. well-documented
D. reliability
Question 11 of 20
B. Procedural
C. Assembly
D. Machine
Question 12 of 20
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)
Question 13 of 20
What are the three control structures for creating programs in structured programming?
A. Repetition, recursion, and selection
Question 14 of 20
B. Repetition
C. Selection
D. Iteration
Question 15 of 20
Question 16 of 20
Please select one item which is not a guide when writing pseudo code
A. Structural elements might come separately
Question 17 of 20
Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A. test
B. specification
C. code
D. design
Question 18 of 20
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?
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
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
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