Trending ▼   ResFinder  

ICSE Class X Prelims 2025 : Computer Applications (St. Helens Secondary School, Darjeeling)

5 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Mithlesh Chowdhury
St. Helen's Secondary School, Darjeeling
1st to 10
+Fave Message
 Home > mith85 >   F Also featured on: School Page

Formatting page ...

ST. HELEN S SEC. SCHOOL FINAL TERM EXAMINATION 2025 COMPUTER APPLICATIONS Marks:100 Time: 2 hrs CLASS X Attempt All questions from section A and any four questions from section B SECTION A [40 marks] Choose the correct answers to the questions from the given options. (do not copy the questions, write the correct answer only) [20] Q1. (i) Name the package that contains wrapper classes: (a) Java.util (b) java.lang (c) java.io (d) java.wrap (ii) Which of the following is NOT a visibility mode used in the class? (a) Private (b) protected (c) public (d) static (iii) Which element is represented by a[10]? (a) 9th (b) 10th (c) 11th (d) none (iv) The number of bytes occupied by a character array of 10 elements. (a) 20 bytes (b) 60 bytes (c) 40 bytes (d) 120 bytes (v) When primitive data type is converted to a corresponding object of its class, it is called: (a) Boxing (b) Unboxing (c) explicit type conversion (d) implicit type conversion (vi) The output of Math.round(6.6) + Math.ceil(3.4) is: (a) 9.0 (b) 11.0 (c) 10.0 (d) 11 (vii) Constructor overloading follows which principle of Object Oriented programming? (a) Inheritance (b) Polymorphism (c) Abstraction (d) Encapsulation (viii) What is the return type of the x.concat(String str) method? (a) int (b) Boolean (c) String (d) char (ix) The number of bytes occupied by the constant 45 are: (a) four bytes (b) two bytes (c) eight bytes (d) one byte (x) do while loop is an (a) entry controlled loop (b) infinite loop (c) exit controlled loop (d) fixed loop (xi) Multiple branching statement of java is: (a) for (b) while (c) do while (d) switch (xii) A method with the same name as of the class and with arguments and no return data type is termed as:(a) parameterized constructor (c) non parameterized constructor (xiii) (b) (d) default constructor function overloading for(k=1;k<=2;k++) { for(m=1;m<=4;m++) { System.out.println(m*2); } } How many times the inner loop is executed? (a) 4 times (b) 8 times (c) 2 times (d) 16 times .pg2 CLASS X COMPUTER APPLICATIONS PG2 (xiv) The output of the method DETERMINATION .substring(2, 6) is: (a) TERM (b) Term (c) TERMI (d) term (xv) Name the type of error that occurs for the following statement: System.out.println(Math.sqrt(24 - 25)); (a) Syntax error (b) run time error (c) logical error (d) no error (xvi) The extension of java code files is(a) .js (b) .txt (c) .java (d) .class (xvii) Return data type of isLetter(char) is _______ (a) Boolean (c) void (b) boolean (d) char (xviii) The access modifier that gives least accessibility is(a) private (c) protected (xix) (b) public (d) package Assertion(A): In java statements written in lower case letter or upper case letter are treated as the same. Reason(R): Java is a case sensitive language. (a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A) (b) Both Assertion (A) and Reason (R) are true and Reason (R) is not acorrect explanation of Assertion(A) (c) Assertion (A) is true and Reason (R) is false (d) Assertion (A) is false and Reason (R) is true (xx) Assertion(A): call by value is known as pure method Reason(R): The original value of variable does not change as operation is performed on copied values. (a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A) (b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A) (c) Assertion (A) is false and Reason (R) is true (d) Assertion (A) is false and Reason (R) is true Q2. (i) [2x10=20] Evaluate the expression: Z + = a++ * --b ++a + --b; (ii) where a = 10, b = 5, Z = 10 Write java expression for: a 2 + b 2 2ab (iii) Rewrite the following using ternary operators: if( x > y ) c = A ; else c = a"; .pg3 CLASS X COMPUTER APPLICATIONS PG3 (iv) Rewrite the following for loop using while loopint s=0; for(int i=10;i>=0;i--) { s=s+i; } System.out.println(s) (v) What is the output of the following:String s= Competency ; System.out.println(s.substring(5,8)); System.out.println(s.charAt(2)==s.charAt(6)); (vi) Differentiate between a constructor and a method. (vii) Consider the following program and answer the questions given below: class sample { int a, b; sample(int x, int y) { a = x; b = y; } void calculate() { int z=a+b; System.out.println(z); } } (a) Name the instance variables. (b) What is the method variables? (viii) How many times will the following loop execute? What value will be returned? int x= 2, y=50; do { ++x; y- =x++; } while(x<=10); return y; (ix) Sam executes the following program segment and the answer displayed is zero irrespective of any non zero values are given. Name the error. How the program can be modified to get the correct answer? void triangle(double b, double h) { double a; a= 1/2 *b*h; System.out.println( area= +a); } (x) What is meant by base class? SECTION B(60 Marks) Attempt any four questions from this section. The answer in this section should consist of the program in either BlueJ environment or any program environment with Java as the base. Each program should be written using Variable description / Mnemonic Codes such that the logic of the program is clearly depicted pg4/- CLASS X COMPUTER APPLICATIONS PG4 Q3. Anshul transport company charges for the parcels of its customers as per the following specifications given below: Class name: Atransport Member variables: String name to store the name of the customer int w to store the weight of the parcel in Kg int charge to store the charge of the parcel Member functions: void accept ( ) to accept the name of the customer, weight of the parcel from the user (using Scanner class) void calculate ( ) to calculate the charge as per the weight of the parcel as per the following criteria: Weight in Kg Charge per Kg Upto 10 Kgs Rs.25 per Kg Next 20 Kgs Rs.20 per Kg Above 30 Kgs Rs.10 per Kg A surcharge of 5% is charged on the bill. void print ( ) to print the name of the customer, weight of the parcel, total bill inclusive of surcharge in a tabular form in the following format: Name Weight Bill amount ------- ------- ------------Define a class with the above-mentioned specifications, create the main method, create an object and invoke the member methods. [15] Q4. Define a class to accept names of your friends in an array of size 10. Sort them in an alphabetical order using bubble sort technique. Display the sorted array. [15] Q5. Design a class overloading a function display( ) as follows:[15] (i) void display() to print the following pattern using nested loop @@@@@ @@@@ @@@ @@ @ (ii) int display(int A, int B) with two integer arguments (A and B) calculate and return sum of all the even numbers in the range of A and B. Sample input: A=4 and B=16 Sample output: sum = 4 + 6 + 8 + 10 + 12 + 14 + 16 (iii) void display(int num, int d) to count and display the frequency of a digit in a number. Example: num = 2565685 d=5 Frequency of digit 5 = 3 Q6. Write a program to input a sentence and convert it into uppercase and display each word in a separate line. Example: Input: India is my country Output: INDIA IS MY COUNTRY pg5 CLASS X COMPUTER APPLICATIONS PG5 Q7. Write a menu driven program (switch case) to do the following: 1. To check whether the number input by the user is an Armstrong number or not. A number is Armstrong if the sum of the cube of its digit is equal to the number itself. Eg: Sample input: 371 (33 +73 +13) = 371 Sample output: the number is Armstrong. 2. To find the sum of the following series: 1 1 1 1 S= 2 + 3 + 4 + . . + 10 Q8. Define a class to accept values in a 3x3 array and check if it is a special array. An array is a special array if the sum of even elements is equal to the sum of odd elements. [15] Eg: A[][] ={{4,5,6},{5,3,2},{4,2,5}}; Sum of even elements = 4+6+2+4+2=18 Sum of odd elements = 5+5+3+5 =18

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2026 : Computer Applications (St. Clares School, Lokai, Koderma) : PreBoard
by skeklavya 
ICSE Class X Prelims 2026 : Computer Applications (Hiranandani Foundation School (HFS), Thane) Prelim 2
by kmmmm 
ICSE Class X Prelims 2025 : Computer Applications (Gopal Sharma International School (GSIS), Mumbai)
by abhigyan1510 
ICSE Class X Prelims 2026 : Computer Applications (St. Joseph's Academy, Dehradun)
by doondentist 

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

mith85 chat