ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: 4cfd9571
The member access operator . (dot operator) connects:
The member access operator . (dot operator) connects:
Multiple Choice Options
- A
Class member and class definition
- B
Class object and a class namespace
- C
Class and member of that class
- D✓ Correct Option
Class object and a member of that class
Detailed Technical Solution & Explanation
The dot operator (.) is the direct member selection operator in C++ and Java. It is used to access an instance member (field or method) through an instantiated object of that class (object.member).
Option Analysis:
•
Option A (Class member and class definition): Syntactically invalid.
•
Option B (Namespaces use
): :, not ..•
Option C (Accessing members via class type requires
): : for static members.•
Option D (Class object and a member of that class): Correct. Directly links the object instance to its member variable or method.
Reference: Mock Test 01NEC Licensure Syllabus