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




31.The last statement in a value-returning function is always __
A. };
B. result expression;
C. return;
D. return expression;

32.One of the logical operators in the C language is represented by the symbol
A. AND
B. &&
C. >=
D. <=

33.Which of the following tells C++ to display numbers in fixed notation?
A. setiosflags(fixed)
B. setiosflags(fixed: :is)
C. setiosflags(ios, fixed)
D. setiosflags(ios::fixed)

34.The #include instruction is called a
A. direction
B. directive
C. merge instruction
D. statement.

35.Another drawback to returning an error code from a function is that any error code returned by the function
A. must be of the same type as return type of the function
B. must not be a character
C. cannot be checked in a main() program
D. can have multiple meanings

«»



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