JAVASCRIPT TEST CHAPTER 7
ACTUAL QUESTIONS & ANSWERS
7.15 A procedure for solving a problem in terms of the actions to be executed and the
order in which these actions are to be executed is called ________.
a) program control
b) a program structure
c) a control structure
d) an algorithm - ANSWER-d) an algorithm
7.16 Specifying the order in which programming statements are to be executed is called
________.
a) program control
b) a program structure
c) a control structure
d) an algorithm - ANSWER-a) program control
7.17 ________ is an informal language that helps programmers develop algorithms.
a) JavaScript
b) ECMAScript
c) Pseudocode
d) AlgorithmCode - ANSWER-c) Pseudocode
7.18 A program in which all statements are executed one after the other in the order in
which they are written exhibits ________.
a) transfer of control
b) algorithms
c) sequential execution
d) direct execution - ANSWER-c) sequential execution
, 7.19 The word sequence in the term sequence structure refers to the sequence of
________.
a) bits in a JavaScript instruction
b) JavaScript instructions in a script
c) scripts in an HTML file
d) HTML files in a Web site - ANSWER-b) JavaScript instructions in a script
7.20 Research determined that all programs could be written in terms of only three
control structures. Which of the following is not one of the three control structures?
a) goto-less structure
b) sequence structure
c) selection structure
d) repetition structure - ANSWER-a) goto-less structure
7.21 Which of the following flowchart symbols indicates that a decision is to be made?
a) diamond
b) oval/circle
c) rectangle
d) flowline - ANSWER-a) diamond
7.22 Which of the following is not a JavaScript selection statement?
a) if...else
b) for...in
c) switch
d) if - ANSWER-b) for...in
7.23 Which of the following is a JavaScript repetition statement?
a) while...repeat
b) do...while
c) do...repeat
d) for...do - ANSWER-b) do...while
7.24 Which of the following is not a JavaScript keyword?
ACTUAL QUESTIONS & ANSWERS
7.15 A procedure for solving a problem in terms of the actions to be executed and the
order in which these actions are to be executed is called ________.
a) program control
b) a program structure
c) a control structure
d) an algorithm - ANSWER-d) an algorithm
7.16 Specifying the order in which programming statements are to be executed is called
________.
a) program control
b) a program structure
c) a control structure
d) an algorithm - ANSWER-a) program control
7.17 ________ is an informal language that helps programmers develop algorithms.
a) JavaScript
b) ECMAScript
c) Pseudocode
d) AlgorithmCode - ANSWER-c) Pseudocode
7.18 A program in which all statements are executed one after the other in the order in
which they are written exhibits ________.
a) transfer of control
b) algorithms
c) sequential execution
d) direct execution - ANSWER-c) sequential execution
, 7.19 The word sequence in the term sequence structure refers to the sequence of
________.
a) bits in a JavaScript instruction
b) JavaScript instructions in a script
c) scripts in an HTML file
d) HTML files in a Web site - ANSWER-b) JavaScript instructions in a script
7.20 Research determined that all programs could be written in terms of only three
control structures. Which of the following is not one of the three control structures?
a) goto-less structure
b) sequence structure
c) selection structure
d) repetition structure - ANSWER-a) goto-less structure
7.21 Which of the following flowchart symbols indicates that a decision is to be made?
a) diamond
b) oval/circle
c) rectangle
d) flowline - ANSWER-a) diamond
7.22 Which of the following is not a JavaScript selection statement?
a) if...else
b) for...in
c) switch
d) if - ANSWER-b) for...in
7.23 Which of the following is a JavaScript repetition statement?
a) while...repeat
b) do...while
c) do...repeat
d) for...do - ANSWER-b) do...while
7.24 Which of the following is not a JavaScript keyword?