ISC Class 11 – Computer Science – Revision work sheet – July 2025
Part 1- [10 marks]
Question 1
1)Assertion: Java supports the concept of multithreading.
Reason: Threads in Java can run concurrently by extending the String class.
Which one of the following options is correct?
(a) Both Assertion and Reason are true, and Reason is the correct explanation for Assertion.
(b) Both Assertion and Reason are true, but Reason is not the correct explanation for
Assertion.
(c) Assertion is true and Reason is false.
(d) Assertion is false and Reason is true.
2)Which of the following is not a valid access modifier in Java?
(a) public (b) private (c) protected (d) exported
3)Which of the following represents the default value of a boolean in Java?
(a) 0 (b) true (c) false (d) null
4)The .class file in Java is produced by:
(a) JVM (b) javac (c) java (d) JDK
5) Java is platform-independent because:
(a) It uses high-level syntax
(b) It has built-in libraries
(c) It runs on JVM
(d) It is open source
Question 2
1) Convert the following
(a) (255.75)₁₀ = ( ? )₂
(b) (765)₈ = ( ? )₁₆
2) Subtract these binary numbers using 1’s complement method: 110101 – 101011
3) Subtract these binary numbers using 2’s complement method: 100011 – 11011
4) Subtract (524)₈ from (721)₈
PART II – 25 MARKS
Answer all questions.
Question 3
a) Write a program in Java to accept a number and check whether it is an automorphic
number or not.
An automorphic number is a number whose square ends with the number itself.
For example, 5² = 25 → ends with 5 → Automorphic.
76² = 5776 → ends with 76 → Automorphic.
b) Design a class triangle with the following members:
Members:
ch – integer variable to accept user’s choice
r, c – looping variables
Member Methods:
void tri1() // to print pattern 1
void tri2() // to print pattern 2
Write the main function to display a menu and call the respective methods based on the
user’s choice through an object.
Question 4
Design a class specialNum with the following members:
Members:
ch – integer variable to accept user’s choice
r, c – looping variables
Member Methods:
void neon()
// A Neon number is a number where the sum of digits of square of the number is equal to
the number itself.
// Example: 9 → 9² = 81 → 8 + 1 = 9 → Neon
void palindrome()
// A Palindrome number is the same when read forwards and backwards.
// Example: 121, 1331
Write the main function to call the above methods through an object.
Question 5
Given below is a code snippet. Write the output for the various inputs (value =)
(a) 10 (b) 5
Explain the output in a sentence or two.
switch (value) {
case 10:
System.out.println("Perfect score!");
case 5:
System.out.println("Halfway there!");
case 0:
System.out.println("No score.");
break;
default:
System.out.println("Unknown score.");
}