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




1.Variables that are declared in a block are known as _____ variables to that block
A. confined
B. local
C. global
D. immediate

2.The pow and sqrt functions return a(n) _____ type number
A. double
B. float
C. integer
D. long

3.Declaring variables is advantageous because it
A. avoids errors from misspelled variable names {b) helps the linker work efficiently
B. simplifies the writing of very short programs
C. All of the above
D. None of the above

4.The generic name used for unexpected errors that occur during the execution of a program is
A. infractions
B. exceptions
C. déviations
D. anomalies

5.The switch variable can be of
A. int type only
B. char type only
C. both int as well as char type
D. float type only

»



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