Trending ▼   ResFinder  

ICSE Class X Prelims 2021 : Computer Applications (St. Stephens School, Dum Dum, Kolkata (Calcutta))

4 pages, 33 questions, 7 questions with responses, 7 total responses,    1    0
A Cloud
St. Stephen's School, Dum Dum, Kolkata (Calcutta)
+Fave Message
 Home > cloudsarenice99 >   F Also featured on: School Page

Formatting page ...

ST. STEPHEN S SCHOOL, DUMDUM PRE BOARD EXAMINATION 2020-21 CLASS-X SUBJECT - COMPUTER APPLICATION F.M 100 Time 2 Hr. Candidates are allowed additional 15 minutes for only reading the paper and 30 minutes for scanning, making and uploading the PDF. (They must NOT start writing during this time.) This paper is divided into two sections. You are to answer all questions from Section A, and any 4 questions from Section B. The intended marks for questions or parts of questions are given in brackets [ ]. Section A (40 marks) (Attempt all questions) (While answering questions from this part, indicate briefly the working and reasoning wherever required.) Question 1. a) b) c) d) e) What is Polymorphism? How it is applicable in Java? What is reserve word in Java? Mention all the names of reserve words. What is default value for String and char? Write two differences between double and float data type. What is the working of trim() function? Give example. [2] [2] [2] [2] [2] Question 2. a) Create a class with one int type and one double type instance variable. Initialize the variable using : i. default constructor [1] ii. parameterized constructor [1] b) State a difference between lastIndexOf() and indexOf() method. [2] c) i. Name the keywords which makes the variable as a class variable. [1] ii.Name the package that contains wrapper class. [1] d) Arrange the following datatypes according to their size. [2] char, byte, double, int e) Write two differences between call by value and call by reference. [2] Protect by PDF Anti-Copy for Android (Update to Pro to remove watermark) Question 3. a) State the data type and value of x after the following is executed : x = Math.ceil(-7.5)+Math.floor(4.7)+Math,pow(3,2); -1 b) Write the Java expression for: + log10y+ cos z c) Convert following for loop into while loop. for(int i=100; i>=50; i=i/5) { x=x*i; System.out.println (x); } d) Give the output of the following: i. LOCKDOWN .replace( O , U ); ii. RENAME .compareTo( REPLACE ); e) Consider the following String array and give output. String sa[ ] = { pizza , burger , cake , momo }; if(sa[0].length()>sa[2].lemgth()) System.out.println(sa[0].substring(0,2); else System.out.println(sa[2].substring(0,2); f) Give the output of the following expression : x + = x++ - ++y + x + y++ ; when a = 10, b=20; g) Give the output of the following loop. for(int i=50;i>=0;i=i-5) int r = r+i; System.out.println( r= +r); h) Evaluate the following and write the value of p & q. int x[ ] = { 15, 20, 25, 30, 35}; a) p= x[3]; b) q= x[0]+x[4]+x[2]; i) What will be the return type and value of y? y= Math.rint(-5.5); j) int a[ ] = new int{10,20,30,40,50,60}; What is the size of the above array? What is the index no of 30 ? [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] Section B (60 marks) (Attempt any 4 questions) (Each program should be written in such a way that it clearly depicts the logic of the problem. This should be achieved by using mnemonics of comments in the program. Write Variable List used in the program.) Question 4. Define a class Railway having the following description: Instance Data Members: String name String coach int amt int charge [15] to store name of the passenger to store type of coach passenger wants to store basic amount of ticket to calculate and store the total rental charge Instance Methods: Railway( ) void input( ) : to initialize the instance variables to default values : to input and store the passenger name, coach and amount using input statement void compute( ) : to compute the total rental charge as per the following basis : Type of coach Rent in Rs. First_AC Rs. 700 Rs. 500 Rs. 250 None Second_AC Third_AC Sleeper void display( ) NAME . : to display the details according to the following format : COACH .. Charge . Write the main ( ) method to create an object and invoke the member methods. Question 5. Write a program to store n integer numbers in an array and Sort and display them in ascending order using the bubble sort technique. Write a method to perform the sorting. Method prototype: void sort ( ) : to sort n integers in ascending order using Bubble Sort technique. [15] Question 6. Write a program to input two numbers and check whether the numbers are amicable or not. [15] void accept( ) : to accept inputs from user using input statement. void check( ) : to check the numbers are amicable pair or not. void show( ) : to display the output. Write the main ( ) method to create an object and invoke the member methods. (Amicable pair is two different numbers so related that the sum of the proper divisors of each is equal to the other number.) Example : (220, 284) are amicable pair because the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110, of which the sum is 284; and the proper divisors of 284 are 1, 2, 4, 71 and 142, of which the sum is 220. Question 7. Write a program to accept 20 integer elements in an array a[ ] using input statement. Now accept a searching element from user and find out how many times it is present in the array using linear search and display the positions. [15] Question 8. Design a class to overload a function void area ( .) that computes the area of a rectangle, a square and a circle. [15] Formula : area of rectangle : l*b [l=length, b=bredth] area of square : s2 [s=side] area of circle : r2 [r=radius] Question 9. Write a menu driven program for the following using switch statement: Choice A ) 1 10 101 1010 10101 Choice B ) sum = + .+ up to n terms [15]

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Jyoti Samel

(4)

Farhan Siddiqui

(2)

Tapas Banerjee

(1)

ResPaper Admins

(1)

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

cloudsarenice99 chat