Question
Easy
The keywords private, protected and public may appear _______ in the declaration of a class in C++.
1
in any order and any number of times
2
at the most one time and in any order
3
at the most one time and strictly in the order
4
any number of times but strictly in the order
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Class & Object in C++
Correct Answer
Option A
Explanation
The correct option is (1): In C++, the keywords private, protected, and public are known as access specifiers, and they are used to control the visibility and accessibility of a class's members (data and functions). A fundamental design feature of C++ is that these access specifiers are declarative region markers rather than fixed, singular settings. Consequently, you are permitted to use any of these keywords in any order within the…Read More
Similar Questions from HTET Exam - Level 3 - Year 2019
Question 1
Easy
Source :
HTET 2019
Which of the following is empty or void element in HTML?
Chapter :
Web Designing using HTML
Topic :
HTML Elements
Question 2
Easy
Source :
HTET 2019
In context of C++, consider following loop-statement: while(5) {cout <<"Hello";}
Hello will be displayed _______ time(s) by the above loop.
Chapter :
Object-Oriented Programming (C++)
Topic :
Programming in C++ Basics
Question 3
Easy
Source :
HTET 2019
In HTML Version 5 the ....... element is appropriate for marking up the titles of works of art, music, movies, books etc.
Chapter :
Web Designing using HTML
Topic :
HTML Basics
Question 4
Easy
Source :
HTET 2019
Consider a graph G of 8 vertices containing no self loop. If there is no more than one edge between any pair of vertices, maximum…
Chapter :
Data Structures (Through C++)
Topic :
Data Structure Concepts