Single Choice Easy

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

ID: #23950 ICSE Computer Application - Class X - 2023 PYQ 107 views
Question Info
#23950Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2023 PYQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

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

Challenge a friend or share with your study group.