ExamGecko
Question list
Search
Search

Question 354 - FC0-U61 discussion

Report
Export

A programmer creates an object to retrieve customer names from a database. Which of the following best describes the object that is retrieving the names?

A.
Variable
Answers
A.
Variable
B.
Attribute
Answers
B.
Attribute
C.
Method
Answers
C.
Method
D.
Looping
Answers
D.
Looping
Suggested answer: C

Explanation:

In object-oriented programming (OOP), a method is a function associated with an object and is used to perform operations on that object. When a programmer creates an object to retrieve customer names from a database, the operation that retrieves the names is typically encapsulated in a method. This method might be called something like getCustomerNames() and is responsible for querying the database and returning the results.

Reference: Basic concepts of OOP, including objects and methods, are foundational topics in programming and are discussed in CompTIA IT Fundamentals and other programming guides.

asked 02/10/2024
David Wilson
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first