Trending ▼   ResFinder  

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

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

Formatting page ...

Amarjyoti Saraswati International School FIRST PRELIM EXAMIMATION 2019-20 STANDARD : X MAX MARKS : 100 SUBJECT : COMPUTER APPLICATIONS DATE : /12/2019 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 ) Question 1. (a) Name any two basic principles of Object-oriented Programming. (b) Explain the use of this keyword with a suitable example.. (c) Name the keyword which: (i) indicates that a method has no return type. (ii) makes the variable as a class variable. (d) What do you mean by pass by reference ? (e) Give the result of the following , in terms of Boolean values : (i) 2.5 != 2.5 [1] [2] [2] [1] [2] (ii) (12/3) > ((8/4)*2) (f) Identify and name the following tokens: (i) public (ii) 'a' (iii) == (iv) { } Question 2. (a) State a difference between Instance and static variables . (b) Give the output of the following: Math.sqrt(Math.max(9,16)) (c) Write the output for the following: String s1 = ''Gods Of''; String s2 =''Sky'' ; System.out.println(s1.substring(0).concat(s2.substring(2))); System.out.println(s2.toUpperCase()); (d) Evaluate the following expression if the value of x=2, y=3 and z=1. v=x+ --z+ y++ +y (e) String x[] = {"Artificial intelligence", "IOT", "Machine learning", "Big data"}; Give the output of the following statements: (i) System.out.println(x[3]); (ii) System.out.println(x.length); Question 3. [2] [2] [2] [2] [2] [2] (a) If the value of basic=1500, what will be the value of tax after the following statement is executed? tax = basic>1200 ? 200 :100; [2] Output : [2] Int a =1,b=4,c=7,d=0; If(a > 1) If(b>5) If(c>7) d=10; System.out.println(d); Differentiate between Bubble and Selection sorting techniques. [2] What will be the content of s after the following code gets executed ? [1] StringBuffer s = new StringBuffer( Dance Pe Chance ); s.setLength(5); Output : System.out.print((char) 65 + 100); [1] Output : String s = DAD HAD A LAD WHO MADE HIM MAD ; [2] for(int i=0;i<s.length()-5 ;i+=2) System.out.print(s.charAt(i) + \t ); (b) (c) (e) (f) (g) Question 4 (a) Study the diagram given below and answer the following : Package : PatelVilla Package : USPatelVilla Class : Babulal Class : Chatoor (Child of Babulal) Private : Car Private : nm , SS_ID Public : OpenAirTheatre Protected : Farm Default (friendly) : Luna Class : Maganlal (Child of Babulal) Private : HukkaBar Public : Dharmshala Protected : FarmHouse Class : Munna Private : name 1. 2. 3. 4. 5. 6. (b) (c) (d) [3] Class : Edmond Private : nm , SS_ID Name the data members available in the class Maganlal . Name the common data members of Babulal available to Chatoor and Munna . Which data members of Babulal are accessible in the class Edmond ? In which classes the data member Luna is available ? Munna can access which data members of Maganlal ? Which types of inheritance is explained in the above example ? The following code has error(s). Rewrite the correct code underlining all the corrections made : int j; int i =15; int flag = 1; while( j = 2 j < i; j++){ if(i % j = 0) {flag == 0; break; } } Write statement to make an object Aanvi from the class Beauty Write any two characteristics of a Constructor. ASIS Examination 2019-20 Page No 2/4 [2] [1] [2] (e) (f) Write a java statement that check if the 3rd character of str variable is k or not. [1] Polymorphism feature of OOP is implemented using which technique ? [1] 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. Design a class name ShowRoom with the following description: Instance variables / Data members: String name -To store the name of the customer long mobno To store the mobile number of the customer double cost To store the cost of the items purchased double dis To store the discount amount double amount Member methods: - store the amount to be paid after discount To ShowRoom( ) - default constructor to initialize data members void input( ) - To input customer name, mobile number, cost void calculate( ) - [15] To calculate discount on the cost of purchased items, based on following criteria Discount (in Cost percentage) Less than or equal to ` 10000 5% More than ` 10000 and less than or equal to ` 20000 10% More than ` 20000 and less than or equal to ` 35000 15% More than ` 35000 20% void display( ) - To display customer name , mobile number , amount to be paid after discount. Write a main method to create an object of the class and call the above member methods. Question 5. Write a program to create an array STD containing name , totaldays and absent_days as follows : Name Abdul Alfiya Total Days 210 215 ASIS Examination 2019-20 Absent Days 91 210 Page No 3/4 Arshad Muskan 220 200 198 190 Design the methods to perform the following activities : (i) Create an array to store the above table (ii) Print the average of absent days of all the students. (iii) Print name of the student who has minimum absent days. Question 6. Write a program to input 15 integer elements in an array and sort them in ascending [15] order using the bubble sort technique. Question 7. Design a class to overload a function series( ) as follows: (a) void series (int x, int n) To display the sum of the series given below: x1 + x2 + x3 + xn terms (b) void series (int p) To display the following series: 6, 12 24, 48 . p terms (c) void series ( ) To display the sum of the series given below: [15] Question 8. Write a program to input a sentence and convert it into uppercase and count and display the total number of words starting with a letter 'A'. [15] Example: Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING. Sample Output: Total number of words starting with letter 'A' = 4. Question 9. A tech number has even number of digits. If the number is split in two equal halves, [15] then the square of sum of these halves is equal to the number itself. Write a program to generate and print all four digits tech numbers. Example: Consider the number 3025 Square of sum of the halves of 3025 = (30+25)2 = (55)2 = 3025 is a tech number. Imitation is Suicide! Be Unique. ASIS Examination 2019-20 Page No 4/4

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

nirenpandya10 chat