Trending ▼   ResFinder  

ICSE Class X Sample / Model Paper 2025 : Computer Applications

6 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Kritika Bisht
  
+Fave Message
 Home > donaldduck89 >

Formatting page ...

GREEN VALLEY ENGLISH SCHOOL Affiliated to CISCE, New Delhi. Chunchaghatta Main Road, Konanakunte, Kanakapura Road, Bengaluru - 560062 First Preparatory Examination- 2024-25 Class : 10 Subject: Computer Application Duration : 2 hrs. Marks: 100 ____________________________________________________________________________________ Instructions: Answers to this paper must be written on the sheet 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. SECTION A (40 Marks) (Attempt all questions from this section) Question 1 Multiple Choice Questions: 2) 3) 4) 5) 6) [20] Name the feature of Java depicted in the above picture. a) Encapsulation b) Data Abstraction c) Polymorphism d) Inheritance The size of \n is : a) 1 byte b) 2 bytes c) 4 bytes d) 8 bytes Evaluate the value of n, if value of p=7, q=13 int n = p%3 < q/3 ? p-- : q-- ; a) 6 b) 12 c) 7 d) 13 Find out the answer of the following code: System.out.println((Math.ceil(Math.abs(-9.45)))). a) -9.0 b) 9.0 c) 10.0 d) -10.0 String str = KARNATAKA System.out.println( str.indexOf( A ) + str.indexOf( A ,3)); Predict the output: a) 2 b) 4 c) 5 d) 9 Assertion: compareTo( ) function compares two function based on the order of the corresponding characters of the strings but not on the basis of the length of the strings. Reason: during comparision, the control keeps on comparing the corresponding characters of both the strings and when corresponding characters are found different, the result would be the difference of their ASCII codes. ~1~ a) Both Assertion and Reason are true and Reason is the correct explanation of Assertion. b) Both Assertion and Reason are true but Reason is not the correct explanation of Assertion. c) Assertion is true but reason is false. d) Assertion is false but reason is true. Identify instance variable and local variable: Identify the correct array declaration statement: a) int a[10]; b) int a[10]=new int( ); c) int a[]= new int[10]; d) int a[]=new int(10); Assertion: In Double Dimensional Array,each element is referred using a row and column subscript i.e.:m[0][0], m[1][1], and so on. Reason: An array with empty m[][] represents unfixed number of rows and columns in the Double Dimensional Array. a. Both Assertion and Reason are true and Reason is the correct explanation of Assertion. b. Both Assertion and Reason are true but Reason is not the correct explanation of Assertion. c. Assertion is true but reason is false. d. Assertion is false but reason is true. Identify odd one out: a) && b) \\ c) || d) ! Predict the output: for(int m=5;m<=20;m+=5){ if(m%3==0) break; else if(m%5==0) System.out.println(m); 7) 8) 9) 10) } a) 5 10 11) 12) b) 5 c) not possible 10 15 Find out the answer: System.out.println( IDEA .compareTo( IDOL )); a) -10 b) 10 c) 11 Findout the answer: char ch = F ; int a = ch; a = a+5; System.out.println(a + +ch); a) F 5 b) 65 F c) 75 F ~2~ d) None of these d) None of these d) F 75 13) 14) 15) 16) 17) 18) 19) 20) Find out the value of x: x=Math.sqrt(Math.max(49,64)); a) 8 b) 7 c) 7.0 d) 8.0 Predict the output: String s = Smartphone ; String s1= s.substring(1,5); System.out.println(s1); a) one b) mart c) martp d) hone Predict the output: int a[] = {1,2,3,4,5}; System.out.println(a[1] + + a[4]); a) 1 5 b) 15 c) 40 d) None of these char c[] = { R , A , J , E , N , D , R , A }; int len = c.length; Find out the value of len? a) 7 b) 8 c) not possible d) None of these Find out odd one out: a) Primitive data types are built-in types. b) User-defined data types are created by the users. c) User-defined types are independent in nature. d) Primitive types are fundamental data types. Which of the following is a valid declaration statement to store the Genderof 80 employees [ M Male, F Female, T Transgender ]? a) char gender = new char[80]; b) char gender[] = new char[80]; c) char gender[80]; d) char gender[80] = new char[]; Which of the following String methods has integer argument? (i) length (ii) substring (iii) indexOf (iv) charAt a) Only (ii) b) (i) and (iv) c) (ii) and (iv) d) (ii) and (iii) Assertion: A looping construct can be categorized in two ways viz. Entry Controlled and Exit Control loop. Reason: The do-while loop is known as entry controlled loop whereas for loop and while loop are exit controlled loop. a. Both Assertion and Reason are true and Reason is the correct explanation of Assertion. b. Both Assertion and Reason are true but Reason is not the correct explanation of Assertion. c. Assertion is true but reason is false. d. Assertion is false but reason is true. ~3~ Question 2 Answer the following: 1) Predict the output: int a=4 , b=7; a *= a++ + --b - --a * b--; 2) Write the java expression for the following: a= + 2 + 3 3 3) 4) 5) 6) 7) 8) 120 189 89 23 123 67 78 876 5 222 45 34 56 12 32 106 How many bytes are occupied by the above two-dimensional array? Write the java statement: An character array variable (chr) is storing 1st 5 odd numbers. Give the output of the following method definition: void test( String x, String y){ if(x.compareTo(y) > 0) System.out.println(x); else System.out.println(y); If AMIT and AKASH are passed to the method. Consider the following String array and give the output: String arr[] = { NOKIA , CHENNAI , MUMBAI , LUCKNOW , JAIPUR }; System.out.println(arr[4].length() >arr[2].length()); System.out.println(arr[2].substring(0,3)); Convert the following into ternary form: if (credits < 30) year = "freshman"; else if (credits <= 59) year = "sophomore"; else if (credits <= 89) year = "junior"; else year = Senior ; Rewrite the following in for loop form. int i=1,c=5; while(i<=10){ System.out.println( c); c +=5; } ~4~ [20] 9) 10) A method ValDisplay which takes an integer argument and a character argument and returns a value true/false type. Write the method prototype as mentioned above. Give the output of the following string functions: (i) MISSISSIPPI .indexOf( I ) + MISSISSIPPI IndexOf( I ,3) (ii) System.out.println( Smartphone .substring(0,5) + Graphic Art .substring(6)); SECTION B (60 Marks) (Attempt any FOUR questions from this section) Question 3 Rahul was asked to create a class with methods to calculate the area of a triangle ( bh), the area of a square (s s), the area of a trapezium ( h(a+b)), the area of a rectangle (l b). He created a class by giving the same name to all the methods as area. Name the element of Java used in the program. Define a class with the four methods with the same name. Question 4 Define a class to accept a four-digit number and check if it is a USHWA number or not. The number is said to be USHWA Accept a four digit number. If: Sum of all digits = 2 (sum of first and last) Example: n = 1234 Sum of first and last = 1+4= 5 Sum of all digits = 1 + 2 + 3 + 4 = 10 Example 2 If the input value is 354, then a error message should be given as the number has only 3 digits. Question 5 Write a program in Java to accept a String in a mixed case (including digits and special characters). Perform the following tasks as per the user s choice: 1. Count and display the number of vowels 2. Count and display the digits 3. Count and display the number of special characters excluding whitespaces Sample Input: 15 August is celebrated as: Independence Day Sample Output: Number of vowels : 15 Number of digits : 2 Number of special characters : 3 Question 6 The school office keeps the records of all the students of a class by entering admission numbers and the names of the students. Write a program to store all names along with their corresponding admission numbers. Now, enter admission number of a student and search whether the name is present or not. If the name is present then display the name along with the admission number, otherwise display an appropriate message using Linear Search technique. ~5~ Question 7 Star mall is offering discount on various types of products purchased by its customers. Following table shows different type of products and their respective code along with the discount offered. Based on the code entered, the mall is calculating the total amount after deducting the availed discount. Create a program to calculate total amount to be paid by the customer. Item Item Code Discount Laptop L 5% LCD D 7% Xbox X 10% Printer P 11% Question 8 Write a menu driven program to display the following patterns as per the user s choice. Pattern 1 Pattern 2 ABCDE B ABCD LL ABC UUU AB EEEE A JJJJJ For an incorrect option, an appropriate error message should be displayed. ----@@@@@@@@@@@@@@@---- ~6~

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

 

donaldduck89 chat