SlideShare ist ein Scribd-Unternehmen logo
1 von 47
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 
5.0/ 5.0 Points 
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 
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 
5.0/ 5.0 Points 
The following figure is one example of binary-selection structure. Is that correct? 
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 
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 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 
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.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 
5.0/ 5.0 Points
Which is not one of 3 basic structure when design an algorithm? 
A.Sequence 
B.Iteration 
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 
5.0/ 5.0 Points 
Machine language is composed only of 
A.0s and 1s 
B.memory address toggles 
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 - 65.0/ 100.0 Points 
Code Design 
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 
5.0/ 5.0 Points 
OOP languages use 
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.To fulfil 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 
5.0/ 5.0 Points 
An IF-THEN-ELSE statement is part of the __________ structure 
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 
5.0/ 5.0 Points 
________ language is made up only of binary digits 
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% 
Question 2 of 20 
5.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 while 
B.what-if 
C.do until 
D.if-then-else 
Question 3 of 20 
5.0/ 5.0 Points 
Machine language is composed only of 
A.0s and 1s 
B.keyword statements 
C.hexadecimal numbers 
D.memory address toggles 
Question 4 of 20 
0.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 1. 
B.If the same value as X is not in the array, k is set to N. 
C.If the same value as X exists in two places of the array, the 1st and N-th elements, 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 5 of 20 
5.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 6 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.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 7 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 a) 
D.Image b) 
Question 8 of 20 
0.0/ 5.0 Points 
Please choose correct definition of the module parameters 
A.Reference parameters pass a copy of the value of a parameter from one module to 
another 
B.Variables and expressions that are passed to a submodule in a particular call are called 
formal parameters 
C.Formal parameters are the one that appear when a submodule is defined
D.Value parameter pass the memory address of a parameter from one module to another 
Question 9 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 10 of 20 
5.0/ 5.0 Points 
An IF-THEN-ELSE statement is part of the __________ structure 
A.sequence 
B.loop 
C.conditional 
D.selection 
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 
5.0/ 5.0 Points 
OOP languages use 
A.combinations of objects 
B.natural and nonprocedural statements 
C.abbreviations and mnemonic
D.binary coded instructions 
Question 13 of 20 
0.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= 7, b= 5 
B.a= 2, b= 3 
C.a= 2, b= 5 
D.a= 7, b= 3 
Question 14 of 20 
5.0/ 5.0 Points 
Flowcharts and pseudocode are examples of tools used in the program __________ phase. 
A.design 
B.test 
C.code 
D.specification 
Question 15 of 20 
5.0/ 5.0 Points 
Which of the following is not necessary for a good program?
A.catches common errors 
B.well-documented 
C.colorful graphics 
D.reliability 
Question 16 of 20 
5.0/ 5.0 Points 
________ language is made up only of binary digits 
A.Machine 
B.Natural 
C.Assembly 
D.Procedural 
Question 17 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 18 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 19 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 20 of 20 
5.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) 
____HCMUT_013_CSD_02_Quiz1_Code Design 
Return to Assessment List 
Part 1 of 1 - 95.0/ 100.0 Points 
Code Design 
Question 1 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 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 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 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 
Question 2 of 20 5.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 3 of 20 5.0/ 5.0 Points 
An IF-THEN-ELSE statement is part of the __________ structure 
A.loop 
B.selection 
C.sequence 
D.conditional 
Question 4 of 20 5.0/ 5.0 Points 
A(n) __________ error could be the result of the programmer making an incorrect calculation
A.syntax 
B.logic 
C.general protection 
D.breakpoint 
Question 5 of 20 5.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.do while 
C.what-if 
D.if-then-else 
Question 6 of 20 5.0/ 5.0 Points 
Which of the following statements describes the flowchart symbol shown below? 
A.Indicates the start and end of a flowchart 
B.Indicates processing such as an operation 
C.Indicates the start and end of a loop 
D.Indicates input and output of data 
Question 7 of 20 0.0/ 5.0 Points
The control structure used to perform a series of statements one after the other is called 
A.random 
B.loop 
C.sequential 
D.selection 
Question 8 of 20 5.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.(y – x) / 2 → m 
B.(x+ y) / 2 → m
C.(x+ y) → m 
D.(x – y) / 2 → m 
Question 9 of 20 5.0/ 5.0 Points 
Flowcharts and pseudocode are examples of tools used in the program __________ phase. 
A.code 
B.design 
C.test 
D.specification 
Question 10 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 11 of 20 5.0/ 5.0 Points
Which of the following variable name is the most retable and maintainable 
A.employeeLastName 
B.emlstnam 
C.last name 
D.lastNameOfTheEmployeeInQuestion 
Question 12 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 c) 
B.Image b) 
C.Image a)
D.Image d) 
Question 13 of 20 5.0/ 5.0 Points 
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=1, y=6 
B.x=1, y=7 
C.x=5, y=7 
D.x=5, y=3 
Question 14 of 20 5.0/ 5.0 Points 
What is incorrect function of the parameter using in communicating between modules? 
A.To store the reference data 
B."To pass information from a subordinate module to its calling module 
" 
C.To fulfil a two-way communication role
D."To pass information from a calling module to a subordinate module 
" 
Question 15 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 16 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.selection 
D.conditional 
Question 17 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.c) Conditional branch
B.a) Sequence structure 
C.d) Repetition structure 
D.b) Selection structure 
Question 18 of 20 5.0/ 5.0 Points 
________ language is made up only of binary digits 
A.Machine 
B.Assembly 
C.Procedural 
D.Natural 
Question 19 of 20 5.0/ 5.0 Points 
Which of the following is not necessary for a good program? 
A.reliability 
B.colorful graphics 
C.catches common errors 
D.well-documented 
Question 20 of 20 5.0/ 5.0 Points 
__________ refers to testing by a select group of potential users in the final stage of testing a 
program 
A.Beta testing 
B.Manual testing
C.Desk checking 
D.Attempt at translation 
Part 1 of 1 - 100.0/ 100.0 Points 
Code Design 
Question 1 of 20 
5.0/ 5.0 Points 
The following figure is one example of binary-selection structure. Is that correct?
True 
False 
Question 2 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 3 of 20 
5.0/ 5.0 Points 
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 
C.Indicates input and output of data
D.Indicates the start and end of a flowchart 
Question 4 of 20 
5.0/ 5.0 Points 
The __________ structure involves repeating a sequence until a condition is met. 
A.conditional 
B.loop 
C.sequence 
D.selection 
Question 5 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.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 6 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 7 of 20 
5.0/ 5.0 Points 
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 
B.Try to keep each instruction/step as short as possible 
C.Keywords and indentation are used to signify particular control structures 
D.Each instruction/step is written on a separate line 
Question 8 of 20 
5.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 9 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 10 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 11 of 20 
5.0/ 5.0 Points 
The program’s processing steps are grouped into logically-related programming statements called 
A.unit 
B.object 
C.component 
D.Module 
Question 12 of 20 
5.0/ 5.0 Points 
A program error that violates the grammar rules of the programming language is a(n) _______ error
A.language 
B.logic 
C.modular 
D.syntax 
Question 13 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 a point at which the flowchart connects with another process. The name or 
reference for the other process should appear within the symbol 
C.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 
D.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 
Question 14 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.pseudocode
B.algorithm 
C.grid table 
D.flowchart 
Question 15 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 16 of 20 
5.0/ 5.0 Points 
Please choose correct definition of the module parameters 
A.Value parameter pass the memory address of a parameter from one module to another 
B.Formal parameters are the one that appear when a submodule is defined 
C.Variables and expressions that are passed to a submodule in a particular call are called formal 
parameters
D.Reference parameters pass a copy of the value of a parameter from one module to another 
Question 17 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. Flowchart 
B. Pseudo code 
C. Sequence diagram 
Question 18 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 (7-j, i) 
C.A (i,j) --> B (j, 7-i) 
D.A (i,j) --> B (7-i, 7-j) 
Question 19 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 20 of 20 
5.0/ 5.0 Points 
What is incorrect function of the parameter using in communicating between modules? 
A.To fulfil a two-way communication role 
B."To pass information from a calling module to a subordinate module 
" 
C.To store the reference data
D."To pass information from a subordinate module to its calling module 
" 
Question 16 of 20 
5.0/ 5.0 Points 
As much as __________ percent of the total lifetime cost for an application program is for maintenance 
A.75% 
B.60% 
C.40% 
D.50%

Weitere ähnliche Inhalte

Was ist angesagt?

系统性能分析和优化.ppt
系统性能分析和优化.ppt系统性能分析和优化.ppt
系统性能分析和优化.pptFrank Cai
 
Implementing role based access control on Web Application (sample case)
Implementing role based access control on Web Application (sample case)Implementing role based access control on Web Application (sample case)
Implementing role based access control on Web Application (sample case)Deny Prasetia
 
Inter process communication
Inter process communicationInter process communication
Inter process communicationPradeep Kumar TS
 
Chapter-6 Relational Algebra
Chapter-6 Relational AlgebraChapter-6 Relational Algebra
Chapter-6 Relational AlgebraKunal Anand
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-conceptsMuhammad Ahad
 
Emerging Technologies Final Exam
Emerging Technologies Final ExamEmerging Technologies Final Exam
Emerging Technologies Final ExamStephanie Gobble
 
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsDr Sandeep Kumar Poonia
 
non linear data structure -introduction of tree
non linear data structure -introduction of treenon linear data structure -introduction of tree
non linear data structure -introduction of treeSiddhi Viradiya
 
Advanced data structures vol. 1
Advanced data structures   vol. 1Advanced data structures   vol. 1
Advanced data structures vol. 1Christalin Nelson
 
Architecture of operating system
Architecture of operating systemArchitecture of operating system
Architecture of operating systemSupriya Kumari
 
Software engineering critical systems
Software engineering   critical systemsSoftware engineering   critical systems
Software engineering critical systemsDr. Loganathan R
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESpriyasoundar
 

Was ist angesagt? (20)

系统性能分析和优化.ppt
系统性能分析和优化.ppt系统性能分析和优化.ppt
系统性能分析和优化.ppt
 
Implementing role based access control on Web Application (sample case)
Implementing role based access control on Web Application (sample case)Implementing role based access control on Web Application (sample case)
Implementing role based access control on Web Application (sample case)
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Chapter-6 Relational Algebra
Chapter-6 Relational AlgebraChapter-6 Relational Algebra
Chapter-6 Relational Algebra
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-concepts
 
Emerging Technologies Final Exam
Emerging Technologies Final ExamEmerging Technologies Final Exam
Emerging Technologies Final Exam
 
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked listsMultiplication of two 3 d sparse matrices using 1d arrays and linked lists
Multiplication of two 3 d sparse matrices using 1d arrays and linked lists
 
non linear data structure -introduction of tree
non linear data structure -introduction of treenon linear data structure -introduction of tree
non linear data structure -introduction of tree
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Cause effect graphing.ppt
Cause effect graphing.pptCause effect graphing.ppt
Cause effect graphing.ppt
 
Function Point Analysis (FPA) by Dr. B. J. Mohite
Function Point Analysis (FPA) by Dr. B. J. MohiteFunction Point Analysis (FPA) by Dr. B. J. Mohite
Function Point Analysis (FPA) by Dr. B. J. Mohite
 
Advanced data structures vol. 1
Advanced data structures   vol. 1Advanced data structures   vol. 1
Advanced data structures vol. 1
 
Architecture of operating system
Architecture of operating systemArchitecture of operating system
Architecture of operating system
 
Software engineering critical systems
Software engineering   critical systemsSoftware engineering   critical systems
Software engineering critical systems
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
 
Role of system analyst
Role of system analystRole of system analyst
Role of system analyst
 
Chap 5 Tree.ppt
Chap 5 Tree.pptChap 5 Tree.ppt
Chap 5 Tree.ppt
 
Remote backup system
Remote backup systemRemote backup system
Remote backup system
 
SDLC
SDLCSDLC
SDLC
 

Andere mochten auch

Quiz2 tonghop
 Quiz2 tonghop Quiz2 tonghop
Quiz2 tonghopDaewoo Han
 
Question đúng cnu
Question đúng cnuQuestion đúng cnu
Question đúng cnuPhamHoc
 
Quiz3 tonghop
 Quiz3 tonghop Quiz3 tonghop
Quiz3 tonghopDaewoo Han
 
Software testing quiz questions and answers
Software testing quiz questions and answersSoftware testing quiz questions and answers
Software testing quiz questions and answersRajendraG
 
Pseudocode.docx angel
Pseudocode.docx angelPseudocode.docx angel
Pseudocode.docx angelangelevonne
 
Software testing objective_types
Software testing objective_typesSoftware testing objective_types
Software testing objective_typessangeeswaran
 
Introduction to Flowcharts, Micro and macro flowchart
Introduction to Flowcharts, Micro and macro flowchartIntroduction to Flowcharts, Micro and macro flowchart
Introduction to Flowcharts, Micro and macro flowchartSugandha Kapoor
 
163912338 ch-13-systems-analysis-and-design
163912338 ch-13-systems-analysis-and-design163912338 ch-13-systems-analysis-and-design
163912338 ch-13-systems-analysis-and-designhomeworkping7
 
Do...until loop structure
Do...until loop structureDo...until loop structure
Do...until loop structureJd Mercado
 
assignment1 - cn u
   assignment1 - cn u   assignment1 - cn u
assignment1 - cn uPhamHoc
 
Special value testing
Special value testingSpecial value testing
Special value testingBapi Das
 
Mock object
Mock objectMock object
Mock objectlvlong
 
Software project management
Software project managementSoftware project management
Software project managementSaumya Sahu
 
Chapter 7 - The Repetition Structure
Chapter 7 - The Repetition StructureChapter 7 - The Repetition Structure
Chapter 7 - The Repetition Structuremshellman
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual TestingDirecti Group
 

Andere mochten auch (20)

Quiz2 tonghop
 Quiz2 tonghop Quiz2 tonghop
Quiz2 tonghop
 
Question đúng cnu
Question đúng cnuQuestion đúng cnu
Question đúng cnu
 
Quiz3 tonghop
 Quiz3 tonghop Quiz3 tonghop
Quiz3 tonghop
 
Software testing quiz questions and answers
Software testing quiz questions and answersSoftware testing quiz questions and answers
Software testing quiz questions and answers
 
Pseudocode.docx angel
Pseudocode.docx angelPseudocode.docx angel
Pseudocode.docx angel
 
Software testing objective_types
Software testing objective_typesSoftware testing objective_types
Software testing objective_types
 
Introduction to Flowcharts, Micro and macro flowchart
Introduction to Flowcharts, Micro and macro flowchartIntroduction to Flowcharts, Micro and macro flowchart
Introduction to Flowcharts, Micro and macro flowchart
 
163912338 ch-13-systems-analysis-and-design
163912338 ch-13-systems-analysis-and-design163912338 ch-13-systems-analysis-and-design
163912338 ch-13-systems-analysis-and-design
 
Quiz5
Quiz5Quiz5
Quiz5
 
Do...until loop structure
Do...until loop structureDo...until loop structure
Do...until loop structure
 
assignment1 - cn u
   assignment1 - cn u   assignment1 - cn u
assignment1 - cn u
 
Special value testing
Special value testingSpecial value testing
Special value testing
 
Mock object
Mock objectMock object
Mock object
 
Plsqlobj
PlsqlobjPlsqlobj
Plsqlobj
 
Software project management
Software project managementSoftware project management
Software project management
 
Chapter 7 - The Repetition Structure
Chapter 7 - The Repetition StructureChapter 7 - The Repetition Structure
Chapter 7 - The Repetition Structure
 
Hld and lld
Hld and lldHld and lld
Hld and lld
 
Javascript Question
Javascript QuestionJavascript Question
Javascript Question
 
Topic 5 chapter 1
Topic 5 chapter 1Topic 5 chapter 1
Topic 5 chapter 1
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 

Ähnlich wie Quiz1 tonghop

Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docxrafbolet0
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docxrosemarybdodson23141
 
1 Midterm Preview Time allotted 50 minutes CS 11.docx
1  Midterm Preview Time allotted 50 minutes CS 11.docx1  Midterm Preview Time allotted 50 minutes CS 11.docx
1 Midterm Preview Time allotted 50 minutes CS 11.docxhoney725342
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomeshpraveensomesh
 
Base SAS Full Sample Paper
Base SAS Full Sample Paper Base SAS Full Sample Paper
Base SAS Full Sample Paper Jimmy Rana
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSESujata Regoti
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answersdebarghyamukherjee60
 
Spring Certification Questions
Spring Certification QuestionsSpring Certification Questions
Spring Certification QuestionsSpringMockExams
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdfchoconyeuquy
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answersRandalHoffman
 
BISH CS Modle Exit Exam.doc
BISH CS Modle Exit Exam.docBISH CS Modle Exit Exam.doc
BISH CS Modle Exit Exam.docAnimutGeremew3
 
Kality CS Model_Exit_Exams_with_answer - Copy (2).doc
Kality CS Model_Exit_Exams_with_answer - Copy (2).docKality CS Model_Exit_Exams_with_answer - Copy (2).doc
Kality CS Model_Exit_Exams_with_answer - Copy (2).docAnimutGeremew3
 
Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...josbuttlewr116
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013Syahriha Ruslan
 
one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...pinck3125
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGAmira Dolce Farhana
 
C programming session 02
C programming session 02C programming session 02
C programming session 02Vivek Singh
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Udayan Khattry
 

Ähnlich wie Quiz1 tonghop (20)

Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docxSpring 2014 CSCI 111 Final exam   of 1 61. (2 points) Fl.docx
Spring 2014 CSCI 111 Final exam of 1 61. (2 points) Fl.docx
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
1 Midterm Preview Time allotted 50 minutes CS 11.docx
1  Midterm Preview Time allotted 50 minutes CS 11.docx1  Midterm Preview Time allotted 50 minutes CS 11.docx
1 Midterm Preview Time allotted 50 minutes CS 11.docx
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
Base SAS Full Sample Paper
Base SAS Full Sample Paper Base SAS Full Sample Paper
Base SAS Full Sample Paper
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSE
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Spring Certification Questions
Spring Certification QuestionsSpring Certification Questions
Spring Certification Questions
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdf
 
Java Quiz
Java QuizJava Quiz
Java Quiz
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
BISH CS Modle Exit Exam.doc
BISH CS Modle Exit Exam.docBISH CS Modle Exit Exam.doc
BISH CS Modle Exit Exam.doc
 
Kality CS Model_Exit_Exams_with_answer - Copy (2).doc
Kality CS Model_Exit_Exams_with_answer - Copy (2).docKality CS Model_Exit_Exams_with_answer - Copy (2).doc
Kality CS Model_Exit_Exams_with_answer - Copy (2).doc
 
operators.ppt
operators.pptoperators.ppt
operators.ppt
 
Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...Which of the following is not one of the rules cited in class for making e ma...
Which of the following is not one of the rules cited in class for making e ma...
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
 
one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...one of the rules cited in class for making e-mail more effective Experience T...
one of the rules cited in class for making e-mail more effective Experience T...
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
 

Mehr von Daewoo Han

Đồ án cuối kì
Đồ án cuối kìĐồ án cuối kì
Đồ án cuối kìDaewoo Han
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kìDaewoo Han
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kìDaewoo Han
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kìDaewoo Han
 
Báo cáo tuần 4
Báo cáo tuần 4Báo cáo tuần 4
Báo cáo tuần 4Daewoo Han
 
Báo cáo tuần 2
Báo cáo tuần 2Báo cáo tuần 2
Báo cáo tuần 2Daewoo Han
 
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoa
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoaHoangxuannhathuy lopthuctap cntt-daihocbachkhoa
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoaDaewoo Han
 

Mehr von Daewoo Han (7)

Đồ án cuối kì
Đồ án cuối kìĐồ án cuối kì
Đồ án cuối kì
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kì
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kì
 
Báo cáo cuối kì
Báo cáo cuối kìBáo cáo cuối kì
Báo cáo cuối kì
 
Báo cáo tuần 4
Báo cáo tuần 4Báo cáo tuần 4
Báo cáo tuần 4
 
Báo cáo tuần 2
Báo cáo tuần 2Báo cáo tuần 2
Báo cáo tuần 2
 
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoa
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoaHoangxuannhathuy lopthuctap cntt-daihocbachkhoa
Hoangxuannhathuy lopthuctap cntt-daihocbachkhoa
 

Kürzlich hochgeladen

Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Timegargpaaro
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingNauman Safdar
 
Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030tarushabhavsar
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon investment
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...daisycvs
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfbelieveminhh
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSpanmisemningshen123
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwaitdaisycvs
 
Buy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified Binance Account
 
Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance managementVaishnaviGunji
 
BeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfBeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfDerekIwanaka1
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...meghakumariji156
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
Structuring and Writing DRL Mckinsey (1).pdf
Structuring and Writing DRL Mckinsey (1).pdfStructuring and Writing DRL Mckinsey (1).pdf
Structuring and Writing DRL Mckinsey (1).pdflaloo_007
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxCynthia Clay
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizharallensay1
 

Kürzlich hochgeladen (20)

Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024
 
Buy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From SeosmmearthBuy Verified TransferWise Accounts From Seosmmearth
Buy Verified TransferWise Accounts From Seosmmearth
 
Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance management
 
BeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdfBeMetals Investor Presentation_May 3, 2024.pdf
BeMetals Investor Presentation_May 3, 2024.pdf
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Structuring and Writing DRL Mckinsey (1).pdf
Structuring and Writing DRL Mckinsey (1).pdfStructuring and Writing DRL Mckinsey (1).pdf
Structuring and Writing DRL Mckinsey (1).pdf
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 

Quiz1 tonghop

  • 1. 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 5.0/ 5.0 Points 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 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
  • 2. C.emlstnam D.last name Question 4 of 20 5.0/ 5.0 Points The following figure is one example of binary-selection structure. Is that correct? 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?
  • 3. 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%
  • 4. 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?
  • 5. 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 (+, -, *, /)
  • 6. D.Giving data an initial value: Initialize, Set Question 11 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 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 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.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
  • 7. 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 5.0/ 5.0 Points
  • 8. Which is not one of 3 basic structure when design an algorithm? A.Sequence B.Iteration 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 5.0/ 5.0 Points Machine language is composed only of A.0s and 1s B.memory address toggles 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?
  • 9. ①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 - 65.0/ 100.0 Points Code Design 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
  • 10. 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
  • 11. 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.
  • 12. 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
  • 13. 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 5.0/ 5.0 Points OOP languages use 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.To fulfil a two-way communication role D."To pass information from a calling module to a subordinate module
  • 14. " 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 5.0/ 5.0 Points An IF-THEN-ELSE statement is part of the __________ structure A.sequence
  • 15. 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)
  • 16. 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
  • 17. 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 5.0/ 5.0 Points ________ language is made up only of binary digits A.Machine B.Natural C.Assembly D.Procedural
  • 18. 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%
  • 19. C.50% D.40% Question 2 of 20 5.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 while B.what-if C.do until D.if-then-else Question 3 of 20 5.0/ 5.0 Points Machine language is composed only of A.0s and 1s B.keyword statements C.hexadecimal numbers D.memory address toggles Question 4 of 20 0.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?
  • 20. A.If the same value as X is not in the array, k is set to 1. B.If the same value as X is not in the array, k is set to N. C.If the same value as X exists in two places of the array, the 1st and N-th elements, 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 5 of 20 5.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
  • 21. C.Repetition D.Subprogram Question 6 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.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 7 of 20 5.0/ 5.0 Points Which of the following flowcharts illustrates a “while repetition structure” in the control structure of programs?
  • 22. A.Image d) B.Image c) C.Image a) D.Image b) Question 8 of 20 0.0/ 5.0 Points Please choose correct definition of the module parameters A.Reference parameters pass a copy of the value of a parameter from one module to another B.Variables and expressions that are passed to a submodule in a particular call are called formal parameters C.Formal parameters are the one that appear when a submodule is defined
  • 23. D.Value parameter pass the memory address of a parameter from one module to another Question 9 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 10 of 20 5.0/ 5.0 Points An IF-THEN-ELSE statement is part of the __________ structure A.sequence B.loop C.conditional D.selection 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?
  • 24. A.d) B.a) C.c) D.b) Question 12 of 20 5.0/ 5.0 Points OOP languages use A.combinations of objects B.natural and nonprocedural statements C.abbreviations and mnemonic
  • 25. D.binary coded instructions Question 13 of 20 0.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= 7, b= 5 B.a= 2, b= 3 C.a= 2, b= 5 D.a= 7, b= 3 Question 14 of 20 5.0/ 5.0 Points Flowcharts and pseudocode are examples of tools used in the program __________ phase. A.design B.test C.code D.specification Question 15 of 20 5.0/ 5.0 Points Which of the following is not necessary for a good program?
  • 26. A.catches common errors B.well-documented C.colorful graphics D.reliability Question 16 of 20 5.0/ 5.0 Points ________ language is made up only of binary digits A.Machine B.Natural C.Assembly D.Procedural Question 17 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 18 of 20 5.0/ 5.0 Points A program error that violates the grammar rules of the programming language is a(n) _______ error
  • 27. A.modular B.logic C.language D.syntax Question 19 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 20 of 20 5.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)"
  • 28. 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) ____HCMUT_013_CSD_02_Quiz1_Code Design Return to Assessment List Part 1 of 1 - 95.0/ 100.0 Points Code Design Question 1 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 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 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 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 Question 2 of 20 5.0/ 5.0 Points "The test data about the part of a program shown in the flowchart is specified by “decision
  • 29. 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 3 of 20 5.0/ 5.0 Points An IF-THEN-ELSE statement is part of the __________ structure A.loop B.selection C.sequence D.conditional Question 4 of 20 5.0/ 5.0 Points A(n) __________ error could be the result of the programmer making an incorrect calculation
  • 30. A.syntax B.logic C.general protection D.breakpoint Question 5 of 20 5.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.do while C.what-if D.if-then-else Question 6 of 20 5.0/ 5.0 Points Which of the following statements describes the flowchart symbol shown below? A.Indicates the start and end of a flowchart B.Indicates processing such as an operation C.Indicates the start and end of a loop D.Indicates input and output of data Question 7 of 20 0.0/ 5.0 Points
  • 31. The control structure used to perform a series of statements one after the other is called A.random B.loop C.sequential D.selection Question 8 of 20 5.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.(y – x) / 2 → m B.(x+ y) / 2 → m
  • 32. C.(x+ y) → m D.(x – y) / 2 → m Question 9 of 20 5.0/ 5.0 Points Flowcharts and pseudocode are examples of tools used in the program __________ phase. A.code B.design C.test D.specification Question 10 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 11 of 20 5.0/ 5.0 Points
  • 33. Which of the following variable name is the most retable and maintainable A.employeeLastName B.emlstnam C.last name D.lastNameOfTheEmployeeInQuestion Question 12 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 c) B.Image b) C.Image a)
  • 34. D.Image d) Question 13 of 20 5.0/ 5.0 Points 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=1, y=6 B.x=1, y=7 C.x=5, y=7 D.x=5, y=3 Question 14 of 20 5.0/ 5.0 Points What is incorrect function of the parameter using in communicating between modules? A.To store the reference data B."To pass information from a subordinate module to its calling module " C.To fulfil a two-way communication role
  • 35. D."To pass information from a calling module to a subordinate module " Question 15 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 16 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.selection D.conditional Question 17 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.c) Conditional branch
  • 36. B.a) Sequence structure C.d) Repetition structure D.b) Selection structure Question 18 of 20 5.0/ 5.0 Points ________ language is made up only of binary digits A.Machine B.Assembly C.Procedural D.Natural Question 19 of 20 5.0/ 5.0 Points Which of the following is not necessary for a good program? A.reliability B.colorful graphics C.catches common errors D.well-documented Question 20 of 20 5.0/ 5.0 Points __________ refers to testing by a select group of potential users in the final stage of testing a program A.Beta testing B.Manual testing
  • 37. C.Desk checking D.Attempt at translation Part 1 of 1 - 100.0/ 100.0 Points Code Design Question 1 of 20 5.0/ 5.0 Points The following figure is one example of binary-selection structure. Is that correct?
  • 38. True False Question 2 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 3 of 20 5.0/ 5.0 Points 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 C.Indicates input and output of data
  • 39. D.Indicates the start and end of a flowchart Question 4 of 20 5.0/ 5.0 Points The __________ structure involves repeating a sequence until a condition is met. A.conditional B.loop C.sequence D.selection Question 5 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.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 6 of 20 5.0/ 5.0 Points What are the three control structures for creating programs in structured programming?
  • 40. A.Repetition, sequence, and selection B.Recursion, sequence, and selection C.Repetition, recursion and sequence D.Repetition, recursion, and selection Question 7 of 20 5.0/ 5.0 Points 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 B.Try to keep each instruction/step as short as possible C.Keywords and indentation are used to signify particular control structures D.Each instruction/step is written on a separate line Question 8 of 20 5.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
  • 41. C.if-then-else D.do while Question 9 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)
  • 42. D.Image a) Question 10 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 11 of 20 5.0/ 5.0 Points The program’s processing steps are grouped into logically-related programming statements called A.unit B.object C.component D.Module Question 12 of 20 5.0/ 5.0 Points A program error that violates the grammar rules of the programming language is a(n) _______ error
  • 43. A.language B.logic C.modular D.syntax Question 13 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 a point at which the flowchart connects with another process. The name or reference for the other process should appear within the symbol C.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 D.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 Question 14 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.pseudocode
  • 44. B.algorithm C.grid table D.flowchart Question 15 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 16 of 20 5.0/ 5.0 Points Please choose correct definition of the module parameters A.Value parameter pass the memory address of a parameter from one module to another B.Formal parameters are the one that appear when a submodule is defined C.Variables and expressions that are passed to a submodule in a particular call are called formal parameters
  • 45. D.Reference parameters pass a copy of the value of a parameter from one module to another Question 17 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. Flowchart B. Pseudo code C. Sequence diagram Question 18 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)
  • 46. B.A (i,j) --> B (7-j, i) C.A (i,j) --> B (j, 7-i) D.A (i,j) --> B (7-i, 7-j) Question 19 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 20 of 20 5.0/ 5.0 Points What is incorrect function of the parameter using in communicating between modules? A.To fulfil a two-way communication role B."To pass information from a calling module to a subordinate module " C.To store the reference data
  • 47. D."To pass information from a subordinate module to its calling module " Question 16 of 20 5.0/ 5.0 Points As much as __________ percent of the total lifetime cost for an application program is for maintenance A.75% B.60% C.40% D.50%