Trending ▼   ResFinder  

ICSE Class X Sample / Model Paper 2026 : Computer Applications : Half yearly exam

9 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Shivanshu Gupta
  
+Fave Message
 Home > shivanshu_cs1 >

Formatting page ...

HALFYEARLY EXAMINATION X ICSE 2025-26 COMPUTER APPLICATIONS Maximum Marks: 100 Time allowed 2 hours Answers to this paper must be written on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. This paper is divided into two sections. Attempt all questions from Section A and any four questions from Section B. The intended marks for questions or parts of questions are given in brackets [ ]. SECTION A (40 Marks) (Attempt all questions from this section) Question 1. (20x1=20) Choose the correct answer to the questions from the given options. 1. What is the type of error, if any, when two methods have the same method signature? (a) Runtime error (b) Logical error (c) Syntax error (d) No error 2. The advantage/s of user-defined methods are/is (i) Reusability (ii) Complexity (iii) Modularity (a) Only (i) (b) (ii) and (iiii) (c) Only (iiii) (d) (i) and (iii ) 3. Parameters which receive the values from the called method are termed as ___parameters. (a) actual (b) formal (c) reference (d) class 4 .Consider the above picture and choose the correct statement from the following: (a) Polygon is the object and the pictures are classes. (b) Both polygon and pictures are classes. (c) Polygon is the class and the pictures are objects. (d) Both polygon and the pictures are objects. 5. Which of the following is a valid method prototype? (a) public int perform (int a;int b) (b) public perform (int a, int b) (c) public int perform (int a, int b) (d) public perform int (int a, int b) 6. Which of the following is the CORRECT statement to invoke the method with the prototype int display(int a, char ch)? (a) int m = display( A , 45); (b) int m = display( ); (c) int m = display(A,45); (d) int m = display(45, A ); 7. Which of the following is the CORRECT java statement to convert the word RESPECT to lowercase? (a) RESPECT . tolowercase( ); (b) RESPECT .toLowerCase( ); (c) toLowerCase( RESPECT ); (d) String. toLowerCase( RESPECT ); 8. Conversion of a wrapper class to its corresponding primitive type is known as : (a) unboxing (b) autoboxing (c) type casting (d) parsing 9. What is the type of looping statement depicted in the above picture?) (a) Entry controlled loop (b) Exit controlled loop (c) Multiple branching statement (d) All the above. 10. Name the data types in order from top, given in the above picture. (a) int, char, double, String (b) String, int, char, double (c) char, double, int, String (d) int, double, char, String 11. Predict the output of the following code snippet: String P = 20 ,Q = 22 . int a = Integer.parseIntP); int b = Integer.valueOf(Q); System.out.println(a + + b); (a) 20 (b) 20 22 (c) 2220 (d) 22 12. The output of the function COMPOSITION .substring (3, 6): (a) POSI (b) POS (c) MPO (d) MPOS 13. Consider the following program segment and select the output of the same when n = 10: switch(n) { case 10: System.out.print(n*2); case 4: System.out.print(n*4); break; default: System.out.print(n); } (a) 20 40 (b) 10 4 (c) 20, 40 (d) 10 10 14. A method which does not modify the value of variables is termed as: (a) Impure method (b) Pure method (c) Prim itive method (d) User defined method 15. The code obtained after compilation is known as: (a) source code (b) object code (c) machine code (d) java byte code 16. Method which is a part of a class rather than an instance of the class is termed as: a) Static method (b) Non static method (c) Wrapper class (d) String method 17. The AMB hotel gives the amount to be paid by the customer as an integer, which of the following Math method rounds off the bill in decimals to an integer? (a) Math.round() (b) Math.pow() (c) Math.ceil() (d) Math.abs() 18. Assertion: A class can have multiple constructors Reason: Multiple constructors are defined with same set of arguments (a) Assertion is true, Reason is false. (b) Both assertion and Reason are false (c) Both assertion and Reason are true (d) Assertion is false, Reason is true. 19. The output of the statement Math.ceil. (89.9) + Math.floor(90.5) (a) 0.0 (b) 180 (c) 180.0 is: (d) 180.4 20. The output of the statement of TIGER . indexOf( G ) is: (a) 3 (b) 2 (c) -1 (d) 0 Question 2 [2x10=20] 1. Write Java expression for: 2. Rewrite the following do while program segment using for: x = 10; y = 20; do{ x++; y++; }while(x<= 20); System.out.println(x * y); 3. Rewrite the following code using single if statement. if(code == 'g') System.out.println("GREEN"); else if(code == 'G') System.out.println("GREEN") if(code == 'g' || code == 'G') System.out.println("GREEN"); 4. Evaluate the given expression when the value of a = 2 and b = 3. b *= a++ ++b + ++a; System.out.println( a = + a); System.out.println( b = + b); 5. A student executes the following program segment and gets an error. Identify the statement which has an error. Correct the same to get the output as WIN. boolean x = true; switch(x){ case 1: System.out.println("WIN"); break; case 2: System.out.println("LOOSE"); } 6. A student is trying to convert the string present in x to a numerical value, so that he can find the square root of the converted value. However, the code has an error. Name the error (syntax/logical/runtime). Correct the code so that it compiles and runs correctly. String x = "25"; int y = Double.parseDouble(x); double r = Math.sqrt(y); System.out.println(r); 7. How many times will the following loop execute? Write the output of the code: int x = 10; while(true){ System.out.println(x++ * 2); if(x % 3 == 0) break;} 8. Write the output of the following String methods: String x = Galaxy , y = Games ; (a) System.out.println(x.charAt(0) == y.charAt(0)); (b) System.out.println(x.compareTo(y)); 9. Predict the output of the following code snippet: char ch = 'B'; char chr = Character.toLowerCase(ch); int n = (int)chr - 10; System.out.println((char)n + "\t" + chr); 10. Consider the following program segment and answer the questions below: class calculate{ int a; double b; calculate(){ a = 0; b = 0.0; } calculate(int x, double y){ a = x; b = y; } void sum(){ System.out.println(a * b);}} Name the type of constructors used in the above program segment. Also name the instance variables and local variables. SECTION B (60 Marks) (Answer any four questions from this section) The answers in this section should consist of the programs in either BlueJ environment or any program environment with Java as the base. Each program should be written using variable description/mnemonic codes so that the logic of the program is clearly depicted. Flowcharts and algorithms are not required .Question 3.Define a class named CloudStorage with the following specifications: [15x4=60] member Variables: int acno stores the user's account number int space stores the amount of storage space in GB purchased by the user double bill stores the total price to be paid by the user. member methods: void accept() prompts the user to input their account number and storage space using Scanner class methods only. void calculate() calculates the bill total price based on the storage space purchased using the pricing table provided: Storage range Price per GB (Rs) First 15 GB 15 Next 15 GB 13 Above 30 GB 11 void display() displays the account number, storage space and bill to be paid. Write a main method to create an object of the class and invoke the methods of the class with respect to the object. Question 4 . An Abundant number is a number for which the sum of its proper factors is greater than the number itself. Write a program to input a number and check and print whether it is an Abundant number or not. Example: Consider the number 12. Factors of 12 = 1, 2, 3, 4, 6 Sum of factors = 1 + 2 + 3 + 4 + 6 = 16 As 16>12 so 12 is an Abundant number. Question 5 Define a class to overload the function print as follows: void print() to print the following format void print(int n) 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 to check whether the number is a lead number. A lead number is the one whose sum of even digits are equal to sum of odd digits. e.g. 3669 odd digits sum = 3 + 9 = 12 even digits sum = 6 + 6 = 12 3669 is a lead number Question 6. Define a class to accept a String and print the number of digits, alphabets and special characters in the string. Example: S = KAPILDEV@83 Output: Number of digits 2 Number of Alphabets 8 Number of Special characters 1 Question 7. Define a class to accept a String and Print if it is a Super string or not. A String is Super if the number of uppercase letters are equal to the number of lower case letters. [Use Character & String methods only] Example: "COmmlTmeNt" Number of Uppercase letters 5 Number of Lowercase letters 5 String is a Super String .Question 8. The International Standard Book Number (ISBN) is a unique numeric book identifier which is printed on every book. The ISBN is based upon a 10-digit code. The ISBN is legal if: 1 digit1 + 2 digit2 + 3 digit3 + 4 digit4 + 5 digit5 + 6 digit6 + 7 digit7 + 8 digit8 + 9 digit9 + 10 digit10 is divisible by 11. Example: For an ISBN 1401601499 Sum = 1 1 + 2 4 + 3 0 + 4 1 + 5 6 + 6 0 + 7 1 + 8 4 + 9 9 + 10 9 = 253 which is divisible by 11. Write a program to: Input the ISBN code as a 10-digit integer.If the ISBN is not a 10-digit integer, output the message "Illegal ISBN" and terminate the program.If the number is divisible by 11, output the message "Legal ISBN". If the sum is not divisible by 11, output the message "Illegal ISBN".

Formatting page ...

Related ResPapers
ICSE Class X Sample / Model Paper 2026 : Computer Applications
by soniafernando 
ICSE Class X Sample / Model Paper 2025 : Computer Applications
by saptarshi2009 
ICSE Class X Sample / Model Paper 2026 : Computer Applications
by soniafernando 
ICSE Class X Sample / Model Paper 2024 : Computer Applications
by sudhajsam 

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

shivanshu_cs1 chat