Computer Science - Object Oriented Programming Using C++

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

27. 

In the expression p --> val,p is a(n)

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

28. 

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

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.