Question
Easy
Consider Column-I and Column-II in context of C++: Column-I - Column-II i. Private - a. Data type modifier ii. Sizeof - b. Visibility specifier iii. Static - c. Operator iv. Long - d. Storage class. Match of Column-I and Column-II is:
1
i-d, ii-c, iii-a, iv-b
2
i-c, ii-d, iii-b, iv-a
3
i-a, ii-d, iii-b, iv-c
4
i-b, ii-c, iii-d, iv-a
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: OOP Concepts
Correct Answer
Option D
Explanation
The correct option is (4): The correct matches establish the core function of each keyword or operator in C++. The term 'Private' (i) is a fundamental Object-Oriented Programming (OOP) concept, acting as a Visibility specifier (b) that controls access to class members, ensuring that they are only accessible from within the class itself. Next, 'Sizeof' (ii) is correctly identified as an Operator (c); specifically, it is a unary operator used…Read More
Similar Questions from HTET Exam - Level 3 - Year 2022
Question 1
Easy
Source :
HTET 2022
In context of 2-phase locking protocol in DBMS, a transaction issues lock requests in _______ phase and unlock requests in _______ phase.
Chapter :
Database Management System (DBMS) & SQL
Topic :
Database Concepts
Question 2
Easy
Source :
HTET 2022
In directed graph G(V, E) where $V=\{P,Q,R,S,T\}$ and $E=\{PQ, RS, TP, PS, QR, PT, ST, QP, RQ, TS\}$, the vertex with maximum in-degree is _______…
Chapter :
Data Structures (Through C++)
Topic :
Data Structure Concepts
Question 3
Easy
Source :
HTET 2022
Calculate number of page faults for reference string 3, 2, 4, 1, 3, 5, 2, 1, 7, 3, 0 considering four frames and eight pages…
Chapter :
Computer System & Hardware Fundamentals
Topic :
Memory
Question 4
Easy
Source :
HTET 2022
In context of semaphores choose the option with valid codes for wait() and signal() functions:
Chapter :
Operating Systems & Software Concepts
Topic :
MS Window