Question
Easy
Choose true statements about virtual functions in C++: I: The virtual functions must be member of some class. II: They cannot be static members. III: A virtual function can be a friend of another class.
1
I and II
2
II and III
3
I and III
4
I, II and III
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 option is (4): I, II and III are all true statements regarding virtual functions in C++. A virtual function is a C++ mechanism that enables runtime polymorphism, ensuring the correct overridden function is called based on the object's actual type, not the pointer or reference type. Statement I is true because the entire virtual mechanism relies on the inheritance structure of classes and…Read More
Similar Questions from HTET Exam - Level 3 - Year 2022
Question 1
Easy
Source :
HTET 2022
1000 of 8421 binary coding system is equal to 1011 in ........ binary coding.
Chapter :
Computer System & Hardware Fundamentals
Topic :
Encoding Schemes and Number System
Question 2
Easy
Source :
HTET 2022
In MS-PowerPoint-2007, size of a slide can be set to A4 size using which of the following options ?
Chapter :
Office Automation Tools
Topic :
Presentation Software (MS Power-Point)
Question 3
Easy
Source :
HTET 2022
In OSI model match the following: i. Physical layer - a. Dialog control & synchronization ii. Data link layer - b. Synchronization of bits iii.…
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 4
Easy
Source :
HTET 2022
In MS-PowerPoint function key F7 is used to.......
Chapter :
Office Automation Tools
Topic :
Presentation Software (MS Power-Point)