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




36.The following statement where T is true and F is false T&&T||F&&T
A. is true
B. is false
C. is wrong
D. not applicable in C language

37.Which of the following statements declares a variable that can contain a decimal number?
A. dec payRate;
B. dec hourlyPay
C. float payRate
D. float hourlyPay;

38.The statement int num[2][3]={ {1,2}, {3,4}, {5, 6} };
A. assigns a value 2 to num[1][2]
B. assigns a value 4 to num[1][2]
C. gives an error message
D. assigns a value 3 to num[1][2]

39.The standard input stream, which refers to the keyboard, is called
A. cin
B. cout
C. stin
D. stout

40.If the code and fee arrays are parallel, the fee that corresponds to the code stored in the code[3] element is located in the _____ element
A. code[2]
B. code[3]
C. fee[2]
D. fee[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