Question 1 of 30
In a software development project, a team is tasked with creating a library for managing user accounts. The library must ensure that sensitive user information, such as passwords and personal details, is not directly accessible from outside the library. The team decides to implement encapsulation principles to achieve this. Which of the following strategies best exemplifies the concept of encapsulation in this context?
The library uses private variables to store user information and provides public methods to access and modify this information securely.
The library exposes all user information through public variables for easy access by other components.
The library uses global variables to store user information, allowing any part of the application to access it directly.
The library implements a logging mechanism that records all access to user information, regardless of the access method.

Preparing for CISCO 200-901 Developing Applications and Automating Workflows using Cisco Core Platforms (DEVASC)? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free