Trending ▼   ResFinder  

ICSE Class X Prelims 2025 : Computer Applications (Nalanda International School, Vadodara)

8 pages, 70 questions, 0 questions with responses, 0 total responses,    0    0
Kinjal Ahuja
Nalanda International School, Vadodara
+Fave Message
 Home > kinjalahuja087 >   F Also featured on: School Page

Formatting page ...

Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation Maximum Marks: 100 Time allowed: Two hours Answers to this Paper must be written on the paper provided separately. 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 this Paper is the time allowed for writing the answers. This Paper is divided into two Sections and has 8 printed sides. 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 Choose the correct answers to the questions from the given options. (Do not copy the questions, write the correct answers only.) (i) Which of the following is not applicable for a constructor function? a. b. c. d. (ii) It has the same name as the class It has no return type and is usually used for initialisation It can be invoked using an object like any other member function All of the above The expression which uses || operator is known as: a. Relational c. Arithmetic (iii) (iv) (v) b. Logical d. Assignment A local variable in a function has its scope : a. Limited within the function b. No limitation at all c. Can be accessed anywhere within the same class d. Can be accessed in all the functions in the same class If functions are overloaded, what differentiates it? a. Return type b. Parameter list c. Function name d. Both b and c The number of bytes occupied by an integer array of 20 elements: a. 80 bytes (vi) [20] b. 20 bytes c. 40 bytes d. 160 bytes When you are reading a book, you are unaware of the fact that who has printed the book, where from it is printed or where from the papers, inks etc. are made available. You only know that you can acquire knowledge by reading books. Name the Object Oriented Programming principle that is followed here. a. Abstraction b. Encapsulation c. Inheritance d. Polymorphism (vii) Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation A method has the following definition : When compiled it shows no error, however when executed with the following values, it results in an error. Can you state the possible reason behind it? a. Values of a and b should be 2.50 and 5.80 b. Values of a and b are not suffixed with f c. both a and b d. Values of a and b should be 2 and 5 (viii) The variable declared as IFSC_CODE should be considered _______ as per above picture. a. local b. static c. instance d. non-static (ix) Identify one of the important objective of programming depicted in the following image. Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation a. Loops c. Inheritance (x) b. Functions d. Data Hiding Consider the following code: int i, j=0, sum=0; for( i =1; i <= 5; i++) for(j = 2; j <= 5; j++) break; sum = sum + j; Which of the following is the final value of the sum? a. 1 b. 2 c. 50 d. 60 (xi) Name the concept of object oriented programming depicted in the above picture. a. Data hiding b. Polymorphism c. Encapsulation d. inheritance (xii) Which of the following is the correct syntax to create a parameterized constructor? a. public int pco(int i){} b. public pco(){} c. public pco(int i){} d. private int pco(int i){} (xiii) How many times will the following do-while loop be executed? int a, i; i=0; a=1; do { i++; a++; }while(a<=5); System.out.println("i="+i+"a="+ a); a. 2 times b. 4 times c. 6 times (xvi) The output of the function "COMPOSITION".substring(3,6); d. 5 times Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation a. POSI b. POS c. MPO d. MPOS (xv) Conversion from a String to primitive type data is only possible when it contains only number. (State True or False) a. False b. True (xvi) What will this code print ? int arr[ ]=new int[5]; System.out.println(arr); a. value stored in arr[0] (xvii) b. 0000 Given the following statements: int min=1, max=10; int range=max-min+1; int num=(int)(range*Math.random()+min); The value of num will be a. 1 <= num < 10 c. 1 < num < 10 c. garbage value d. 0 b. 1 < num <= 10 d. 1 <= num <= 10 (xviii) A student executes the following code to increase the value of a variable x by 2. He has written the following statement, which is incorrect. x=+2; What will be the correct statement? a) x+=2; b) x=2; c) x=x+2; a. Only A b. Only C c. All the three d. Both A and C (xix) (xx) The result of (5672%100)/10 is a. 6 b. 2 c. 5 d. 7 Give the output of the following: int a[]={2,4,6,8,10}; a[0]=23; a[3]=a[1]; int c=a[0] +a[3]; System.out.println("Sum ="+c); a. Sum=72 b. Sum=27 c. Sum=31 d. Sum=10 Question 2 (i) Evaluate the expression when the value of y=8, x=2: y += ++y + y -- + -- y + x++ + ++x [2] (ii) Write program snippet to store the vowels (a, e ,i , o, u) in an array. [2] (iii) Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation Write the output of the following code : for(x=97; x <= 110; ++x) { ch = (char) x; System.out.print(ch+""); [2] if(x%10 == 0) break; (iv) } Give the output of the following string functions: (a) "MUSSORIE".indexOf( S ) + "MUSSORIEDEHRADUN".lastIndexOf( I ) (b) "NAFED".compareTo("HAFED") [2] (v) Array is a composite data type . Explain this statement. [2] (vi) String x[] = {"ONEPLUS", "NOKIA", "REALME", "REDMI", "OPPO"}; Give the output of the following statements : (a) System.out.println(x[1]); (b) System.out.println(x[3].length()); [2] (vii) Write a statement for each of the following : (a) Store a number 275 as a string. (b) Convert the string to a numeric value. [2] (viii) Find and correct the errors in the following program segment: int n[] = (2, 4, 6, 8, 10); for (int i=0; i <= 5 ; i ++) System.out.println("n[" + i + "]= " + n[i]); [2] (ix) (x) Write a class with method to accept three integers that finds the maximum of these three [2] integer values. The public function find has been written to do a binary search for the integer m in the sorted [2] integer array data. The array is sorted in ascending order. If m is present in data then it returns 1 else 0. These are five places in the code marked by ?1?, ?2?, ?3?, ?4?, ?5? which must be replaced by expressions or statements so that the program works correctly. int find (int m, int data [], int size) { //data is a sorted array of integers arranged in ascending order //size gives the number of elements in the array //m is the integer which we are trying to search in the array data int found= 0; int j=0, k = ?1?; if(?2?) { while(?3?){ int i = (j+k)/2; if(m == data[i]) { ?4? break; } else { if(?5?) j = i + 1; else k=i-1; Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation } } } return (found); } (a) What is the expression or statement at ?1? (b) What is the expression or statement at ?2? (c) What is the expression or statement at ?3? (d) What is the expression or statement at ?4? (e) What is the expression or statement at ?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 [15] Define a class named MovieMania with the following description Data Members : int year - to store the year of release of the movie. String title - to store the title of the movie. float rating - to store the popularity rating of the movie (minimum rating=0.0 and maximum rating=5.0). Member Methods : MovieMania() - default constructor to initialize the data members with legal initial values. void accept() - to input and store the year, title and rating. void display() - to display the movie title along with a message based on the rating as given below : Rating Message 0.0 to 2.0 Flop 2.1 to 3.4 Semi-Hit 3.5 to 4.5 Hit 4.6 to 5.0 Super Hit Write the main() method to create an object of the class and invoke the above member methods accordingly. Question 4 Special words are those words which start and end with same letter. Example: EXISTENCE, COMIC, WINDOW Palindrome words are those words which read the same from left to right and vice-versa. Example: MALAYALAM, MADAM, LEVEL, ROTATOR, CIVIC All palindromes are special words but all special words are not palindromes. [15] Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation Write a program to accept a word. Check and display whether the word is a palindrome or only a special word or none of them. Question 5 [15] A student appearing for the ICSE/ISC examination will be given an index number, which is of the following format: Number of 7 digits/number of 3 digits. The first digit represents ICSE(1) or ISC(2), the next two digits represent the year, the next four digits represent the centre number, the last 3 digits represent the index number. Example : 1244311/204 Class: 10 Year: 24 Centre number: 4311 Index number: 204 Example : 2259856/107 Class: 12 Year: 25 Centre number: 9856 Index number:107 Define a class to accept the student index number as a String and print his/her details as above. Question 6 Design a class to overload a function polygon() as follows: i. void polygon(int n, char ch) : with one integer argument and one character type argument that draws a filled square of side n using the character stored in ch. ii. void polygon(int x, int y) : with two integer arguments that draws a filled rectangle of length x and breadth y, using the symbol @ iii. void polygon() : with no argument that draws a filled triangle shown below. Example: i. Input value of n=2, ch= O Output: OO OO ii. Input value of x=2, y=5 Output: @@@@@ @@@@@ iii. Output: * ** *** [15] Name : Class : 10 Subject : Computer Applications Topic : Prelims Date : 09 / 01 / 2025 Evaluation Question 7 [15] A class called 'Array' has been defined to store 10 names in the array a[]. Its specification is given below : Class name : Array Instance Variables : a[] - an integer array to hold 10 names. Methods : void readNames() - to accept 10 names from the user and store them in the array. void sortSelection() - to sort the array elements in descending order using Selection sort technique. void display() - it will call sortSelection() to sort the array elements and then display the elements such that it will form an ascending order list on the screen. Write a program to create the class Array and define all the methods of the class. In the main method, create an object of the above class and call the required functions to accept names from the user and display them in descending order. Question 8 [15] Write a menu driven program to perform the following operations as per user s choice: (i) To print the value of c= 2 + 2 , where a varies from 1.0 to 20.0 with increment of 2.0 and b=3.0 is a constant. (ii) To display the following pattern using for loop: A AB ABC ABCD ABCDE Display proper message for an invalid choice. -----------------------------------------X-------------------------------------------------X------------------------------------------------

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (GS Shetty International School (GSSIS), Mumbai)
by venisha211 
ICSE Class X Prelims 2025 : Computer Applications (Auxilium Convent School, Dum Dum, Kolkata)
by fox_07 
ICSE Class X Prelims 2025 : Computer Applications (Queen of Angels Convent Higher Secondary School (QACS), Vadadla, Bharuch)
by ghostttt 
ICSE Class X Prelims 2025 : Computer Applications (Smt. Lilavatibai Podar High School (LPHS), Mumbai)
by tannystudiez 

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

 

kinjalahuja087 chat