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