Tuesday 21 May 2013

QUIZ 26-30 ANSWERS

26. 
_____ variables remain in memory until the program ends
Area
Global
Local
Reference
Value
Answer: Option B

27.
The outline or the definition of a function is called its
beta test
Forerunner
Outline
Prototype
Answer: Option D

28. 
Which of the following is false?
Data stored in an array can be accessed faster than data stored in a disk file
Data stored in an array needs to be entered only once, typically at the beginning of the program
Arrays allow the programmer to store information in the computer's internal memory
When using arrays, you will have fewer variable names to remember
None of the preceding statements are false
Answer: Option E

29. 
A function typically contains
the function header
the function braces
the return statement, if it's value- returning function
a display message
All of the above
Answer: Option E


30. 
A variable's _____ indicates which portions of the program can use the variable
Area
extent
Lifetime
reach
scope
Answer: Option E