Revision Tour II
Appeared in 10 of the 11 available papers.
Appears almost every year — treat as core
Average per paper it appears in · 265 marks in total
42% of this chapter's 69 questions
2 questions carry a figure — practise drawing them
Question-type distribution
- MCQ29
- Program26
- Output10
- Difference3
- Definition1
Most frequent topics
Showing 25 of 69 matching questions (265 marks).
25 questions
Name the following:
- (a)continue
- (b)break
- (c)return
- (d)goto
Choose the odd one:
- (a)if else
- (b)if
- (c)switch case
- (d)while()
- (a)nextInt()
- (b)nextDouble()
- (c)nextString
- (d)next()
Give the output of the following:
- (a)123
- (b)1234
- (c)4
- (d)1
- (a)YES
- (b)NO
- (c)YESNO
- (d)NOYES
- (a)Google Meet
- (b)Any software
- (c)Google Meet Any software
- (d)WebEx
- (a)43210
- (b)54321
- (c)543210
- (d)4321
Given below is a class with the following specifications: class name : Number void Display(int n) - To extract and print each digit of the given number, from the last digit to the first digit, on separate lines. Example: n = 674 Output: 4 / 7 / 6 void Display() - To print numbers from 0.5 to 5.0 with an update of 0.5. Fill in the blanks of the given program with appropriate statements: class (i) __________ { void Display(int n) { while( (ii) __________ ) { int rem = (iii) __________ System.out.println(rem); n = (iv) __________ } } void Display() { for( (v) __________ ; x <= (vi) __________ ; x += 0.5) System.out.println(x); } }
- (a)n < 0
- (b)n > 0
- (c)n == 0
- (d)n = 0
- (a)double x = 0.5
- (b)Double x = 0.5
- (c)double x = 0.0
- (d)Double x = 0.0
- (a)x >= 5.0
- (b)x <= 5.0
- (c)x == 5.0
- (d)x = 5.0
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)obj.nextDouble();
- (b)nextDouble();
- (c)obj.nextFloat();
- (d)nextFloat()
- (a)per >= 90
- (b)per <= 90
- (c)per > 90
- (d)per == 90
The following program segment checks whether a number is an Abundant number or not. A number is said to be Abundant when the sum of its factors (excluding the number itself) is greater than the number. Example: factors of 12 are 1, 2, 3, 4, 6 and their sum is 16. Fill in the blanks with appropriate Java statements: void abundant(int n) { int s = 0; for( (i) __________ ; (ii) __________ ; i++) { if( (iii) __________ ) s = s + i; } if( (iv) __________ ) System.out.println("Abundant Number"); else System.out.println("Not Abundant Number"); }
- (a)int i = 1
- (b)int i = 0
- (c)int i = 2
- (d)Int i = 1
- (a)i <= n
- (b)i < n
- (c)i > n
- (d)i >= n
- (a)s < n
- (b)s > n
- (c)s == n
- (d)s = n