Trending ▼   ResFinder  

ICSE Class X Prelims 2022 : Computer Applications-semester 2 (Father Leblond School, Darjeeling)

3 pages, 46 questions, 9 questions with responses, 11 total responses,    1    0
Koustav Chakraborty
Baba Siddhnath College Of Education, Muthra
BACHELOR OF EDUCATION COMPUTER SCIENCE AND APPLICATIONS
+Fave Message
 Home > rudra199140 >   F Also featured on: School Page Group Page and 2 more

Formatting page ...

PRE-BOARD EXAMINATION CLASS X SESSION 2021-22 COMPUTER APPLICATIONS Maximum Marks: 50 Time allowed: One and half hours Answer to this paper must be written on the paper provided separately. You will not be allowed to write in first 10 minutes. This time is to be spent in reading the question paper. The time given at the head of the question paper is the time allotted for writing the answers. Attempt all the questions from Section A and any 4 questions from Section B. The intended marks for the questions or part of the questions are given in the bracket [ ]. SECTION A (Attempt all questions) Question 1 Choose the correct answer for the following questions from the given options. (Do not copy the questions. Write only the correct answer) (i) Which of this method convert string value to primitive float type? a) String.toFloat( ); b) Float.toFloat( ); c) String.parseFloat( ); d) Float.parseFloat( ); (ii) Identify the value of n and ch from the code segment: char c = B ; float n = c+1; char ch = (char) n; a) n =66 ch=B b) Syntax error due to data type mismatch c) n = 66 ch = garbage value due to improper type conversion d) no output due to logical error (iii) Predict the output for n and chr from the code segment: char ch = A ; char chr = Character.LowerCase(ch+1); int n = (int) chr 32; a) 34 b b) 34 B c) 66 b d) 66 B PRELIMS THIS PAPER COMPRISES OF 3 PRINTED PAGES & 1 BLANK PAGE [10] TURN OVER (iv) The variable that is declared and defined within the body of a method is termed as a) class variable b) instance variable c) local variable d) private variable (v) Consider an input where x = ACHIEVEMENT ; Which of these will be the correct statement to obtain output ACHIAVAMANT . a) x.trim( A , E ); b) x.substring( A , E ); c) x.replace( A , E ); d) x.find( A , E ); (vi) If x = Today is test then predict the output for the statement System.out.print(x.substring(0,7)+ + x.toUpperCase()); a) Today i TODAY b) Today TODAY c) Today ODAY d) Today is TODAY (vii) Compare the statements given below and identify the statement with array variable. a) a.length(); b) a.length; c) a[ ].length( ); d a[ ].length; (viii) Which of the following statement is true for the keyword private? a) Class variables are accessible outside the scope of class b) Member methods are not accessible by inherited class c) Methods are accessible within the class itself. d) None of the above (ix) Wrapper classes are available in _________ package a) java.applet b) java.awt c) java.lang d) java.util (x) Give the output of the following string methods: "MISSISSIPPI".indexOf('S')+ "MISSISSIPPI".lastIndexOf('I') (a) 10 (b) 12 (c) 20 (d) 11 PRELIMS 2 TURN OVER SECTION B (Attempt any four questions.) Question 2 Write a Java program to take n numbers of elements from the user and check whether those are even numbers. If it is even number then store it into a single dimensional array and print the array of all the even numbers. [10] Question 3 Write a Java program to create a single dimensional array of n string values and perform the following operations: i) Convert all the vowels in to uppercase and display the modified values ii) Count the frequency of vowels in the entire array. [10] Question 4 Write a Java program to accept a word and display the word in a pig latin form. Example: Input-> TROUBLE Output-> OUBLETRAY Obtain first substring till the first vowel appears, add the substring with the rest of second substring with AY . [10] Question 5 Write a Java program to accept and store 10 strings into the array and print the strings with even number of characters. [10] Question 6 Write a Java program to accept n numbers of elements in a single dimensional array. Perform selection sort technique to arrange the elements in a descending order and print the highest and lowest value in the array. [10] Question 7 Define a class to accept two strings, convert them into uppercase, check and display whether two strings are equal or not, if the two strings are not equal, print the string with the highest length or print the message both the strings are of equal length [10] PRELIMS END 3

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sonia

(4)

Harsh Mani

(2)

Shreya Bhandari

(2)

Archit Lakhani

(2)

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

rudra199140 chat