Trending ▼   ResFinder  

ICSE Class X Sample / Model Paper 2026 : Computer Applications

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Tom Jason
Hebron English School, Bagdogra, Darjeeling
+Fave Message
 Home > jasontom546 >

Formatting page ...

SECTION A Answer all questions. Each question carries 1 mark. 1. Which of the following is NOT a wrapper class? (a) Integer (b) Boolean (c) Int (d) Character 2. What is the output of the expression: "12" + 3 ? (a) 123 (b) 15 (c) 36 (d) Error 3. Math.ceil(2.1) returns: (a) 3.0 (b) 3 (c) 2.1 (d) 2 4. Which keyword is used to inherit a class in Java? (a) extends (b) super (c) inherits (d) implements 5. The method substring(begin, end) returns characters: (a) from begin (inclusive) to end (exclusive) (b) with both begin and end inclusive from begin (exclusive) to end (inclusive) (d) with both begin and end exclusive (c) 6. "Java".equalsIgnoreCase("JAVA") returns: (a) false (b) JAVA (c) true (d) throws an Exception 7. Which access specifier allows access within the same package as well as by subclasses in other packages? (a) private (b) public (c) default (d) protected 8. The value of the expression '9' - '0' is: (a) '9' (b) 0 (c) 9 (d) Error 9. Which keyword is used to declare a class variable, shared by all objects of the class? (a) final (b) abstract (c) static (d) volatile 10. Which statement terminates a loop immediately? (a) exit (b) return (c) continue (d) break 11. "hello".startsWith("he") returns: (a) true (b) false (c) hello (d) he 12. The default value of an element of an int array is: (a) null (b) undefined (c) 0 (d) 0.0 13. The continue statement: (a) restarts the program from the beginning (b) skips the current iteration and proceeds with the next (c) stops the loop completely (d) has no effect 14. Character.getNumericValue('5') returns: (a) 5 (b) 53 (c) a char value (d) '5' 15. Which of the following primitive data types occupies the most memory? (a) int (b) long (c) double (d) float 16. System.exit(0) is used to: (a) terminate the JVM method only (b) do nothing (c) create a new object 17. "A".compareTo("B") returns: (a) a positive integer (b) a negative integer (c) zero (d) exit the current (d) throws an exception 18. Math.max(-5, -2) returns: (a) -5 (b) 5 (c) 0 (d) -2 19. Which is the correct way to declare an array capable of storing 5 integers? (a) int[] arr = new int[5]; (b) int arr[5]; (c) int arr(5); (d) both (a) and (b) 20. In Java, null is a: (a) an operator (b) a data type (c) a literal (d) a keyword SECTION B Attempt any five questions from this Section. Each question carries 15 marks. 1. Explain why Java is called a platform-independent language. 2. What is the use of the this keyword in Java? Give one example to illustrate its use. 3. Find the output of the following program segment: int a = 2, b = 3; a += b; b = a - b; a = a - b; System.out.println(a + "," + b); 4. State the value returned by the statement: "COMPUTER".compareTo("COMPARE") 5. Evaluate the following expression: Math.max(Math.min(5, 2), Math.abs(-3)) 6. Attempt either (a) or (b): (a) Find the output of the following statement: System.out.println(4 << 1); OR (b) Find the output of the following statement: "ABC".substring(1) + "C".substring(0) SECTION C Attempt any four questions from this Section. Each program should be written in Java. Each question carries 15 marks. 1. Write a program to accept an email ID from the user and validate whether it is a correctly formatted Gmail address. The email address must satisfy the following conditions: (a) It must contain the character '@'. (b) A non-empty username must appear before the '@' symbol. (c) The domain part must contain "gmail" followed by ".com", in that order, after the '@'. Display the message "Valid Email" if all conditions are satisfied, otherwise display "Invalid Email". 2. Design a menu-driven program using the switch-case statement to perform the following tasks: (a) Check whether a given number is prime. (b) Display the Fibonacci series up to N terms. For an incorrect choice, an appropriate error message should be displayed. 3. Write a program to accept a sentence from the user and convert every uppercase letter to lowercase and every lowercase letter to uppercase. Non-alphabetic characters must remain unchanged. 4. Write a program to accept a 3 x 3 matrix of integers. Compute and display the sum of each row and the sum of each column of the matrix. 5. Using the concept of function overloading, write a program with a method named area( ) to compute: (a) the area of a circle, given its radius, (b) the area of a rectangle, given its length and breadth, (c) the area of a triangle, given its base and height. Use appropriate overloaded methods with different parameter lists for each case. 6. Store the names of 5 countries and their corresponding capitals in two parallel single-dimensional arrays. Accept a country name from the user, search for it in the array, and display its corresponding capital. If the country is not found, display an appropriate message.

Formatting page ...

Related ResPapers
ICSE Class X Sample / Model Paper 2025 : Computer Applications
by saptarshi2009 
ICSE Class X Sample / Model Paper 2026 : Computer Applications
by jasontom546 
ICSE Class X Sample / Model Paper 2024 : Computer Applications : Computer Applications
by deepuaxn 
ICSE Class X Sample / Model Paper 2026 : Computer Applications
by dggter1 

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


© 2010 - 2026 ResPaper. Terms of ServiceContact Us Advertise with us

 

jasontom546 chat