Trending ▼   ResFinder  

ICSE Class X Mid-term 2026 : Computer Science : Half yearly

4 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Sukanya Raychaudhuri
  
+Fave Message
 Home > sukanya5 >

Formatting page ...

SHATAVISHA PUBLIC SCHOOL HALF YEARLY EXAMINATION (2026) CLASS X COMPUTER APPLICATIONS Time: 0 2h r s Full Marks: 100 All working, including rough work, should be done on the same sheet as the rest of the answer. The intended marks for questions or parts of questions are given in brackets [ ]. ----------------------------------------------------------------------------------------------------------SECTION A (40 Marks ) Question1: Choose the correct one: [20x1=20] i) A mechanism where one class acquires the properties of another class; a)Polymorphism b)Inheritance c)Encapsulation d)Abstraction ii)JVM is an/a a)Interpreter b) Compiler c) Intermediate code d)High level language iii) The Scanner class method used to accept words with space: a) next() b) nextLine() c) next() d) sextString iv) The keyword used to call package in the program: a)Extends b)export c)import d)package v) System.out.printin((10!=0)?0:1) a)0 b)1 c) true d)false vi) Which type of error occurs when there is a division by a variable that contains a value zero? a)Runtime error b)Logical error c) Syntax error d)compile-time error vii) The number of bytes occupied by a character array of 10 elements. a)20 bytes b)60 bytes c)40 bytes d)120 bytes viii) The expression which uses >= operator is known as: a)relational b)logical c)arithmetic d)assignment ix) A sequence of statements enclosed between a pair of curly brackets is called a) a compound statement b) an empty statement c) a null statement d) a void statement x) double x= Math.ceil(2.4) + Math.pow(2,3) What will be the final value stored in the variable x? a) 11.0 b) 12.0 c) 13.0 d) 11.5 xi) 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 xii) State the type of loop in the given program segment: for (int i = 5; i != 0; i -= 2) System.out.println(i); a)finite b)infinite c)null d)fixed xiii) The number of values that a method can return is: a) O b) 1 d) 2 e)More than one xiv) What package is a part of the wrapper class which is imported by default into all Java programs? a. java.lang b. java.awt c. java.io d. java.util xv) What is the output of the Java program below?int num = 40; switch(num) { [1] Cl. - X (Comp.)(1/4) case 5: System.out.println("FIVE"); break; case 35 + 5: System.out.println("FORTY"); break; case 20 + 30: System.out.println("FIFTY"); } a) FIVE b)FORTY c)FIFTY d)Compile Error xvi) A physical education teacher asks the students to do the side stretch as shown below, 10 times. Which programming construct the teacher uses? a) if b) switch c) for d) if else if xvii) What will be the output of Math.pow(2, 0)? a) 0.0 b)1.0 c)2.0 d)-1.0 xviii) int x = (int)32.8; is an example of ________________ type casting. a) implicit. b) automatic c)explicit d) coercion xix) The method which changes the state of an object is known as: a)pure method b)impure method c) replace method d) none of above xx) Assertion (A): In Java, an array is a fixed-size data structure that stores elements of different data types. Reason (R): Arrays provide a contiguous block of memory to hold elements, and the size of an array is determined at the time of creation. Options: (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 true and Reason (R) is false. (d) Assertion (A) is false and Reason (R) is true. Question2: a)If int x[] = {4, 3, 7, 8, 9, 10};, what are the values of P and Q? i) P = x.length ii) Q = x[2] + x[5] * x[1] b) What are the types of casting shown by the following examples? i)char c = (char)120; ii) int x = 't'; c) Convert the following while loop to the corresponding for loop. int m = 5, n = 10; while (n >= 1){ System.out.println(m * n); n--;} d) Write the return type of following library functions: i) isLetterOrDigit(char) ii) replace(char,char); e)Give the output of the following program segment. How many times is the loop executed? for(x=10; x>20;x++) System.out.println(x); System.out.println(x*2); f) Form the java expression of [2] Cl. - X (Comp.)(2/4) [2] [2] [2] [2] [2] [2] (g) Convert the following switch case into if else if: [2] switch(x) { case 'T' : case 't' : System.out.print("Teacher"); break; default : System.out.print("Student"); } (h) John was asked to write a Java code to calculate the surface area of a cone, the following code was written [2] by him: Surface area of cone is A= rl l = + class area { double area (double r, double h) { double 1, a; a=22.0/7*r*l; l=Math.sqrt(r*r+h* h); return a; } } Specify the type of the error in the above program, correct and write the program to be error free. (i) Evaluate the expression when a=2: a+= a++ + ++a/3 + --a/2 +a (j) 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; [2] SECTION B (15Marks) Attempt any four questions from this Section. The answers in this section should consist of the program in Blue J environment with Java as the base. Each program should be written using Variable descriptions / Mnemonics Codes such that the logic of the program is clearly depicted. Flow-charts and Algorithms are not required. [4x15=60] Question 3: Design a class RailwayTicket with following description: Instance variables/data members: String name To store the name of the customer String coach To store the type of coach customer wants to travel long mobno To store customer s mobile number int amt To store basic amount of ticket int totalamt To store the amount to be paid after updating the original amount Member methods: void accept() To take input for name, coach, mobile number and amount. void update() To update the amount as per the coach selected (extra amount to be added in the amount as follows) Type of Coaches Amount First_AC 700 Second_AC 500 Third_AC 250 sleeper None void display() To display all details of a customer such as name, coach, total amount and mobile number. Write a main method to create an object of the class and call the above member methods. Question 4: Define a class to initialize the following data in an array. Search for a given character input by the user, using the Binary Search technique. Print Search successful if the character is found otherwise print Search is not successful . A , H , N , P , S , U , W , Y , Z , b , d Question 5: [3] Cl. - X (Comp.)(3/4) Define a class to accept values into a 3 3 array and check if it is a special array. An array is a special array if the sum of the even elements = sum of the odd elements. Example: 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 Question 6: Write a program to check Palindrome number: (A number is a Palindrome which when read in reverse order is same as in the right order) Example: 11, 101, 151 etc. Question 7: Create a class with the following methods: a. boolean is Armstrong(int n), which returns true if n is Armstrong number otherwise returns false. Armstrong numbers are those numbers, whose sum of the cube of its digits is equal to the number. Eg. 153 = 13 + 53 + 33 b. void call() to input n integers using scanner and find largest Armstrong number if any. Question 8: Define a class to overload the method display as follows: void display( ): To print the following format using nested loop 1 12 123 1234 12345 void display(int n): To print the square root of each digit of the given number. Example: n = 4329 Output 3.0 1.414213562 1.732050808 2.0 ------------ [4] Cl. - X (Comp.)(4/4)

Formatting page ...

Related ResPapers
ICSE Class X Mid-term 2026 : Computer Science : Half yearly
by sukanya5 
ICSE Class X Mid-term 2025 : Computer Science : Term Exam-1
by aayushnandi1729 
ICSE Class X Mid-term 2026 : Computer Science
by llllllllllll38 

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

sukanya5 chat