MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2023 PYQ

Q Write a method prototype name check() which takes an integer argument and returns a char:

Question ID
#23950
Subchapter
ICSE Computer Application - Class X - 2023 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A char check()
  • B void check (int x)
  • C check (int x)
  • D char check (int x)
Correct Answer: D

Explanation

char check (int x)

Reason — The prototype of a function is written in the given syntax:

return_type method_name(arguments)

Thus, the method has the prototype given below:

char check (int x)

Share This Question

Share this MCQ with your friends or study group.