SCI 228 COMP 230 WK 5 QUESTIONS AND ANSWERS 100%
COMP 230 WK 5 QUESTIONS AND ANSWERS 20 out of 20
Score for this attempt: 20 out of 20
Submitted Apr 5 at 9:13am
This attempt took 28 minutes.
Question 1
2 / 2 p
...
SCI 228 COMP 230 WK 5 QUESTIONS AND ANSWERS 100%
COMP 230 WK 5 QUESTIONS AND ANSWERS 20 out of 20
Score for this attempt: 20 out of 20
Submitted Apr 5 at 9:13am
This attempt took 28 minutes.
Question 1
2 / 2 pts
(TCO 5) A program or module that uses another module to perform a task or function is referred to as the _____ program or module.
called
director
Correct!
calling
parent
I
Question 2
2 / 2 pts
(TCO 5) What name is best suited to a module that calculates overtime pay?
Correct!
calculateOvertime( )
cO( )
calculate overtime( )
calcO( )
.
Question 3
2 / 2 pts
(TCO 5) In VBScript, the proper keyword/s to end a function is/are _____.
Return
End Sub
End
Correct!
End Function
Question 4
2 / 2 pts
(TCO 5) In VBScript, argument variable names in the calling module _____ in the subroutine or function.
must always match
must match only when arguments are passed by reference
Correct!
do not have to match
must not match
Question 5
2 / 2 pts
(TCO 5) What statement is not an advantage of using modularization?
Programs are longer and more complex.
Programs to be worked on by separate programmers
Correct!
Easier to debug programs
Code is reusable.
Question 6
2 / 2 pts
(TCO 5) Variables declared within a module have what scope?
Nonvisibility
Global
Correct!
Local
Local and global
Question 7
2 / 2 pts
(TCO 5) Programmers should strive to eliminate all _____ scoped variables from their code in modules.
local and global
implicit
Correct!
global
local
Question 8
2 / 2 pts
(TCO 5) Variables that are not specifically used for user-input or to hold or display calculated values are referred to as _____ variables.
work
extemporaneous
unnamed
Correct!
intermediate
Question 9
2 / 2 pts
(TCO 5) When writing named constant identifiers it is a common convention to _____.
named constants do not have identifier names
use mixed case letters
Correct!
use only upper case letters
use only lower case letters
Question 10
2 / 2 pts
(TCO 5) Which VBScript statements below represent an acceptable definition for the subroutine displayResults( )?
Call displayResults( )
WScript.StdOut.WriteLine(“RESULTS“)
End Call
Function displayResults( )
WScript.StdOut.WriteLine(“RESULTS“)
End Function
Subroutine displayResults( )
WScript.StdOut.WriteLine(“RESULTS“)
End Subroutine
Correct!
Sub displayResults( )
WScript.StdOut.WriteLine(“RESULTS“)
End Sub
Quiz Score: 20 out of 20
[Show More]