Question
Easy
In context of C++, consider the following statements: I: Static member function of a class can access only static data members of the class. II: A static data member of class is shared by all the objects of the class. The true statement(s) is/are:
1
Only I
2
Only II
3
Both I and II
4
Neither I Nor II
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: OOP Concepts
Correct Answer
Option C
Explanation
The correct option is (3): Both I and II The correct option is (3) because both statements accurately describe the behavior of static members in C++ classes. Statement II is the fundamental principle: a static data member is a class-level variable, meaning only a single copy of it exists, and this solitary copy is explicitly shared by every object instantiated from that class. This allows all objects to modify or…Read More
Similar Questions from HTET Exam - Level 3 - Year 2019
Question 1
Easy
Source :
HTET 2019
In context of error detection and correction in computer networks, CRC stands for:
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 2
Easy
Source :
HTET 2019
Which of the following specifies WLAN security standard?
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 3
Easy
Source :
HTET 2019
A network using CSMA/CD has a bandwidth 10 Mbps. If the maximum propagation time (including delays in the devices and ignoring the time needed to…
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 4
Easy
Source :
HTET 2019
In context of database, let T1 and T2 are two concurrent transactions. Consider the following sequence of operations on data X: T1: READ(X) T1: WRITE(X)…
Chapter :
Database Management System (DBMS) & SQL
Topic :
Database Concepts