Trending ▼   ResFinder  

ICSE Class X Prelims 2019 : Computer Applications (Jamnabai Narsee School (JNS), Mumbai)

4 pages, 33 questions, 28 questions with responses, 48 total responses,    2    0
Minu Joshi
Jamnabai Narsee School (JNS), Mumbai
+Fave Message
 Home > minujoshi >   F Also featured on: School Page

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

FIRST PRELIMINARY EXAMINATION 2018 COMPUTER APPLICATIONS Class: 10 Marks: 100 Time: 2 Hrs. Date: 29/11/2018 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 is to be spent in reading the question paper. The time given at the head of this paper is the time allowed for writing answers. This Paper is divided into two Sections. Attempt all question from Section A and four question from Section B. The intended marks for questions or parts of questions are given in brackets [ ]. This paper consists of 4 printed pages. SECTION A (40 MARKS) (All questions are compulsory) Question 1. a) What do you mean by abstraction? [2] b) Using an example, explain the term object. [2] c) What is wrapper class? [2] d) State the purpose of the new operator. [2] e) Write an expression in java for : [2] sin x + 2 + 2 + Question 2. a) Differentiate between a local variable and a global variable. [2] b) int a = 15 , b = 21 , C; [2] Find the value of C in : C = ++a + b++ * a++ -b; (Show the steps). c) What is the purpose of default in a switch statement? [2] d) Define an impure function. [2] e) What is default constructor? [2] a) Explain the concept of constructor overloading with an example. [2] b) Differentiate between equals ( ) and compareTo(). [2] c) Differentiate between call by value and call by reference. [2] d) What is an identifier? . [2] e) Differentiate between Formal and Actual parameter. [2] Question 3. (1) f) [2] Name the following. i) Package that contains Scanner class. ii) Unit of the class gets called, when the object of the class is created. g) What do you mean by inheritance? [2] h) Write the output of the following [2] i) System.out.println(Character.isUpperCase( R )); ii) System.out.println.(Character.toLowerCase( R )); i) Explain that class is composite data type. [2] j) Analyze the following program segment and determine how many times the [2] loop will be executed and what will be the output? int p=200; while(true) { if(p < 100) break; p = p -20; } System.out.println(p); SECTION B (60 MARKS) (Attempt any four questions) Question 4. Write a program to input a sentence and print the longest word and number of [15] characters found in the longest word of the given sentence. Ex. Input : S = India is my country Output : Longest word = country. Number of characters = 7. Question 5. Write a program in java to input a number and find sum of its prime digits. Ex. Input : 13897 Output = 11 (As 1+ 3 + 7=11 where these are prime digits) (2) [15] Question 6. Write a menu driven program giving user choice to print the triangle or [15] inverted triangle based upon the user s choice. Example 1: Example 2: Input : 1 for triangle Input : 1 for triangle 2 for inverted Triangle: 2 for inverted Triangle: Choice: 1 Choice: 2 Enter value for n: Enter value for n: 5 6 Output: Output: 1 666666 22 55555 333 4444 444 333 5555 22 1 Question 7. Define a class to SumSeries to overload function series as follows: [15] i) double series (double n) which returns the sum of the series, sum = 1 1 1 1 1 1 2 3 4 + + + + .+ ii) double series ( double a , double n) which returns the sum of the series, sum = Question 8. 1 1 1 1 11 2 + 5 + 8 + .to n terms. Write a program in java that accepts sentence from the user, and computes telegram charges as follows. No. of words Ordinary telegram Express Telegram Up to 5 words 5 10 Each additional word 1 2 Ex. Input: Enter sentence: Indian democracy is the largest in the world. Out put : No of Words : 8 Charges = Rs. 8 (3) [15] Question 9. Define a class called Library with the following description: Instance variables / data members : int acc_num - stores the accession number of the book. String title - stores the title of the book. String author stores the name of the author. int fine fine for late return of the book. Member methods : void input ( ) : to input and store the accession number, title and author. void compute ( ) : to accept the number of days late. Calculate the fine charged at the rate of Rs. 2 per day. void display ( ) : To display the details as follows: Accession Number ------------------------ Title Author ----------------------- -------------- Days Late : ___________ Fine : Rs.________________ Write a main( ) method to create an object of the class and call the above member methods. ________________________ XXXXXX _________________________ (4) [15]

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Aquaman- King o...

(26)

Girish

(16)

Chandrachud Gowda

(7)

Ansh Anand

(5)

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

minujoshi chat