- (a)boolean
- (b)String
- (c)int
- (d)double
User-Defined Methods
Appeared in 10 of the 11 available papers.
Appears almost every year — treat as core
Average per paper it appears in · 154 marks in total
44% of this chapter's 32 questions
No diagram questions in this chapter
Question-type distribution
- MCQ14
- Program10
- Short answer6
- Difference2
Most frequent topics
Showing 25 of 32 matching questions (154 marks).
25 questions
Choose the correct answers to the questions from the given options. (Do not copy the questions, write only the correct answers.)
- (a)abstraction
- (b)inheritance
- (c)encapsulation
- (d)polymorphism
Choose the correct answers to the questions from the given options. (Do not copy the questions, write only the correct answers.)
- (a)void test(int a, int b) and void test(double a, double b)
- (b)void test(int a, double b) and void test(double a, int b)
- (c)void test(int a, double b) and void test(int a)
- (d)void test(int a) and int test(int a)
- (a)1, 2, 3, 4
- (b)3, 1, 4, 2
- (c)3, 1, 2, 4
- (d)1, 3, 2, 4
Choose the correct answers to the questions from the given options. (Do not copy the questions, write only the correct answers.)
- (a)Impure method
- (b)Pure method
- (c)Constructor
- (d)Destructor
- (a)Call by reference
- (b)Call by value
- (c)Call by method
- (d)Call by constructor
Choose the correct answers to the questions from the given options. (Do not copy the questions, write only the correct answers.)
- (a)char check()
- (b)void check(int x)
- (c)check(int x)
- (d)char check(int x)
- (a)1
- (b)2
- (c)3
- (d)4
- (a)Logical
- (b)Syntax
- (c)Runtime
- (d)No error
- (a)Impure method
- (b)Pure method
- (c)Primitive method
- (d)User defined method
Choose the correct answer:
- (a)Logical error
- (b)Syntax error
- (c)Runtime error
- (d)No error
Fill in the blanks with the correct options:
- (a)Actual parameters
- (b)Informal parameters
- (c)Formal parameters
- (d)Void parameters
Name the following:
- (a)public
- (b)static
- (c)void
- (d)abstract
A school is giving away merit certificates for the students who have scored 90 percentage and above in class 10. The following program is based on the specification given below. Fill in the blanks with appropriate Java statements. class name : Student Member variables: String name, double per, String cer Member methods: void input(), void merit(), void display(), void main() import java.(i) __________ .*; class Student { String name; double per; String cer; void input() { Scanner obj = new Scanner(System.in); System.out.println("Enter name, Percentage"); name = obj.next(); per = (ii) __________ } void merit() { if( (iii) __________ ) cer = "AWARDED"; else cer = (iv) __________ } void (v) __________ { System.out.println(name); System.out.println(per); System.out.println(cer); } void main() { Student s = new (vi) __________ s.input(); s.merit(); s.display(); } }
- (a)display()
- (b)Display()
- (c)Print()
- (d)DISPLAY()