exam questions

Exam FC0-U61 All Questions

View all questions & answers for the FC0-U61 exam

Exam FC0-U61 topic 1 question 132 discussion

Actual exam question from CompTIA's FC0-U61
Question #: 132
Topic #: 1
[All FC0-U61 Questions]

When developing a game, a developer creates a boss object that has the ability to jump. Which of the following programming concepts does jump represent?

  • A. Method
  • B. Object
  • C. Property
  • D. Attribute
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lexxone
2 months ago
Selected Answer: A
A. Method – In object-oriented programming, a method represents a function or behavior that an object can perform. In this case, "jump" is an action that the boss object can execute, making it a method.
upvoted 1 times
...
yanis88
9 months ago
Selected Answer: D
I went for D attribute cos my thinking was that the jump could be a method/function or a class saved in an object attribute something like: boss.jump = Extras.Jump()
upvoted 2 times
...
billybobjoe_
1 year, 1 month ago
Selected Answer: A
METHOD
upvoted 1 times
...
omarcoming
1 year, 1 month ago
method man
upvoted 1 times
...
Amycert
1 year, 4 months ago
Selected Answer: A
jumping would be a method
upvoted 1 times
...
[Removed]
2 years ago
Selected Answer: A
A method of an object is almost like a function to perform an action on it. Dion79's ChangeAddress example is on point. In the situation described in the question, the "jump" action would possibly look like BigBadDragon.jump() Definitely a method.
upvoted 4 times
...
Dion79
2 years, 6 months ago
Properties represent an alternative way of accessing a field publicly. Using a method might be regarded as quite a "heavyweight" means of doing this, so properties allow external code to ask the object to show or change the value of one of its fields. I'd go with Method as well. Seems that provided answer might be wrong.
upvoted 2 times
...
Dion79
2 years, 6 months ago
Object-Oriented Programming (OOP) is a popular way of designing code. Objects can have attributes (fields), properties, and methods: Attributes are values and data types that define the object. The attributes are stored within the object as fields or private variables. Other programs cannot access or change the fields directly. They must call a particular method (see below) to do that. Methods define what you can do to an object. For example, a Customer object might have a ChangeAddress method. When another part of the program calls the ChangeAddress method, it also passes a string (hopefully containing a well-formatted address) to the object because that is what the method expects. The object's code receives this string, checks that it can be used as a valid address, and updates its Address field. The object might then have another method (PrintAddress) allowing another part of the program to find out what the current value of the Address field is.
upvoted 1 times
...
FaisalJ
2 years, 9 months ago
it should be method!!
upvoted 2 times
...
luicosta
3 years, 1 month ago
it should be a method instead
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago