0% found this document useful (0 votes)
26 views26 pages

ICSE Class 10th Computer

The document outlines the structure and instructions for the Second Pre-Board Examination 2023-24 for Class X (ICSE) in Computer Applications, including details on the exam format, sections, and types of questions. It consists of two sections: Section A, which requires answering all questions, and Section B, where students must attempt any four questions. The exam includes multiple-choice questions, programming-related queries, and theoretical questions on Java programming concepts.

Uploaded by

arnnavsingh13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
26 views26 pages

ICSE Class 10th Computer

The document outlines the structure and instructions for the Second Pre-Board Examination 2023-24 for Class X (ICSE) in Computer Applications, including details on the exam format, sections, and types of questions. It consists of two sections: Section A, which requires answering all questions, and Section B, where students must attempt any four questions. The exam includes multiple-choice questions, programming-related queries, and theoretical questions on Java programming concepts.

Uploaded by

arnnavsingh13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 26
THE SECOND PRE-BOARD EXAMINATION 2023-24 Class X (ICSE) COMPUTER APPLICATIONS ‘wo hours Maximum marks: 100 Instructions: * Answers to this paper must be written on the answer seript provided separately. All subsections of each question are to be answered in the correct order. All working including rough work should be done on the same sheet as the rest of the answer. 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 the paper is the time allowed for writing the answers. Please do not write anything on the question paper except your name and roll number. The intended marks for questions or parts of questions are given in brackets [ ]- Attempt all questions from Section A and any four questions from Section B. SECTION A [40 marks} (Attempt all questions from this section.) Question 1 Choose the correct answers to the questions from the given options. (Do not copy the questions, write the correct answer only.) @ [20] Send Money to ‘© Punjab National Bank State Bank of Indit ° © HDFC Bank © Unk New Bank Account Which structure of Java programming language is represented by the above picture? switch case (®) for loop (©) ifelse (@ method overloading (ii) Keyword that is used to create the object ofa class: (@) class () this er Tew @) final w-4 This paper consists of Eight printed pages, a (iii) Assertion (A): A constructor cannot be overloaded. Reason (R): A constructor gets executed automaticaly at the time of creation of object. ‘i (a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (b) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation of Assertion (A). (©) Assertion (A) is true and Reason (R) is false, Assertion (A) is false and Reason (R) is true. (iv) Which of the following method is NOT used to input an integer value? (a) nextLong( ) (b) nextByte( ) (©) nextInt() (a) next( ) (v) The value returned by the following statement will be: Math.max (40, Math.min (60, 55)); @) 40 OY 55 © 60 (@) will not return any value as the statement is incorrect. (vi) The type of error present in the program part given below: void check (int x) s { int remainder = x%2; switch (remainder) {case 0: System.out printin (“EVEN”); case 1: System.out.println (“ODD”); } ) (@) syntax error (b) runtime error (9 Togical error (d) does not have any error (vil) Choose the odd one out from among the followin; oS (a) for or it (©) while © do while w-4 Q) (ili) Keyword that is used to resolve the conflict between method parameter and instance Variable / fields when they have the same name? @ new (b) static (©) private rthis In the statement given below which part represents the constructor? ital mpu = new Digital( ); (a) Digital (b) mpu (©) new been (%) Which of the following access specifiers group allows accessibility outside the class? (x) X) private Y) protected Z) public (@) Zonly ey and Z only (c) X,Y andZ (d@) Xonly (xi) Only_____ data can be used in pass by value. (a) non-primitive (b) reference oF primitive (@) composite (xii) Which of the following could be the correct syntax to create a parameterized constructor of the class “construct”? (a) public construct () { } (b) public int construct (char ch) { } (eh public construct (char ch) { } (@) private char construct (char ch) { } (xiii) Which property best describes the following statement? Character ch =*A’; (a) implicit type conversion \ (oF autoboxing (©) explicit type conversion (@) unboxing (xiv) Which of the following represents the correct order of precedence (from higher to lower)? (@) &&, 2, >=, ++ NOH >=, le, 2 © %+h?s && (xv) Which of the following can be used to control the visibility ofthe parts of class? (a) class (&) object oovess specifiers (@ polymorphism ay @) ‘Turn over (xvi) In Java which of the following rey : dimensional array ant Jf 1 eee te fourth element ofthe second row ina two @ ania) 2) (b) arr[2) [4] peau] @ an(3) [1 (xvii) Assertion (A): For using string methods, using keyword import. Reason (R): class String default, (@) Both Assertion (A) and Reaso: explanation of Assertion (A), (©) Both Assertion (A) and Reas explanation of Assertion (A), package containing them is not imported is a part of java.util package which gets imported by nn (R) are true and Reason (R) is the correct *on (R) are true and Reason (R) is not a correct Assertion (A) is true and Reason (R) is false. (@) Assertion (A) is false and Reason (R) is true, Cxvill) Which of the following isthe correct order of type conversion in which no part of data value is lst? (a) byte — int > short — long — double (b) byte int > short > long + double — float (©) byte — short — int - float — long —> double Way byte — short — int + long + double (xix) Automatic conversion of an object ofa wrapper class t primitive data type is called (@) implicit type conversion (b) type promotion (c) autoboxing unboxing (xx) Read the following text and choose the correct answer: ‘When a method is declared, the first lin is known as method header or method prototype. This line contains the access specifier, return type, method name and list of parameters. Method signature is a part of method header containing only the name of the method along with the parameters list. What does a method prototype contain? (@) return type and method signature (b) function name and parameter list only (©) function signature, parameter list and method header ‘method name, list of parameters, access specifier and return type, w-4 (4) Question 2 (®__ Give one example for each of the following: (@) dynamic initialisation Qeatd : cae (©) explicit type conversion. cher ch: Cadr)(65) : 2] ; A ost pn =Cik) (14:38); (ii) Using a shorthand assignment operator write the equivalent expression for: a=a/1000; ws; Ge A/=100: e] (iii) What will be the output of the following program snippet? String str = “Lucknow”; int m= 100, n= 200; String result = m+n-+ str; System.out.printin(result); feos: Zoolucknow (2) (iv) Ify=9 and z =2 initially then what will be the value of ‘variable z after executing the following statement? Z= 2%C to « Clo+io)) Z += t+tys(yt+ +10); LE 10x 20>) 2) (¥) _ Write an example ofa non executable statement, {20° 21 Pro ann, Cornment (vi) Write the output of the following statement: System.out. printIn(Math.ce il (Math.pow(0.2, 3))); PR) Rw 10 (vii) void abe (char ch) | {__ String V = “aciouAEIOU”, int n= V.indexOf{ch); if(n>=0) System out printin(V.substring(5)); else System.out.printin( n * n); } Write the output of the above code when: (a) ch="e" Bs 2) AEIOUV (b) ch='S” b) 4h. 2 SSE eee w-4 @) Turn over (iti) Find the error(s) in the given program segment and re-write the statements correctly. It has been coded to assign 10 values to an integer array. int a= new int(10); wrk afl = neo itCis]; for (int i= 0;i<=10; i++); fori i 0; d< 05 44+) a i; a > gs i alil=4; e] (&) double sum (int x, int y) { return (double) (x +); } 2 FA void printSum(int a, int b) Void prustSim (arta, ide) { ot int x=sum(a+b); deal 2c= tum (asbd; System.out.println(x); routs pxt oD, ‘ goiter oot prt (209, Re-write the code for method printSum( ) after correcting the error(s) present init. [2] () How many bytes will be occupied by a boolean array of 20 elements? Q] 25 SECTION B [60 marks} Attempt any four questions from this Section. Question 3 Define a class waterBill in Java with the following specifications: Class : waterBill : Instance variables/data members: String name :stores the name of the customer _ int gallons # stores the number of gallons of water consumed double bill + stores the amount to be paid in a year. Member methods: void input() + accepts the name of the customer and the number of gallons of water consumed by a family in a year void calculate() _: calculates the bill as per the following: Water consumed in a year (in gallons) Atnount up to 18000 Rs 2000 above 18000 up to 40000 Rs 5000, above 40000 Rs 7000 A surcharge of 3% is charged on the bill amount ifthe water consumed is above 60000 gallons. w-4 (6) THE FIRST PRE-BOARD EXAMINATION 2023-24 Class X (ICSE) COMPUTER APPLICATIONS Time: Two hours Maximum marks: 100 Instructions: {Answers to this paper must be written on the answer seript ‘provided separately. ; All subsections of each question are to be answere ed in the correct order. All working including rough work should be done on the same sheet as the rest ofthe answer, You will not be allowed to write reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. Please do not write anything on the question paper except your name and roll number. The intended marks for questions or parts of questions are given in brackets [ ]. Attempt all questions from Section A and any four questions from Section B. during the first 15 minutes. This time is to be spent in SECTION A [40 marks] (Attempt all questions from this section.) Question 1 Choose the correct answers to the questions from the given options. (Do not copy the questions, write the correct answer only.) [20] (Name the feature of Java whose example is depicted in the above picture. (@) encapsulation (b) inheritance \ey abstraction (@) polymorphism (ii) Assertion (A); do-while loop is an exit controlled loop. Reason (R); As many statements can be written inside the loop body as required. (a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). \ (by Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation of Assertion (A). (©) Assertion (A) is true and Reason (R) is false. (@ Assertion (A) is false and Reason (R) is true. s-4 This paper consists of Fight printed pages. ‘Turn over (iil) _ Which of the following represents the constructor of the class ems? (@) cms () void cms( ) (c) class() Say ems ) a) aR ie (iv) Wea following is the correct order of data types in the increasing order of (@) short < boolean < float < long (b) long < float < short < boolean oS {alt= iyo; t+) 2] Write an example of an infinite loop. 1 Write the output of the following program snippet: String str = “EXPLANATIONS”; fant Systemout.printin(strsubstring(S, 1).indexomt‘a’)); '” System.out printha(str.lastIndexO4"N’)); lo 21 What will the following program part display? int af ]= (15, 2, 8, 100, 643; System.out.printin (Math pow (Math.cbrt (a(2)), aft); Ar8 no RI (viii) To print the sum of first ten whole numbers, Manisha has written the following code. Rewrite the code after removing errors from it. int sum Int sumso- / for (int i SA (St g=0; te 105 t++) t . sum=i; ae = dum +d; Seton nbn Somes 8 System.outprintin (“Sum=" + Sum); Systin rout, prin (Sums “b8uy) ) 3 p) (3) Turn over (ix) //loop to print the first 10 even numbers for (int { System.out printin(i); i=it+2; } 0; i++) fe Catt p22) des25; t2f42) *ssstin st. prt. (4); Are eur Name the type of error(s) present in the above code. Rewrite the code after correcting the errors. (x) int AL] = {2, 4, 6, 8}; (2,4, 6, 8}; int BL if(A B) Q) System.out printin (“Arrays are equal”); else System.out-printin (“Array A is NOT equal to array B”); What will be the output of the above code? 2) (rvs » Question 3 Arey Ai NoT equal 4 array 8 SECTION B [60 marks] Attempt any four questions from this Section. Design a class named buyLaptop with the following descriptions: Instance Variables / data members: stores the name of the customer String name long mob : stores the mobile number of the customer double cost : stores the cost of the laptop purchased double dis : stores the discount amount double amt : stores the amount to be paid after discount. Member methods: buyLaptop( ) +: default constructor to initialize data members void accept( ) + accepts the customer’s name, mobile number and cost of the laptop void caleulate() __: calculates the discount on the cost of laptop purchased based on the following criteria: s-4 (6) ‘Reeta” THE SECOND COMPARATIVE EXAMINATION 2023-24 Class X (ICSE) COMPUTER APPLICATIONS, Time: Two hours M. jum marks: 100 Instructions: Answers to this paper must be written on the answer script provided separately. All subsections of each question are to be answered in the correct order. All working including rough work should be done on the same sheet as the rest of the answer. 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 the paper is the time allowed for writing the answers. Please do not write anything on the question paper except your name and roll number. The intended marks for questions or parts of questions are given in brackets [ ]. Attempt all questions from Section A and any four questions from Section B. SECTION A [40 marks] (Attempt all questions from this section.) Question 1 Choose the correct answers to the questions from the given options. (Do not copy the questions, write the correct answer only.) (20) Class |5 () Which feature of Java is depicted in the above picture? (@) Polymorphism \oF Encapsulation (©) Inheritance (® Abstraction (i Which type of expression uses <= operator? relational (b) logical (©) arithmetic (@) assignment (ii) Ternary operator is a: (2) Logical operator (b) Arithmetic operator (©) Relational operator £47 Conditional operator Q-4 ‘This paper consists of Eight printed pages. Tarn eyes Gv) Assertion (A): In Java, statements written in lower case letters or in uppercase letters are treated same. Reason (R): Java is acase sensitive language. (@) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (©) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation of Assertion (A). (©) Assertion (A) is true and Reason (R) is false. {ay Assertion (A) is false and Reason (R) is trues (¥)_ What is the number of bytes occupied by array grade after executing the following? char grade[ ] = new char[20]; (a) 20 bytes e740 bytes (©) 60 bytes (© 80 bytes (vi) Which method of Scanner class is used to accept a float value? (a) next( ).float() oy hextFloat( ) (©) nextNum() (@) nextfloat() (vii) What will be the output of expression Math.round(4.4) + Math.ceil(6.2)? (a) 9.0 (b) 10.0 211.0 (d) 12.0 (viii) Which type of error is present in the following statement? System. out.printint(“Calculated”); (a) No error (b) Runtime error (©) Logical error \(@Syntax error (ix) Which among the following is used to access the last element of the array NUM[ ] having 10 elements? (a) NUM} or SUMED] (©) NUM[NUM.length] (@) NUM[NUM.length( )] (%) _ Read the following text and answer the question that follows: ‘Act of acquiring properties of a class by another class is known as inheritance. The class whose properties are inherited is known as base or super class and the class which acquires these properties is known as sub or derived class. ‘What is derived class? (a) Pre defined classes in Java (b) The class whose properties are inherited The class which acquires properties of another class (@) Wrapper classes are called derived classes Q-4 Q) (xi) Which keyword is used to refer to the current calling object? (@) new- (b) void Me this (a) static (xii) Assertion (A); int and float are primitive datatypes of Java Reason (R): default value of int is 0 and of float is 0.0f. (@) Assertion (A) is true but Reason (R) is false. (b) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (©) Assertion (A) is false but Reason (R) is true, Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A). (xiii) Consider the following code snippet in which Type represents the return type of the method convert( ), public Type convert(char ch) { byte x= 10; short y = 47; return (x + y+ ch); i Which among the following should replace Type so that function works correctly? (a) byte (b) char () int ay Short (xiv) Which of the following is the correct prototype of a function IsPrime( ) that receives a long type of argument and returns either true or false? (@) Boolean IsPrimelong x) (0) void isprime(long x) (©) boolean isPrime(long x) 9) Boolean IsPrime(long x) (xv) Which among the following is called first, automatically, whenever an object is created? (@) Class 0 Constructor (©) New (@) Trigger (xvi) Which of the following is a two-byte character code set capable of representing all the characters in all human languages around the world? (@) ASCII Code 007 Dricode (©) Source Code (@) Machine Code Q-4 @) Turn over Cavit) What will be the correct order of execution of these operators according to operator precedence? AC) B+ Cs D+ (®) A,D,C,B OYA, D, B,C © ABD,C @ D,ABC (xviii) Ifeonstructors are overloaded, what differentiates them? | Parameter List (©) Return type (© Access Specifier (@ Name of the constructor (xix) What will be the output of the following program? public class DayMonthDemo | ( | public static void main () | bs { int num = 69; int days = num % 30; int month = nunv30; System.out.printIn(month +“ Month and” + days +“ days”); 3 3 (@) 0 Month and 29 days (b) 0 Month and 69 days ef2 Month and 9 days - (@) 3 Month and 8 days ~ (@X)_ Which of the following fs the correct function cll statement forthe following prototype: uble termDeposit(int principal, double rate, int time) jouble A = termDeposit(65000, 75,10.0) double A = TermDeposit(65000, 7.5, 10.0); Actoot A Wart eGo) Concha a Ou rere Question 2 g pacha Ft rie sot 2. Mat 4 (@ Ifm= 10 then write the output of the aaa avesa! 2] System.out.print(++m = = m+? false rtrue); Ans! foe Gi) Write Java expression for the following: 2) LaF Meth . dap (atat cxe fat Math -pow(h, 13)) resid Gil) tint nt y= €1,3,3,4,5,9,5, 13, ie arin trea of fad y? 2] (@) x= Math.pow(n[4}], n(2)); 125-0 ©) y= Math sqrt(n(6] + nfs); 5-0 Gv) Write the function prototype for the function FIND( ) that takes two integer Variables as its arguments and returns a value of double data type. . heer dewlale Pind Cot or¥, (¥) How many times will the following loop execute? { — 3 5 sal a 4] Ya xtt; 450-3 [42 = 47-5/3S2 fay [eg 35-9] I= 26-7 } while(x'<= 10); Pens. Stine ioe (WD) Define constructor overloading. bee g ang Jhon, ore cormbuacton ah eaters (vii). Given that int abt 1 []= (43, 9, 12}, €4,8,24})5 "Qa, BEE Fo What will be the value of ab[1][0] and abf0y[27? A and 12- ] ii) Dit rc tual ters and formal parameters. ie ee pyneak aon Seyret tallied. teal cre, red oo Succtum Abbett (B)° Ifthe value of b = 1500, what will be'the value ofx after the following statement is 2] executed? x=b>1500 7.800 : 400; Crs? 400 & eae cose canbe dbhined Qo on aAhermediote cole m geranstca by the Computer ato - the compilation of Seog Source cod e- Byte code ertonrum 4 > clan Q-4 @) Turn over ' THE FIRST COMPARATIVE EXAMINATION 2023-24 Class X (ICSE) COMPUTER APPLICATIONS Fae tonar ‘Maximum marks: 100 {Answers to this paper must be written on the All subsections of each question are to be ans All working including rough work should be answer. You will not be allowed to writ reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. Please do not write anything on the question paper except your name and roll mumber The intended marks for questions or parts of questions are given in brackets [ Attempt all questions from Section A and any four questions from Section B. é ‘answer script provided separately iswered in the correct order. done on the same sheet as the rest of the fe during the first 15 minutes. This time is to be spent in SECTION A [40 marks] (Attempt all questions from this section.) Question 1 Choose the correct answer and write the correct option. Ro} () A mechanism in Java in which data and methods are combined together as one unit is. termed as: (a) Polymorphism \OFE Encapsulation . (©) Inheritance (@) Abstraction (ii) Character literals in Java are enclosed within a pair of: Single quotes (b) Square brackets (©) Double quotes @ Curly brackets (iii) Example of an operator that can be used to combine two or more relational expression forming complex decision making construct is: @= NOT && ©) % @ + i Ie as a constant is: (iv) Keyword that declares a variabl ; (a) finally OY final (©) public (@) constant (v) Scanner class belongs to which of the following package? (a) java.io (b) javanet (OY java.util (A) java.awt as This paper consists of Six printed pages. Turn over wi) es {ill be the output ofthe expression Math.ceil(S.6) + Math.pow(3, 2)? (b) 13.0 (c) 140 ay 15.0 (vii) What will be the value of x after executing the following statement ifx = 15 and y= 202 = =207 X=(K 1) num=num/5; (a) loop is executed 2 times (b) loop is executed 3 times Ney Toop is executed 5 times (d) loop is not executed (xi) Keyword which is used while creating an object: way new (b) void (c) create (d) break (sii) A sequence of statements enclosed between a pair of curly brackets is called (a) anull statement (by a compound statement (c) an empty statement (@) avoid statement (xiii) Which of the following is a unary operator? @) % (b) > wor @! (xiv) Data type of the value retumed by Math random() is? (a) int (by double (©) float (@) byte (xv) Single line comments can be added in the program by using I (b) /* © @ I A-4 @)

You might also like