What is the type of parameter to be given for the method parseInt()?

ICSE Class 10 Computer Applications PYQ · 2026 Paper · Section A

1(xiii)1 Mark · 2026 · Section A · 2026 Paper

What is the type of parameter to be given for the method parseInt()?

Show SolutionHide Solution↓

String

Reason — The method Integer.parseInt() is used to convert a numeric value given in String form into an integer. Therefore, it requires a String parameter as input, not double, char, or int.

← Previous questionNext question →

Browse the free Computer Applications sample bank