- A void
- B null
- C str
- D return
- Share this MCQ
Answer:
A
Share this MCQ
Justification:
- The void keyword is used before a method name to indicate that the given method does not return a value.
- The null keyword is not used for specifying whether a method returns a value or not.
- Placing the “str” keyword before the method name implies that it will be returning a value of type string.
- Return is not a valid keyword to be used before a method.
Related Lesson: Create a Base Class
Click me to Read more Question & Answer of Module 12: X++ OverviewShare this MCQ