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




41.Access specifiers are followed by
A. a comma
B. a semicolon
C. a colon
D. two colons

42.Elements in an array are identified by a unique _____
A. data type
B. order
C. subscript
D. symbol

43.To include the double quotes as part of the control string we use the symbol
A. %"
B. ""
C. "",#,C D,A C++ statement must end in a,: (column),
D. (comma)"

44.Student senior(); is a(n)_________
A. constructor call with no arguments
B. object instantiation
C. constructor call with all default arguments
D. prototype for a function that returns a student object

45.The statement int n[4] = {11, -13, 17, 105};
A. assigns the value -13 to [2]
B. assigns the value 17 to n[2]
C. is wrong; it gives an error message
D. assigns the value 18 to n[2]

«



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