Trending ▼   ResFinder  

ICSE Class X Prelims 2023 : Computer Applications (Hiranandani Foundation School (HFS), Powai, Mumbai)

7 pages, 40 questions, 0 questions with responses, 0 total responses,    0    0
ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message
 Home > icse >   F Also featured on: School Page

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

HIRANDANI FOUNDATION SCHOOL, POWAI FIRST COMPREHENSIVE EXAMINATION, AUGUST 2022 COMPUTER APPLICATIONS Std: X READING TIME: 8:30 am- 8:45 a.m. WRITING TIME: 8:45 a.m-10:45 a.m. DATE: 30/8/22 MARKS: 100 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) Question1 (i) Procedure Oriented Programming mainly uses . [1] (a) Top-down approach (b) Bottom-up approach (c) Top-down and bottom -up approach (d) None of these (ii) is the feature using which one class acquires the properties [1] of another class. (a) Abstraction (b) Encapsulation (c) Inheritance (d) Polymorphism (iii) is a template to create similar objects that share common characteristics and behaviour. (a) A method (b) An attribute (c) A procedure (iv)The terms objects and (a) instance (d) A class are often interchangeable. (b) behaviour (c) attribute (b) SPayAmount [1] (c) 10thClass (vi)Which of the following is a default value of float data type? (a)0 (b) 0f (c) Ofloat [1] (d) state (v)Which of the following is not a legal identifier? (a)_room [1] (d) 0.0f This page consists of 8 printed pages (d) nullvalue [1] HFS, Powai Std.x/Comp.App. (vii) x=2 and y= x++ + --x *8, the value of y = (a) 16 (b) 18 (c) 20 [1] (d) 11 vii) A function that does not change the state of the object is called as (a) overloaded function (b) pure function (c) impure function (d) static function [1] (ix) parameters refer to the parameters in the definition of the method or function that has been called /invoked. (a) Method (b) Class (x) by all the objects. (a) Instance (c) Formal (d) Actual variables are created once for entire class and are shared (b) class (or static) (c) shared (b) private [1] (d) none of these (xi) The members with access specifier can be accessed within the class itself, subclasses of their class and classes within the same package. (a) public [1] (c) protected [1] (d) default (xii) is the first line of the function definition that tells the [1] program about the types of value returned by the number function, and the type of arguments (a) Function name (c) Function signature (b) Function prototype (d) Function arguments (xii) Observe the function given below. Which type of function is this? int function1 ( int x, int y)[1] { If(x>y) return x; else return y } (a) Overloaded function (b) Impure function Page 2 of 8 HFS, Powai Std.x/Comp.App. (c) Pure function (d) None of these (xiv) is the keyword that distinguishes between instance variables [1] and class variables. (a) public (b) local (c) private (d) static (xv) The parameters in a function call statement are known as [1] (a) actual parameters (b) data parameters (c) formal parameters (d) reference parameters (xvi) in Java, primitive types are passed by . (a) value (b) reference [1] (c) object (d) none of these (xvii) The number of values that can be returned from a function is (a)1 (b) can be any number (c) 0 (d) none of these (xvii) The member function having same name as that of its class (a)method (b) impure function (c) constructor (b) class name [1] (c) 0 (d) none of these (xx)The byte size of long data type is (a) 1 (b) 2 (c) 4 [1] (d) none of these (xix) The return type of a constructor is (a) void [1] [1] (d) 8 Question 2 (i)Detect the errors if any in the following statement and rewrite correctly. If (2x +5 =10 && x>0) Page 3 of 8 [2] HFS, Powai Std.x/Comp.App. (ii)Explain Impure function with an example. [2] (iii) How is the return statement useful in Java? Write two points [2] (iv) Write the prototype of a function check() which receives a character [2] ch and an integer n and returns true or false. (v) In the program given below, state the name and value of the following: (a) method argument (b)class variable (c)local variable [2] (d)instance variable class myClass { static int x=7; int y-2; public static void main(String args|) { myClass obj= new myClass); System.out.println(x)}; obj.sampleMethod(5); int a-6 System.out.println(a); } void sampleMethod(int n) { System.out.println(n); System.out.println(y): } } (vi) Write the Difference between 'call by value and ' call by reference. [2] (vii) Rewrite the following statement using if-else statement: [2] System.out.print((income >10000)? 10.0/100* income : 5.0/100*income); (Vi) Rewrite the following statements using if-else statement : switch (designation) { case 'A : System.out.print( You are a grade A employee "); a++; break; Page 4 of 8 [2] HFS, Powai Std.x/Comp.App. case 'B' : System.out.print(" You are a grade B employee"); b++; break; default: System.out.print(" The designation code is invalid"); break; } (ix) (a) Differentiate between static and non-static data members. [2] (b) Name the keyword that causes the control to transfer back to the method call. (x) Write the output for the following statements: [2] (a) double x-125; System.out.print(Math.cbrt(x)); (b) System.out.print(Math.ceil(-5.3); SECTION B (60 MARKS) (Answer any four questions from this section.) (Each program should be written using variable description) Question 3 [3] An electronics shop has announced a special discount on the purchase of Laptops as given below: Category Discount on Laptop Up to 25,000 5.0% 25,001- 50,000 7.5% 50,001 - 1,00,000 10.0% More than 1,00,000 15.0% Define a class Laptop described as follows: Data members/instance variables: 1. 2. 3. 4. name (String)x price (int) dis (double) amt (double) Member Methods: Page 5 of 8 HFS, Powai 1. 2. 3. 4. Std.x/Comp.App. A parameterised constructor to initialize the data members To accept the details (name of the customer and the price) To compute the discount and amount To display the name, discount and amount to be paid atter discount. Write a main method to create an object of the class and call the member methods. Question 4 [15] Using switch statement, write a menu driven program for the following: 1. To find and display the sum of the series given below: S= x1 x2 + x3 x4 + x5 - x20 (Where x=2) 2. To display the the following series: 1 11 111 1111 11111 For an incorrect option, an appropriate error message should be displayed. Question 5 [15] Using the switch statement, write a menu driven program for the following: (a)To print the Floyd's triangle [Given below] 1 1 2 4 5 6 7 8 9 10 11 12 13 14 15 (b) To display the following pattern: I I C I C S I C S E For an incorrect option, an appropriate error message should be displayed. Question 6 [15] Design a class to overload a function sumSeries() as follows: (i)void sum Series(int n, double x): with one integer argument and one double argument to find and display the sum of the series given below: S=1 2 + 3 4 + 5 to n terms (ii) void sumSeries(): to find and display the sum of the following series: Page 6 of 8 HFS, Powai Std.x/Comp.App. s= 1 +(1 x2)+(1 x2x3)+ +(1 x2 x3x 4 .. X 20) Question 7 [15] Write a program to accept a number and check and display whether it is a Niven number or not. (Niven number is that number which is divisible by its sum of digits.). Example: Consider the number 126. Sum of its digits is1 +2 +6=9 and 126 is divisible by 9. Question 8 [15] Define a class Student as given below: Data members/instance variables: name, age, ml, m2, m3 (marks in 3 subjects), maximum, average Member methods: A parameterized constructor to initialize the data members. To accept the details of a student To compute the average and the maximum out of three marks. To display the name, age, marks in three subjects, maximum and average. Write a main method to create an object of a class and call the above member methods. ******* Page 7 of 8 HFS, Powai Std.x/Comp.App. Page 8 of 8

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : icse free download, icse papers, pdf download 2020 2021 2022 2023, 2024 icse sample papers, icse books, portal for icse india, icse question bank, indian certificate of secondary education, icse question papers with answers, icse model test papers, solved past board question papers of icse last year, previous years solved question papers, free online icse solved question paper, icse syllabus, india icse board sample questions papers, last 10 years icse papers, icse question papers 2022 - 2023, icse guess sample questions papers, icse important questions, class 10 specimen / guess / mock papers, icse pre board question papers, icse 2022 - 2023 pre-board examination  

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

 

icse chat