Professional Documents
Culture Documents
A.Sequence
B.Subprogram
C.Selection
D.Repetition
Question 2 of 20
Which of the following corresponds to Process 1, when representing the following procedure in the
flowchart below?
C.Indicate value of m
D.Indicate value of n
Question 3 of 20
Which of the following lines of code comes from a first generation computer language?
A.ADD255(3,10),02B(4,5)
Question 4 of 20
"The test data about the part of a program shown in the flowchart is specified by decision condition
coverage (branch coverage). If this test data is specified by multiple condition coverage, which of the
following is the appropriate data to add? Here, the part enclosed in parentheses indicates the pair of test
data elements.
(branch coverage): (A=4, B=1), (A=5, B=0)"
Question 5 of 20
There are two important operations on a stack: PUSH and POP. PUSH adds the new data to the top of
the stack leaving previous data below, and POP removes and returns the current top data of the stack.
When the operations shown below are sequentially executed, which of the following is the correct
combination of the values x and y? Here, the size of the stack is big enough to hold the entire data.
PUSH(a) inserts the data a into the stack, and POP(b) removes the data b from the stack.
[Operations] PUSH (5); PUSH (3); PUSH (6); PUSH (1); x= POP ( ); PUSH (7); y= POP ( );
A.x=5, y=7
B.x=1, y=6
C.x=5, y=3
D.x=1, y=7
Question 6 of 20
Which is not one of 3 basic structure when design an algorithm?
A.Repetition
B.Selection
C.Sequence
D.Iteration
Question 7 of 20
Which of the following statements describes the flowchart symbol shown below?
Question 8 of 20
Which item is not a recommendation when writing pseudo codes?
A.Each set of instructions is written from top to bottom, with only one entry and one exit
Question 9 of 20
Which of the following variable name is the most retable and maintainable
A.emlstnam
B.employeeLastName
C.last name
D.lastNameOfTheEmployeeInQuestion
Question 10 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
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 "
Question 11 of 20
As much as __________ percent of the total lifetime cost for an application program is for maintenance
A.40%
B.50%
C.75%
D.60%
Question 12 of 20
The flowchart below shows a binary search algorithm to find the index m of the array element A(m), such
that the equation A(m) = k holds, from the array elements A(1), A(2), , A(n) already sorted in
ascending order. In case of m= 0 at the end, there is no element such that the equation A(m) = k
holds. Which of the following is inserted in the process box X in the flowchart? Here, the slash ( / )
indicates division that truncates all digits after the decimal point.
A.(x+ y) m
B.(x+ y) / 2 m
C.(y x) / 2 m
D.(x y) / 2 m
Question 13 of 20
In the course of creating program specifications, the end-user should sketch out the desired
A.icon
B.input
C.splash logo
D.output
Question 14 of 20
What is incorrect function of the parameter using in communicating between modules?
Question 15 of 20
__________ refers to testing by a select group of potential users in the final stage of testing a program
A.Manual testing
B.Beta testing
C.Desk checking
D.Attempt at translation
Question 16 of 20
What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?
A.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
B.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.
C.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
D.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
Question 17 of 20
The function f(x) has real arguments and returned values. Consider the procedure consisting of steps 1
~5 as shown below using this function. After starting execution and repeating the procedure a sufficient
number of times, y in step 3 stops changing. Which of the following expressions holds at this point?
A.f(y)=y
B.f(a)=y
C.f(y)=a
D.f(y)=0
Question 18 of 20
________ language is made up only of binary digits
A.Machine
B.Natural
C.Procedural
D.Assembly
Question 19 of 20
The programs processing steps are grouped into logically-related programming statements called
A.unit
B.Module
C.component
D.object
Question 20 of 20
A(n) __________ error could be the result of the programmer making an incorrect calculation
A.logic
B.general protection
C.syntax
D.breakpoint