Identify the object property and method in the following Math-00505
This subjective question is related to the book/course
vu cs302 Digital Logic Design.
It can also be found in
vu cs302 Mid Term Solved Past Paper No. 5.
Question 1: Identify the object, property and method in the following:
Math.sin(45)
Math.PI
PI is the property of Math object
Sin() is the method of Math object
Math.sin(45)
Math.PI
Answer:
Math is the object in above casePI is the property of Math object
Sin() is the method of Math object