Programming C++ MCQs for Programming competition
Programming C++ MCQs for Programming competition
1: What is true about the loop structure…
a) body of the loop
b) condition
c) loop control variable
d) all of these
2: ……. is not a loop structure…
a) while
b) do while
c) switch
d) for
3: Statements that is executed at least once in which satructure…
a) while
b) do while
c) for
d) none of these
4: Which of the following loop inside another loop is called…
a) bounded loop
b) nested loop
c) internal loop
d) inner loop
5: Statements can only be used inside the body of loop called…
a) if
b) break
c) countinue
d) switch
6: Which of the following option is exit due to library function exit()…
a) the function in which it occurs
b) the loop in which it occurs
c) the program in which it occurs
d) al of these
7: Specifires is used to access the member of the class outside the class are…
a) protected
b) private
c) public
d) noneĀ
8: Which of the following is true about the object of a class contains…
a) member function
b) data members
c) both a and b
d) none of these
9: Which of the following is characteristics of an object are called…
a) behaviours
b) methodsĀ
c) attributes
d) pointer
10:Which of the following is similar to a class…
a) pointer
b) srtructure
c) array
d) functions
11: Which of the following are designed as member function…
a) public
b) protected
c) private
d) all of these
12: Function of a class that have arguments and has no return data type…
a) overriden function
b) friend function
c) constructor
d) destructor
ProgrammingĀ C Plus Plus MCQs Homepage
- Low-level and high-level languages MCQs
- Procedural and non Procedural languages MCQs
- C++ STANDARD LIBRARY MCQs
- Ā ArrayĀ MCQsĀ
- Arrays MCQs 2
- Pointers Solved MCQs
- Inline Function MCQs ā C++
- Top 50 ProgrammingĀ C++ MCQsĀ
- MCQs of introduction to programming
- Past Papers 2022 C++ MCQs
- Past Papers 2021 C++ MCQs
- Past Papers 2020 C++ MCQs
- Past Papers 2019 C++ MCQs
- Highly Recommended C++Ā Important MCQs with Explanation
- OOP
- OOP intro & examples MCQs
- Classes and Inheritance MCQs
- Friend Function MCQs
- Virtual Function MCQs
- Polymorphism MCQs
- Polymorphism MCQs 2