Trending ▼   ResFinder  

ICSE Class X Sample / Model Paper 2021 : Computer Applications

3 pages, 27 questions, 0 questions with responses, 0 total responses,    0    0
Soumya Roy
Sikkim Manipal University (SMU), Gangtok
Master of Computer Application Computer Application
+Fave Message
 Home > coolsroy_mdp >

Formatting page ...

MADHUSTHALI VIDYAPEETH F.M 100 Time 2h Date : PRE-BOARD EXAMINATION: 2020-2021 SUBJECT: COMPUTER APPLICATIONS CLASS- X 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. 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 Question 1. (a) Define Java byte code. (b) Write a difference between class and an object. (c) Name the following: (i) The keyword which converts variable into constant. (ii) The method which terminates the entire program from any stage. (d) Which of the following are primitive data types? (i) double (ii) String (iii) char (iv) Integer (e) What is an operator? Name any two types of operators used in Java. Question 2. (a) What is autoboxing in Java? Give an example. (b) State the difference between length and length() in Java. (c) What is constructor overloading? (d) What is the use of import statement in Java? (e) What is an infinite loop? Give an example. [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] Question 3. (a) Write a Java expression for the following: 2 4 [2] (b) Evaluate the following if the value of x=7, y=5 x+=x++ + x + ++y [2] (c) Write the output for the following: [2] String s1 = ''Life is Beautiful''; System.out.println (''Earth'' + s1.substring(4)); System.out.println( s1.endsWith(''L'') ); (d) Write the output of the following statement: [2] System.out.println(''A picture is worth \t \''A thousand words.\'' ''); (e) Give the output of the following program segment and mention how many times the loop will execute: int k; for ( k = 5 ; k < = 20 ; k + = 7 ) if ( k% 6==0 ) continue; System.out.println ( k ); [2] 1 (f)What is the data type returned by the following library methods? (i) isWhitespace() (ii) compareToIgnoreCase() (g) Rewrite the following program segment using logical operators: if ( x > 5 ) if ( x > y ) System.out.println (x+y); (h) Convert the following if else if construct into switch case: if (ch== 'c' || ch=='C') System.out . print(''COMPUTER''); else if (ch== 'h' || ch=='H') System.out . print(''HINDI''); else System.out . print(''PHYSICAL EDUCATION''); (i) Give the output of the following: (i) Math.pow (36,0.5) + Math.cbrt (125) (ii) Math.ceil (4.2 ) + Math.floor (7.9) (j)Rewrite the following using ternary operator: if(n1>n2) r = true; else r = false; [2] [2] [2] [2] [2] SECTION B (60 Marks) Attempt any four questions from this Section. The answers in this Section should consist of the Programs in either Blue J environment or any program environment with Java as the base. Each program should be written using Variable descriptions/Mnemonic Codes so that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 4. A private Cab service company provides service within the city at the following rates: Design a class CabService with the following description: Member variables /data members: String car_type - To store the type of car (AC or NON AC) double km - To store the kilometer travelled double bill - To calculate and store the bill amount [15] Member methods : CabService() - Default constructor to initialize data members. String data members to '' '' and double data members to 0.0. void accept () - To accept car_type and km (using Scanner class only). void calculate () - To calculate the bill as per the rules given above. void display() - To display the bill as per the following format CAR TYPE: KILOMETER TRAVELLED: TOTAL BILL: Create an object of the class in the main method and invoke the member methods. Question 5. Write a program to search for an integer value input by the user in the sorted list given below using linear search technique. If found display ''Search Successful'' and print the element, otherwise display ''Search Unsuccessful''. [15] 2 {31, 36, 45, 50, 60, 75, 86, 90} Question 6. Write a program to input a sentence and convert it into uppercase and display each word in a separate line. Example: Input : India is my country [15] Output : INDIA IS MY COUNTRY Question 7. Design a class to overload a method Number( ) as follows: (i) void Number (int num , int d) - To count and display the frequency of a digit in a number. Example: num = 2565685 d=5 Frequency of digit 5 = 3 (ii) void Number (int n1) - To find and display the sum of even digits of a number. Example: n1 = 29865 Sum of even digits = 16 Write a main method to create an object and invoke the above methods. [15] Question 8. Write a menu driven program to perform the following operations as per user s choice: (i) To print the value of c=a2+2ab, 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. [15] Question 9. Write a program to input name and percentage of 35 students of class X in two separate one dimensional arrays. Arrange students details according to their percentage in the descending order using bubble sort method. Display name and percentage of first ten toppers of the class. [15] 3

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

coolsroy_mdp chat