Trending ▼   ResFinder  

ICSE Class X Prelims 2024 : Computer Applications

5 pages, 45 questions, 0 questions with responses, 0 total responses,    0    0
Tanmoy Pal
  
+Fave Message
 Home > ablazemsd7 >

Formatting page ...

SOUTH END SCHOOL X Affiliated to CISCE, New Delhi (ICSE) Affiliation No. WB420 Nalhati, Birbhum PRE-BOARD EXAMINATION YEAR 2023-24 Maximum Marks 100 Subject Computer Applications (Theory) Time - 2 Hours ______________________________________________________________________________________________ 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 [20] Choose the correct answers to the questions from the given options. (Do not copy the question, Write the correct answer only.) (i) Name the feature of Java depicted in the following picture. (a) Polymorphism (b) Inheritance (c) Encapsulation (d) Data Abstraction (ii) The new operator is used to allocate dynamic memory for: (a) Arrays (b) Objects (c) Primitive variables (d) Both a and b (iii) The term given to the non-graphic characters that control the way how data gets printed on an output device is: (a) Identifier (b) Unicode (c) Punctuators (d) Escape sequence (iv) Which operation will be performed at first in the statement ++i<=20; ? (a) Comparison (b) Increment (c) Both a and b (d) None of these (v) for(int x = -1; x<=5; x++); The above statement can be termed as: (a) Null loop (b) Empty loop (c) Body less loop (d) All of these (vi) The type of operators that is used to define a basic conditional expression is: (a) Relational (b) Logical (c) Ternary (d) All of these (vii) What will be the return data type and the result produced by the following statement ? Math.round(7.5f) + Math.rint(6.5); (a) int, 15 (b) long, 14 (c) double, 14.0 (d) float, 15.0f Page 1 of 5 (viii) Identify the error: System.out.println ((8 - 8) * 8 / 8 - 8); (a) Runtime (b) Syntax (c) Logical (d) No error (ix) Wrapper classes are part of ______ package. (a) java.io (b) java.awt (c) java.net (d) java.lang (x) Which of the following library functions returns a boolean type value ? 1. Character.isDigit() (a) 1 and 2 2. equals() (b) 2 and 3 3. nextBoolean() (c) 3 and 4 4. Character.isLowerCase() (d) All of these (xi) Reducing complexity, reusability and simple interface are the features of: (a) Methods (b) Classes (c) Packages (d) Java programs (xii) The number of bytes occupied by an array containing 5 characters is: (a) 80 (b) 40 (c) 10 (d) Undefined (xiii) The return data type of Math.abs() method is: (a) double (b) int (c) long (d) depends upon the data type of arguments (xiv) Predict the output: System.out.println("MACHINE".indexOf('m')); (a) 0 (b) 1 (xv) Assertion (A): Reason (R): (c) -1 (d) Syntax error No side effect occurs in pure functions. The attributes of the passed object remain unchanged. (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 true and Reason (R) is false (xvi) Go through the following text and choose the correct answer: A for loop allows more than one initialisation of variables as well as more than one variable updation. Initialisation in a for loop may be outside the loop block and updation may be used in the body of the loop. The updation of a loop control variable in a for loop can be done: (a) in its header (b) in its body (c) outside the loop (d) Both a and b (xvii) Assertion (A): Global variables of a class can be accessed from any method defined within the the same class. Reason (R): Global variables are declared explicitly within all methods of a class. (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 Page 2 of 5 (xviii) Which among the following access specifiers allows accessibility outside that package ? (a) public and private (b) public and protected (c) public and friendly (d) private and protected (xix) Identify the error message which displays, if the following statement is executed: byte x[4] = {2, 4, 7, -8}; (a) Insufficient cells (b) Array index out of bounds exception (c) Elements exceeding cells (d) None of these (xx) Given that int z[ ] [ ] = {{5, 7, 3}, {4, 8, 0}}; What will be the value of z[1][0] and z[0][2] ? (a) 4 and 3 (b) 5 and 5 (c) 3 and 0 (d) 4 and 7 Question 2 (i) Write a Java statement for the following mathematical expression: ( + )2 8 (ii) Evaluate the following expression when a = 1: [2] [2] a* = a-- + ++a + a ; (iii) Convert the following for loop into its equivalent do-while loop: [2] int r, s = 1; for (r = 5; r>1; r = r 3) s = s * r; (iv) Write down the purpose of this keyword. [2] (v) State two features of return statement. [2] (vi) Analyse the following iterative structure and answer the questions (show working): [2] int d = 150; while(true) { if(d<100) break; d = d - 10; } System.out.println(d); (a) How many times will the loop get executed ? (b) What will be the output ? (vii) Differentiate between switch-case and multiple if statements. [2] (viii) Mention the default initial value for the following data types: [2] (a) long (b) String (c) char (d) boolean (ix) Predict the output: [2] (a) "MACHINE".concat("LEARNING ).endsWith("ING"); (b) "TECHNOLOGY".charAt("ROBOTICS".lastIndexOf('O')); (x) Mention the return data type of the following library functions: [2] (a) trim() (b) length() Page 3 of 5 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 Design a class IncomeTax according to the following specifications: Class name [15] : IncomeTax Member variables / Data members: String pan - to store personal account number (PAN) of the employee String name - to store the name of the employee double income - to store the annual taxable income double tax - to store the calculated tax Member methods: void accept() - to input the PAN, name and annual income of the employee void calculate() - to compute the tax as per the given slabs: Total Annual Taxable Income Tax Rate Up to 1,00,000 Tax not applicable From 1,00,001 to 1,50,000 10% of the income exceeding 1,00,000 From 1,50,001 to 3,00,000 5000 + 20% of the income exceeding 1,50,000 From 3,00,001 to 5,00,000 20000 + 25% of the income exceeding 3,00,000 Above 5,00,000 30000 + 30% of the income exceeding 5,00,000 void show() - to display the details of the employee as per the following format: Name PAN Taxable Income Tax to be paid ******** ******** ******** ******** Now define a main() method to create an object and invoke the above member methods for obtaining the desired output. Page 4 of 5 Question 4 Write a program to accept a sentence in upper case and display only those words that begin with a vowel and end with a consonant. If no such word is found, display a relevant error message. Input: [15] THE AUTOCRATIC MONARCH OF THE DAY PERAMBULATES THROUGH THE WESTERN HORIZON Output: AUTOCRATIC OF Question 5 Write a program to accept some integers randomly in an array ar[ ] of size x. Now apply the technique of Bubble sort to arrange those numbers in descending order. Finally print the sorted array elements. [15] Question 6 Design a class to overload a method procedure() as follows: [15] void procedure(String str, char ch) : To check whether the character ch is present in string str or not. void procedure(int x, int y) : To print all even numbers from x to y (both inclusive) using continue statement. Question 7 Design a class to accept some integers in a matrix (double dimensional array) of size 3x3. Now, compute and print the sum of the elements present in the first row as well as the sum of the elements present in the last row. [15] Example: 3 5 2 If c[ ][ ] = 5 4 1 6 4 2 Then, the sum of elements present in first row: 3 + 5 + 2 = 10 And, the sum of elements present in last row: 6 + 4 + 2 = 12 Question 8 A Mersenne prime number is a prime number that can be written in the form 2n 1, where n>=2. Write a program to accept a number and verify whether it is a Mersenne prime number or not. Display the result with a proper message. [15] Example: 31 is a prime number and it can also be expressed as 25 1. So, 31 is a Mersenne prime number. ***END OF QUESTION PAPER*** Page 5 of 5

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (Dhirubhai Ambani International School (DAIS), Mumbai)
by khushdjogi 
ICSE Class X Prelims 2025 : Computer Applications (Karnataka ICSE Schools Association KISA, Bengaluru)
by varenya_s 
ICSE Class X Prelims 2025 : Computer Applications (St. Augustine's Day School, Kolkata)
by ankushkum 
ICSE Class X Prelims 2025 : Computer Applications (Vibgyor High School, Pune (NIBM Road)) : Preliminary
by saloni1989 

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

ablazemsd7 chat