Trending ▼   ResFinder  

ICSE Class X Sample / Model Paper 2024 : Computer Applications

7 pages, 36 questions, 0 questions with responses, 0 total responses,    2    0
Roopa Harish
  
+Fave Message
 Home > spoor394 >   F Also featured on: icse

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

Formatting page ...

ICSE 10th Computer Applications Sample Paper 1 Page 1 Sample Paper 1 ICSE Class X 2023-24 COMPUTER APPLICATIONS Time: 2 Hours Max. Marks: 100 General Instructions: 1. Answers to this Paper must be written on the paper provided separately. 2. You will not be allowed to write during the first 15 minutes. 3. This time is to be spent in reading the question paper. 4. The time given at the head of this Paper is the time allowed for writing the answers. 5. This Paper is divided into two Sections. 6. Attempt all questions from Section A and any four questions from Section B. 7. The intended marks for questions or parts of questions are given in brackets [ ]. SECTION - A Attempt all questions from this part. QUESTION 1. Choose the correct answer and write the correct option. (Do not copy the question, write the correct answers only.) (i) What will be the output of the following code? int a[] =[2,4,6,8,10]; a[0] = 23; a[3]= a[1]; int c = a[0] + a[1]; System.out.println( Sum = +c); (a) 26 (b) 23 (c) 25 (d) 27 (ii) _____is a collection of classes. (a) Package (c) Method (b) Function (d) Wrapper class (iii) The process of binding the data and method together as one unit is called as (a) encapsulation (c) polymorphism (b) inheritance (d) dynamic binding [20] ICSE 10th Computer Applications Sample Paper 1 Page 2 (iv) Write the output of the following code. String s1= welcome ; String s2= island ; System.out.println(s1.substring (0).concat(s2.substring(2))); System.out.println(s2. toUppercase ()); (a) welcomeland (b) Welcome Land ISLAND Island (c) WELCOME LAND (d) Welcome land ISLAND Island (v) What is the return type of the following function? is Letter Or Digit (char) (a) String (c) Integer (b) Char (d) Boolean (vi) What will be the output of the following code? String str = Computer Applications + 1 + 0; System.out.println( Understanding +str); (a) Understanding Computer Applications 10 (b) Understanding Computer Application 20 (c) Understanding Computer Application 10 (d) Error (vii) This is a name given to a package, class, interface, method or variable. (a) Keyword (c) Literal (b) Token (d) Identifier (viii) int code[ ] = [25, 37, 38, 42]; The given statement (a) assigns 37 to code [1] (c) assigns 38 to code [3] (b) assigns 25 to code [1] (d) assigns 42 to code [0] (ix) Automatic conversion of primitive data into an object of wrapper class is called (a) autoboxing (c) shifting (b) explicit conversion (d) None of the above (x) These constructors are required to pass parameters on creation of objects. (a) Copy (c) Parameterised (b) Default (d) None of the above ICSE 10th Computer Applications (xi) The parseInt( ) function is a member of (a) integer wrapper class (c) boolean wrapper class Sample Paper 1 Page 3 (b) character wrapper class (d) None of these (xii) _____members are accessible inside their own class, classes within the package and subclasses. (a) Private (c) Public (b) Protected (d) None of these (xiii) The classes that extend Runtime Exception are known as (a) checked exceptions (c) impure exceptions (b) unchecked exceptions (d) static exceptions (xiv) Iteration is also known as (a) looping (c) Both (a) and (b) (b) repetition (d) None of these (xv) _____are reference types, which hold the reference id of a memory location. (a) Composite types (c) Attribute types (b) Primitive types (d) None of the above (xvi) Which of the following are invoked directly when an object is created? (a) Strings (c) Constructors (b) Arrays (d) Methods (xvii) Assertion (A) Array is a data type which can store multiple homogenous variables. Reason (R) Elements of array are stored in an indexed manner starting with index 0. (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. (xviii) Read the following text and choose the correct answer. Abstraction is a concept, which is used to represent essential features without including the background details or explanations. It is essential concept of Object Oriented Programming (OOP). What is an abstraction? (a) Abstraction is more about What a class can do. (b) Abstraction is more about How to achieve that functionality. (c) It binds data and methods in a single unit. (d) It implements using private access modifier. ICSE 10th Computer Applications Sample Paper 1 Page 4 (xix) Assertion (A) The factory of object means a factory that produces the objects. Reason (R) Class is known as object factory because single class generates a lot of objects. (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. (xx) Which of these is an incorrect statement? (a) It is necessary to use new operator to initialise an array. (b) Array can be initialised using comma separated expressions surrounded by curly braces. (c) Array can be initialised when they are declared. (d) None of the above QUESTION 2. (i) If int a[ ] = {7, 3, 4, 8, 9, 2}; what are the values of x and y? (a) x=a[1]*a[0]+a[3] (b) y=a. length [2] (ii) Write the value of n and m after execution of the following code. [2] int m; int n; m=5; n=(5*++m)%3; System.out.println( n= +n+ m= +m); (iii) Name the keyword [2] (a) Informs that an error has occured in an input/output operation. (b) Distinguish between instance variable and class variable. (iv) What will be the following statements? [2] int a=3; System.out.println( +(1+a)); System.out.println( +1+a); (v) Name the primitive data type in Java that is a 64 bits integer and is used when you need a range of values under than those provided by int. [2] (vi) Give the prototype of a function search, which receives a sentence sentc and a word wrd and returns 1 or 0. [2] ICSE 10th Computer Applications Sample Paper 1 Page 5 (vii) Find the output of the following code. [2] String str = I Love My Family ; System.out.println(Integer.toStr ing(str.length())); System.out.println(str.substring (12)); (viii) Write a Java statement for the following mathematical expression : [2] V = 1 r2 h 3 (ix) Predict the output. [2] (a) Math.pow(3.4, 2)+2*Math. sqrt(64) (b) Math.ceil(3.4)+2*Math. floor(3.4)+2 (x) How many times will the following loop execute? [2] int x=2, y=50; do { ++x; y =x++; }while (x<=10); return y; SECTION - B Attempt any four questions from this section. QUESTION 3. Write a program in Java which prints fibonacci series using arrays. [15] [Hint A series of numbers in which each number (Fibonacci number) is the sum of the two preceding numbers. The series is 0, 1, 1, 2, 3, 5, 8, etc.] QUESTION 4. Anshul transport company charges for the parcels of its customers as per the following specifications given below [15] Class name Atransport Member variables String name to store the name of the customer ICSE 10th Computer Applications Sample Paper 1 Page 6 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. QUESTION 5. Draw the following patterns using switch statement. (i) A B C D E D C B A ABCDCBA ABCBA ABA A (ii) 1 21 321 4321 54321 [15] ICSE 10th Computer Applications Sample Paper 1 Page 7 QUESTION 6. Using the switch statement, write a menu driven program for the following : 1 1 (i) 1 1 1 2 2 2 2 3 3 3 4 4 5 B B L (ii) B L B L U U [15] E QUESTION 7. A showroom has offered the following occasion discounts on the purchase of items based on the total cost of the item purchased: [15] Total Cost Discount Item Less than or up to Rs. 1000 3% Glass Rs. 1001 to R s. 3000 5% Crockery set Rs. 3001 to Rs. 5000 10% Study table More than Rs. 5000 15% Books Write a program to input the total cost of the item purchased, discount, amount to be paid after availing discount. QUESTION 8. Write a Java program to display the pattern of the string entered by user. There are two choices F and L. If user choose F, then first character of each word display. But if user choose L, then last character of each word display. [15] Sample Input HELLO WONDERS WORLD Output Choose F Choose L H O W S W D ******

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

spoor394 chat