Reference no: EM131436372
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")
What sorts of message about masculinity and femininity come
: Go to a local department store to gather data. Walk through the toddler clothing departments and take careful note of the differences in clothing available for boys and girls. The most obvious dissimilarity is that girls wear skirts and dresses an..
|
Distribution of weights in weighted moving average
: Explain the smoothing effect found in simple moving ave, weighted moving ave., exponential smoothing. Explain the similarity between alpha in exponential smoothing and the distribution of weights in a weighted moving average?
|
Amount of ammonia-based fertilizer
: 1. The number of people this planet can support is largely determined by the amount of ammonia-based fertilizer that can be produced. Without the ability to chemically manufacture ammonia, the world's population would be closer to 1/6 of its curre..
|
Construct the confidence interval
: Find the critical values necessary to construct a 95% confidence interval for the ratio of population variances.- Construct the confidence interval.
|
What name is suited to a module that calculates overtime pay
: COMP 230- What name is best suited to a module that calculates overtime pay? Programs are easier to understand if you break their logic down into a few major code blocks called _____.
|
Work is required in order to stop the mass
: A 30-kg mass is moving at a speed of 6.0 m/s. How much work is required in order to stop the mass?
|
What figure should appear in cash flow statement
: The relevant information from the financial statements of Pluto plc for last year is as follows
|
Curve of an object is an increasing straight line
: The velocity vs. time curve of an object is an increasing straight line. You observe that when the time is 1 second, the velocity is equal to 2 m/s, and when the time is 4 seconds, the velocity is 26 m/s. What is the acceleration of the object? (E..
|
How does vegetation allow greater infiltration
: SCI103 : How does the vegetation surface type affect the amount of runoff? Speculate why this happens.How does the smooth mountain rock surface type affect the amount of runoff? Speculate why this happens. How does the bare soil surface type affect t..
|