Trending ▼   ResFinder  

ICSE Class X Prelims 2027 : Computer Applications (California Public School, Moga)

6 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
GILL Computer Treasure
  
+Fave Message
 Home > charanjit89 >   F Also featured on: School Page

Formatting page ...

COMPUTER APPLICATIONS (THEORY) Maximum Marks: 100 (Time allowed: Two hours) Answer 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 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. Answer 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 (Attempt all questions from this Section) Question 1. Choose the correct answer and write the correct option. (i) Which feature of OOP indicates code reusability? a) Inheritance b) Encapsulation c) Abstraction d) None of these (ii) The java statement System.out.println(x[x. length]) results in: (a) logical error (b) syntax error (c) run time error (d) no error (iii) How many bytes are occupied by char data type? a) 2 bytes b) 4 bytes c) 8 bytes d) 1byte (iv) Which of the following are Wrapper classes? (i) Boolean (ii) boolean (iii) char (iv) Character (a) (i) and ((iv) (b) (ii) and (iv) (c) (i) and (iii) (d) (ii) and (iii) (v) In following statement ,what is the value of data? int data= C ; a) 66 b) 67 c) 68 [20] d) 99 (vi)Which keyword indicates that a method has no return type? a) int b) null c) void d) None (vii) .is one of the unary operator. a) && b) || c) ! d) += (viii)The AMB hotel gives the amount to be paid by the customer as an integer, which of the following Math method rounds off the bill in decimals to an integer? (a) Math.round() (b) Math.pow() (c) Math.ceil() (d) Math.abs() (ix) Assertion (A): Constructor is a special method whose name is the same as the class name. Reason (R) : A constructor is used to initialize objects and is automatically called when an object of the class is created. (a)Both A and R are true and R is the correct explanation of A (b) Both A and R are true but R is not the correct explanation of A (c) A is true but R is false (d) A is false but R is true (x) statement is used to jump to next iteration directly without executing some statements of loop. a) break b) continue c) return d) all (xi) What data type is returned by method isWhiteSpace(char ch)? a) boolean b) character c) double d) Stirng (xii) Predict the output:System.out.print( BEST ); System.out.println( WISHES FOR YOU ); a) BestWishesFor You b) BEST WISHES FOR YOU c) BEST WISHES FOR YOU d) BESTWISHES FOR YOU (xiii) The output of the statement Math.ceil. (89.9)+Math.floor(90.5) is: (a) 0.0 (b) 180 (c) 180.0 (d) 180.4 (xiv) Give the output: COMPUTER APPLICATIONS .lastIndexOf( O )+ COMPUTER SCIENCE .indexOf( E ) a) 18 b) 24 c) -1 d) None (xv)double get(int a) method takes which type of argument? a) double b) int c) a d) None (xvi)How many bytes are occupied by the given two-dimensional array? (a) 96 bytes (b) 128 bytes (c) 12 bytes (d) 24 bytes (xvii) ..type of members of class can t be used in other class except sub classes and with in same class. a) public b) private c) protected d) all (xviii) int arr[]={5,7,8,10,12,15}; What is value of arr.length? a) 5 b) 6 c) 0 d) 7 (xix) A girl wanted to calculate the sum of two numbers stored as a and b multiplied by 7. Select the appropriate Java expression. (a) a+b*7 (b) 7*a+b (c) (a+b)*7 (d) a+7*b (xx) loop is known as delay loop. a) Infinite b) null c) endless d) None of these Question 2. 1 (i) Write a java expression for | ax2+ 7bx2 | (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix) (x) [2] Calculate the value of c if a=5,c=2 [2] c+=--a - a++ + ++a - a++; Write a statement to create an object honda of class Vehicle ? [2] Write difference between compareTo() and equals(). [2] Rewrite following code by using for loop. [2] int a=1; int d=2; do { d=d+2; System.out.pritnln(d); a++; }while(a<=5); Sam performs bubble sort on the following array to organise the elements in ascending order:{5,1,2,3} After the first comparison the array is:{1,5,2,3} What would be the array after the next comparison? [2] Give the output of the following program segment and also mention how many times the loop is executed: [2] int i; for(i=5;i>10;i++) System.out.println(i); System.out.println(i*3); Name the following: (a) A Character method that checks whether a character is an alphabet or a number. (b) A Math method that does not have an argument. [2] Predict the output: [2] System.out.print( MALYALAM .replace( A , I ) + MADAM .toLowerCase()); Answer the following: (a) Scanner class method to accept a character. (b) Jump statement which stops the execution of a construct. [2] Section-B (Answer any four questions from this Section) The answers in this section should consists 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 with the following specifications : Class name : Travel Member variables : pname name of the passenger distance - distance travelled by the passenger charge charges to be paid by the passenger Member methods : void get() accept the name and distance travelled by passenger void compute() to calculate the charges as given below: Distance travelled Upto 10 KM Next 10 KM Next 20 More than 40 KM Charge Fixed charge Rs. 100 Rs. 10 per KM Rs. 8 per KM Rs. 5 per KM void show() to display the name,distance travelled and charges to be paid by passenger in given format Name distance charges .. . Question 4. [15] Define a class to overload the method show() as follows: void show() -- to display the format 8 87 876 8765 87654 876543 void show(int num) to display the sum of factors of number (including 1 and excluding number) void show(int x,int n) -- to display series : 1x2,3x2,5x2, .,nx2 Question 5. [15] Define a class to accept 20 elements of double type in Single Dimensional Array (SDA) and arrange them largest to smallest using Bubble sort technique. Display the array before sorting and after sorting. Question 6. [15] Write a program in Java to accept sentence from user and display only Special words. (Special words are those words which start and end with the same letter. Example: COMIC,WINDOW) Question 7. [15] Write a program to input matrix of 4 4. Calculate and display the sum of left diagonal elements and product of right diagonal elements of matrix. Question 8. [15] Write a program to input a number. Check whether number is deficient number Or not. [A deficient number is a number where the sum of its proper divisors (all divisors excluding the number itself) is less than the number, like 10 (factors 1, 2, 5; sum 8 < 10) or 15 (factors 1, 3, 5; sum 9 < 15)]

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2026 : Computer Applications (Karnataka ICSE Schools Association KISA, Bengaluru)
by pruthvi98 
ICSE Class X Prelims 2026 : Computer Applications (Hiranandani Foundation School (HFS), Thane) Prelim 2
by kmmmm 
ICSE Class X Prelims 2026 : Computer Applications (Saint Annes School, Titilagarh, Balangir) : Pre-boards
by riyanshi 
ICSE Class X Prelims 2026 : Computer Applications (GEMS Modern Academy, Dubai)
by anirudh67 

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

charanjit89 chat