Comp 230- what name is best suited to a module that


Assignment

Question 1. Source code documentation includes _____.
program comments
print chart
syntax diagrams

Question 2. What name is best suited to a module that calculates overtime pay?
calcO( )
calculate overtime( )
cO( )
calculateOvertime( )

Question 3. If a subroutine or function is useful and well-written, you may want to use it more than once within a program or in other programs. This is known as _____.
reliability
abstraction
scalability
reusability

Question 4. Programs are easier to understand if you break their logic down into a few major code blocks called _____.
segments
directories
objects
modules

Question 5. Variables declared within a module have what scope?
Local
Global
Local and global
Nonvisibility

Question 6. In VBScript, variables defined in the main code sequence of a program have _____ scope?
local
global
local and global
nonvisible

Question 7. Which of the following would most likely be a named constant?
x
taxRate
isFinished
TAX_RATE

Question 8. In what way do named constants differ from variables?
There is no difference.
The value of a constant does not change.
Constants do not have identifier names.
Constants are not used in modern programming.

Question 9. When writing named constant identifiers it is a common convention to _____.
use mixed case letters
use only lower case letters
named constants do not have identifier names
use only upper case letters

Question 10. Which VBScript statements below represent an acceptable definition for the subroutine displayResults( )?
Sub displayResults( )
WScript.StdOut.WriteLine("RESULTS")
End Sub
Function displayResults( )
WScript.StdOut.WriteLine("RESULTS")
End Function
Subroutine displayResults( )
WScript.StdOut.WriteLine("RESULTS")
End Subroutine
Call displayResults( )
WScript.StdOut.WriteLine("RESULTS")

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Comp 230- what name is best suited to a module that
Reference No:- TGS02231963

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)