Object Oriented Programming Using C++ - Section 6 Multiple Questions and Answers.




36.Recursive Functions
A. easier to code
B. executable faster than iterative ones
C. takes less main storage space
D. necessary to solve a certain class of problems

37.The purpose of a conditional operator is to
A. select one of the two values
B. select the highest of the two values
C. select one of the two values depending on a condition
D. select the more equal of the two values

38.Which of the following, if any, are valid names for variables?
A. amt.Sold
B. amt-Sold
C. amt_Sold
D. 98Sold

39.A class hierarchy
A. describes "is a kind of" relationships
B. describes "has a" relationships
C. shows the same relationships as an organization chart
D. shows the same relationships as a family tree

40.Which of the following C++ expressions is equivalent to the mathematical expression 53 ?
A. 5 ^ 3
B. cube(5)
C. pow (3, 5)
D. pow(5, 3)

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers