Object Oriented Programming Using C++ – Section 11

26. Variables that are known only to the function in which they are declared are called _____ variables

A. global
B. local
C. main
D. separate
E. void

Correct Answer:  B. local
Advertisement

27. In the expression p –> val,p is a(n)

A. address
B. pointer
C. structure
D. header

Correct Answer:  B. pointer
Advertisement

28. In a template function, _____ argument is generic, or parameterized

A. no
B. exactly one
C. at least one
D. more than one

Correct Answer:  C. at least one
Advertisement

29. Object-oriented programmers primarily focus on _________

A. procedures to be performed
B. the step-by-step statements needed to solve a problem
C. objects and the tasks that must be performed with those objects
D. the physical orientation of objects within a program

Correct Answer:  C. objects and the tasks that must be performed with those objects
Advertisement

30. You define a structure type globally because

A. you save many lines of code by not rewriting an identical structure definition in each function that uses it
B. you will never change its definition
C. it is required in C++
D. all of the above

Correct Answer:  A. you save many lines of code by not rewriting an identical structure definition in each function that uses it
Advertisement

Leave A Comment?