00:01
So we're given the question and asked us, which of the following would be the most appropriate way to invoke the predefined floor method found in the math class? and so to invoke this method, what you do is you would write something like math.
00:14
The class, the function is part of, the method is part of dot, and the function's name, which is floor.
00:23
So math, dot, floor, some value.
00:27
And so that's how you would invoke the predefined floor method that's found in the math class.
00:34
You'd write the name, dot, and then the method's name.
00:38
And so any choice that we're going to look at should have something like this.
00:43
And so let's look at the choices.
00:44
Choice a is looks like this.
00:50
Answer is equal to floor 87 .2.
00:57
And so that's not right because since it's part of a class you have to write the class's name and this choice does not do that so choice a is out choice b looks like this answer is equal to floor floor um oh sorry math dot floor math.
01:24
Dot floor 87 .2.
01:29
And so there's here.
01:32
And so this choice over here looks right because it's fault.
01:35
Remember we talked about how to invoke the method.
01:37
It has to look something like this.
01:39
Well, this over here looks exactly like this.
01:41
And you're just assigning that the return value from this method to this variable called the answer...