A) A global variable is accessible only to the main function.
B) A global variable is declared in the highest-level block in which it is used.
C) A global variable can have the same name as a variable that is declared locally within a function.
D) A global variable is the same as a named constant.
E) If a function contains a local variable with the same name as a global variable, the global variable's name takes precedence within the function.
Correct Answer
verified
Multiple Choice
A) main
B) stub
C) a driver
D) an overloaded function
Correct Answer
verified
Multiple Choice
A) header
B) prototype
C) argument
D) parameter
E) None of these
Correct Answer
verified
Multiple Choice
A) function call, function header
B) parameter, argument
C) argument, parameter
D) prototype, header
E) None of these
Correct Answer
verified
Multiple Choice
A) 5
B) 2
C) 7
D) getValue(x)
Correct Answer
verified
Multiple Choice
A) 2
0
2
B) 2
2
2
C) 0
0
0
D) 2
0
0
Correct Answer
verified
Multiple Choice
A) end
B) terminate
C) return
D) release
E) None of these
Correct Answer
verified
Multiple Choice
A) global
B) internal
C) static
D) dynamic
E) None of these
Correct Answer
verified
Multiple Choice
A) int
B) double
C) void
D) cannot tell from the prototype
Correct Answer
verified
Multiple Choice
A) 2
0
2
B) 2
2
2
C) 0
0
0
D) 2
0
0
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) computeValue(10)
B) computeValue(10) ;
C) void computeValue(10) ;
D) void computeValue(int x) ;
Correct Answer
verified
Multiple Choice
A) call
B) append
C) define
D) declare
E) None of these
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) persist
B) execute
C) communicate
D) change
E) None of these
Correct Answer
verified
Multiple Choice
A) infinite loop
B) variable
C) constant
D) function
E) decision
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) False
B) true
C) null
D) default
E) None of these
Correct Answer
verified
Multiple Choice
A) 1
B) 2
C) 3
D) cannot tell from the prototype
Correct Answer
verified
True/False
Correct Answer
verified
Showing 1 - 20 of 49
Related Exams