Trending ▼   ResFinder  

ICSE Class X Prelims 2025 : Computer Applications (Amarjyoti Saraswati International School (ASIS), Bhavnagar)

4 pages, 32 questions, 0 questions with responses, 0 total responses,    0    0
Niren Pandya
Amarjyoti Saraswati International School (ASIS), Bhavnagar
+Fave Message
 Home > nirenp10 >   F Also featured on: School Page

Formatting page ...

Amarjyoti Saraswati International School FIRST PRELIM. EXAMIMATIONS 2022 STANDARD : X MAX MARKS : 100 SUBJECT : COMPUTER APPLICATIONS DATE : /12/2022 TIME : 2Hrs 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, Section A and Section B. You have to answer all the questions from Section A and four questions from Section B. The intended marks for questions or the part of the questions are given in the brackets []. SECTION A (40 MARKS) (Attempt all the questions ) Q-1 (1) (2) (3) (4) (5) (6) (7) (8) (9) Multiple Choice Questions. What type of data is returned by the compareTo() method of String class ? (a) int (b) float (c) Boolean (d) String Method signature is not a part of method header true/false. (a) true (b) false (c) None of these Which of the following is a variable iteration loop ? (a) for (b) if (c) switch (d) none of these The cell numbers of an array are known as what ? (a) ranks (b) elements (c) subscripts (d) None of these Indicate the error message which displays, if the following statement is executed : int a[5] = {28,32,45,68,12}; (a) Insufficient cells (b) Array index out of bounce (c) Elements exceeding cells (d) None Give output : int m[] = {10,20,30,40}; System.out.println(m[1] + " " + m[2]); (a) 10 20 (b) 30 40 (c) 20 30 (d) None of these Give output int a[]=new int [5]; a[0]=4; a[1]=8; a[2]=7; a[3]=12; a[4]=3; System.out.println(a[2+1]); (a) 12 (b) 3 (c) 8 (d) None of these If a function doesn t return a value , it is denoted as what ? (a) none (b) void (c) null (d) None of these The function which changes the state of an object is known as: Amarjyoti Saraswati International School First Prelim. 2022-23 Page No - 1/4 [20x1] (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) Q-2 1 2 (a) pure function (b) impure function (b) replace function (d) none of the above Parameters used in the function definition are called: (a) forward parameter (b) actual parameter (c) formal parameter (d) none of the above Linear search is faster than Binary search. true/false (a) true (b) false All the non primitive data can be passed in a function by __________. (a) pass by value (b) pass by index (c) pass by subscript (d) None of these Which of the following is a valid statement ? (a) String a[] = { a , B , C }; (b) String a[] = { a , B , C }; (c) String a[] = { a ; B ; C }; (d) String a = [ a , B , C ]; Output int k [] = {345,211,45}; int b = k[1] % 20 + 2 / 2; System.out.println(b); (a) 12 (b) 6 (c) 46 (d) 40 Each primitive data type belongs to a specific: (a) block (b) object (c) wrapper class (d) none The ________refers to the conversion of a primitive value into an object of the corresponding wrapper class. (a) Unboxing (b) Method overloading (c) unboxing (d) autoboxing Odd one out. (a) >= (b) != (c) ! (d) == Odd one out (a) replace() (b) charAt() (c) startsWith() (d) setLength() What is the size of the short data type ? (a) 4 (b) 2 (c) 8 (d) 1 Output : System.out.print((char)((int) K )); (a) k (b) 82 (c) 83 (d) None of these Differentiate between Subscript and Subscripted variable What is the output of the following code snippet? int[][] x = { {1,2,3}, {4,5,6}, {7,8,9}}; int[][] y = { {9,8,7}, {6,5,4}, {3,2,1}}; int i, j; for(i=0; i<3; i++) { for(j=0; j<3; j++) { System.out.print(x[i][j] + y[i][j]); System.out.print(" "); } System.out.println(); } Amarjyoti Saraswati International School First Prelim. 2022-23 Page No - 2/4 [2] [2] 3 4 State the difference between == operator and equals() method. What do you mean by pass by reference ? [2] [2] 5 Will the following code compile? If no, why not? If yes, what is the output? double d1 = 2.3, d2 = 4.5, d; int i1 = 4, i2 = 2, i; d = Math.max( d1, d2 ); i = Math.max( i1, i2 ); System.out.println("d: " + d); System.out.println("i: " + i); [2] Give an example to demonstrate the difference between startsWith() and endsWith() Write the names of any two logical and relational operators. What is the return type of length method of string class ? What is the size of a char data type in Java ? Name the statement used to terminate a method. Give an example of autoboxing . What is the size (in terms of bits) of following array ? int a[] = new int[5]; [2] [2] [1] [1] [1] [2] [1] Q-3 (1) (2) (3) (4) (5) (6) (7) SECTION B (Attempt any four questions) Explain your logic by writing comments in the program wherever required. Q-4 In class 10th , there are 20 students sitting in the row. The one who are facing left are marked as < .The one who are facing right are marked as > and the one who are reading are marked as * . The students sitting besides can talk only if they are facing each other (><) . Mr. Pandya wants to find out how many of them are talking in the class. WAP that accept the string of 20 letters (< , > and *) and print the result. e.g. s = ***<><><*>***<>* ><* Output : there are 4 students talking in the class. (there exists two occurrence of ><) Q-5 Write a program to store 16 values into a matrix of 4x4 and perform the following : (i) Sum of the numbers in each row. (ii) Sum of the numbers in each column. (iii) Sum of the numbers in left diagonal. (iv) Sum of the numbers in right diagonal. Q-6 Write a program to implement the following class diagram using the method overloading : Class : Test Methods : Void printTrio() - prints the following pattern : 1 1 2 Amarjyoti Saraswati International School First Prelim. 2022-23 Page No - 3/4 1 2 3 Void printTrio(int n) - Print the following pattern . (if n = 4) 1 2 3 4 2 3 4 3 4 4 Void printTrio(int n,char c) print the following pattern . (if n = 4 , c = # ) # # # # # # # # # # Q-7 Write a program that store the following words into an array. Accept a word and using Binary search technique check if it is present in the array or not. If present, print the location of it. [ APPLE , BANANA , DRAGON FRUIT . ORANGE , PINAPPLE , POMENGRANATE ] (The array is sorted in the ascending order) Q-8 Write a program to display all the numbers between 100 and 200 which don't contain zeros at any position. For example: 111, 112, 113, ....... , 199 Q-9 Mr Edward is the class teacher of 10 th std. He asked the students to seat as per a particular plan. There are 60 seats (5 rows and 12 columns) in the classroom. There are 40 students in the class so some places are blank also. A new student Champa takes the admission in the class. She wants to seat at 3rd row , 6th seat. Write a program to help Mr. Edward to check as he is able to allocate this seat to Champa or not. HINT : A DDA is to be created as per the given sample. The empty seats are denoted as -. Anamika Jaimin Ratandeep Mustan Pranjal Diya Vedant KG Rudra Kavya Ishita Chahat Anas Ayyan - Dhruv - Yug - The program should print the following message : Champa can not get her desired seat as Chahat is already seating there. Amarjyoti Saraswati International School First Prelim. 2022-23 Page No - 4/4 Tanvi Sanskruti Sneha Simran Neha Ayushi

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

nirenp10 chat