Part 1 of 1 -
95.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
An IF-THEN-ELSE statement is part of the __________ structure
A.sequence
B.selection
C.conditional
D.loop
Question 2 of 20
Which of the following statements describes the flowchart symbol shown below?
A.Indicates the start and end of a loop
B.Indicates processing such as an operation
5.0/ 5.0 Points
C.Indicates input and output of data
D.Indicates the start and end of a flowchart
Question 3 of 20
5.0/ 5.0 Points
Which of the following variable name is the most retable and maintainable
A.employeeLastName
B.lastNameOfTheEmployeeInQuestion
C.emlstnam
D.last name
Question 4 of 20
The following figure is one example of binary-selection structure. Is that correct?
5.0/ 5.0 Points
True
False
Question 5 of 20
5.0/ 5.0 Points
Which of the following flowcharts illustrates a “while repetition structure” in the control structure
of programs?
A.Image d)
B.Image c)
C.Image b)
D.Image a)
Question 6 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for
maintenance
A.50%
B.75%
C.60%
D.40%
Question 7 of 20
0.0/ 5.0 Points
When a program repeats a portion of software code as long as a certain condition doesn’t exist,
it’s using a(n) _______ structure
A.do until
B.what-if
C.if-then-else
D.do while
Question 8 of 20
5.0/ 5.0 Points
What are the three control structures for creating programs in structured programming?
A.Repetition, sequence, and selection
B.Recursion, sequence, and selection
C.Repetition, recursion and sequence
D.Repetition, recursion, and selection
Question 9 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.a)
B.b)
C.c)
D.d)
Question 10 of 20
5.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Write (information to a file)
C.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
D.Giving data an initial value: Initialize, Set
Question 11 of 20
Please select the best variable name for an employee's last name
A.empLstNm
5.0/ 5.0 Points
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 12 of 20
5.0/ 5.0 Points
Flowcharts and pseudocode are examples of tools used in the program __________ phase.
A.code
B.specification
C.test
D.design
Question 13 of 20
In below definitions on the global data, which one is incorrect?
A.Variables which are defined within the sub module
5.0/ 5.0 Points
B.Every module in the program can access and change data
C.Data that can be used by all the modules in a program
D.Lifetime of a global variable spans the execution of the whole program
Question 14 of 20
5.0/ 5.0 Points
In a(n) __________ structure, one statement follows the other with no conditions having to be
met.
A.sequence
B.loop
C.conditional
D.selection
Question 15 of 20
5.0/ 5.0 Points
Which of the following lines of code comes from a first generation computer language?
A.00010 1010 1101 0001 1010
B.this Total=TotalA + TotalC
C.set total to sum of totals
D.ADD255(3,10),02B(4,5)
Question 16 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.selection
C.sequential
D.loop
Question 17 of 20
Which is not one of 3 basic structure when design an algorithm?
A.Sequence
B.Iteration
5.0/ 5.0 Points
C.Selection
D.Repetition
Question 18 of 20
5.0/ 5.0 Points
Software that helps programmers prepare reports, draw flowcharts, and generate software code
for prototypes is a(n)
A.CLOC (computer licensed operations code) tool
B.CULP (combined users licensed protocols) tool
C.CAUSE (computer assisted Unix software environment) tool
D.CASE (computer aided software engineering) tool
Question 19 of 20
Machine language is composed only of
A.0s and 1s
B.memory address toggles
5.0/ 5.0 Points
C.keyword statements
D.hexadecimal numbers
Question 20 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.a) Sequence structure
B.b) Selection structure
C.d) Repetition structure
D.c) Conditional branch
Part 1 of 1 Code Design
65.0/ 100.0 Points
Question 1 of 20
5.0/ 5.0 Points
Software that helps programmers prepare reports, draw flowcharts, and generate software code
for prototypes is a(n)
A.CAUSE (computer assisted Unix software environment) tool
B.CASE (computer aided software engineering) tool
C.CLOC (computer licensed operations code) tool
D.CULP (combined users licensed protocols) tool
Question 2 of 20
5.0/ 5.0 Points
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)=0
B.f(y)=y
C.f(a)=y
D.f(y)=a
Question 3 of 20
0.0/ 5.0 Points
Which of the following statements describes the flowchart symbol shown below?
A.Indicates input and output of data
B.Indicates processing such as an operation
C.Indicates the start and end of a flowchart
D.Indicates the start and end of a loop
Question 4 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 a point at which the flowchart connects with another process. The
name or reference for the other process should appear within the symbol
B.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
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 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.
Question 5 of 20
5.0/ 5.0 Points
Please select the best variable name for an employee's last name
A.empLstNm
B.empLastName
C.emplastname
D.lastNameOfTheEmployeeInQuestion
Question 6 of 20
0.0/ 5.0 Points
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 7 of 20
5.0/ 5.0 Points
Which of the following refers to tools that are used to design, code, and test software?
A.CAD
B.CASE
C.OOP
D.XML
Question 8 of 20
5.0/ 5.0 Points
Which is not one of 3 basic structure when design an algorithm?
A.Repetition
B.Sequence
C.Selection
D.Iteration
Question 9 of 20
OOP languages use
5.0/ 5.0 Points
A.combinations of objects
B.natural and nonprocedural statements
C.abbreviations and mnemonic
D.binary coded instructions
Question 10 of 20
0.0/ 5.0 Points
What is incorrect function of the parameter using in communicating between modules?
A."To pass information from a subordinate module to its calling module
"
B.To store the reference data
C.Tofulfil a two-way communication role
D."To pass information from a calling module to a subordinate module
"
Question 11 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.d)
B.a)
C.c)
D.b)
Question 12 of 20
An IF-THEN-ELSE statement is part of the __________ structure
5.0/ 5.0 Points
A.sequence
B.loop
C.conditional
D.selection
Question 13 of 20
0.0/ 5.0 Points
"Which structure theorem is used n a computer program or algorithm
to determine which particular step or set of steps is to be executed?"
A.Selection
B.Sequence
C.Repetition
D.Subprogram
Question 14 of 20
0.0/ 5.0 Points
"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.
The test
data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"
A.(A=3, B=0), (A=7, B=2)
B.(A=4, B=0), (A=8, B=0)
C.(A=3, B=2), (A=8, B=0)
D.(A=7, B=0), (A=8, B=2)
Question 15 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.algorithm
C.pseudocode
D.flowchart
Question 16 of 20
0.0/ 5.0 Points
What is an example of the information-receiving operation of a computer?
A.Read (information from a file)
B.Giving data an initial value: Initialize, Set
C.Write (information to a file)
D.Use actual mathematical symbols or the words for the symbols (+, -, *, /)
Question 17 of 20
0.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 (7-j, i)
B.A (i,j) --> B (i, 7-j)
C.A (i,j) --> B (7-i, 7-j)
D.A (i,j) --> B (j, 7-i)
Question 18 of 20
________ language is made up only of binary digits
5.0/ 5.0 Points
A.Machine
B.Natural
C.Assembly
D.Procedural
Question 19 of 20
5.0/ 5.0 Points
A program error that violates the grammar rules of the programming language is a(n) _______
error
A.modular
B.logic
C.language
D.syntax
Question 20 of 20
5.0/ 5.0 Points
In a(n) __________ structure, one statement follows the other with no conditions having to be
met.
A.selection
B.loop
C.sequence
D.conditional
Part 1 of 1 -
85.0/ 100.0 Points
Code Design
Question 1 of 20
5.0/ 5.0 Points
As much as __________ percent of the total lifetime cost for an application program is for
maintenance
A.60%
B.75%
C.50%
D.40%