Advanced C Plus Plus MCQs

Advanced C Plus Plus MCQs

1: processor translates the source code into object code as a whole that is called…

A: assembler

B: linker

C: compiler

D: debugger

Answer - Click Here:
C

2: ……….. is a procedural language…

A: fortran

B: c

C: ada

D: all of these

Answer - Click Here:
D

3: bjarne srtoustrup developed…

A: c language

B: c++

C: basic

D: fortran

Answer - Click Here:
B

4: Between the angle brackets the name of ………. is given…

A: header file

B: functions

C: body

D: none of them

Answer - Click Here:
A

5: which of the following is true about  header file…

A: definitions of various constants

B: definitions of various data types

C: prototypes of standard library functions

D: All of the above

Answer - Click Here:
D

6: If a semicolon is not used at the end of the statement what message will be displayed by c++…

A: semicolon missing

B: terminator missing

C: error in statements

D: statement missing

Answer - Click Here:
D

7: Which of the following the linker creates a file with extension…

A: cpp

B: ccp

C: obj

D: exe

Answer - Click Here:
D

8: Used the term of running the program on the computer is…

A: compiling

B: loading

C: linking

D: executing

Answer - Click Here:
D

9: syntax error accur due to…

A: missing semicolon

B: incorrect spelling

C: missing any brace

D: program without declaring 

Answer - Click Here:
D

10: shortcut keys is used to compile and run the program in c++…

A: Alt+F9

B: Alt+F5

C: Ctrl+F9

D: F9

Answer - Click Here:
C

11: A compiler can detect wich type of error

A: logical error

B: runtime error

C: syntax error

D: all of these

Answer - Click Here:
C

12: which of the following operators can b categorized…

A: binary operators

B: unary operators

C: both a and b

D: none of these

Answer - Click Here:
C

Programming C Plus Plus MCQs Homepage

shamil memory table

Computer Science Repeated MCQs Book Download

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.