Site icon T4Tutorials.com

C++ MCQs

Programming C Plus Plus MCQs Homepage

  1. Low-level and high-level languages MCQs
  2. Procedural and non Procedural languages MCQs
  3. C++ STANDARD LIBRARY MCQs
  4.  Array  MCQs 
  5. Arrays MCQs 2
  6. Pointers Solved MCQs
  7. Inline Function MCQs – C++
  8. Top 50 Programming  C++ MCQs 
  9. MCQs of introduction to programming
  10. Past Papers 2022 C++ MCQs
  11. Past Papers 2021 C++ MCQs
  12. Past Papers 2020 C++ MCQs
  13. Past Papers 2019 C++ MCQs
  14. Highly Recommended C++  Important MCQs with Explanation

C++ MCQs

1. : Which of the following is the not correct statement…

(A) char nm[] = “sundas”;


(B) char nm[15] = “asifa”;


(C) char nm = “sawera”;


(D) None of these



2. : Which of the following object of derived class can access in public inheritance…

(A) Public member of the base class


(B) Private members of the base class


(C) Public member of the base class


(D) Both A and B



3. : Stream class that is used to perform both input and output file operations is called…

(A) ofstream


(B) iostream


(C) fstream


(D) ifstream



4. : Machine language is the ………… language of computer…

(A) Fundamental


(B) Assembly


(C) Java


(D) Object-oriented



5. : The symbol of rectangle in a flowchart shows…

(A) Connector


(B) I/O


(C) Process


(D) Decision



6. : A process in which source code is translated into machine code is called…

(A) Linking


(B) Executing


(C) Loading


(D) Compiling



7. : What type of error will occur in the program when an incorrect mathematical formula is used…

(A) Syntax error


(B) Logical error


(C) Runtime error


(D) None of these



8. : cin is used to get ………. from the keyboard during execution…

(A) Input


(B) Output


(C) Value


(D) Clog



9. : ……….. operators are used to compare two values…

(A) Relational operator


(B) Unary operator


(C) Bitwise operator


(D) Ternary operator



10. : The statements of the program are executed one after the other in the order in which they are written…

(A) Repetition


(B) Sequential


(C) Selection


(D) None of these



11. : ………… is an unconditional control transfer statement…

(A) If-else


(B) Break


(C) Switch


(D) Goto



12. : The statement that can only be used inside the body of a loop is…

(A) If


(B) Break


(C) Continue


(D) Switch



 

 

shamil memory table

Computer Science Repeated MCQs Book Download

 

Exit mobile version