Trending ▼   ResFinder  

ICSE 2017 Mock Test : Computer Applications (Julien Day School (JDS), Hooghly, Howrah)

2 pages, 14 questions, 3 questions with responses, 3 total responses,    0    0
Ashok Bairagi
Calcutta University (CU), Kolkata
B.Sc Biology
+Fave Message
 Home > ashokbairagi >   F Also featured on: School Page

Formatting page ...

JULIEN DAY SCHOOL HOWRAH CLASS X MOCK TEST F.M. 50 Q.1 Answer the following questions:[5 x 2=10] a) Define Function. b) Which access specifier is concerned with inherited class type? c) What do you mean by static binding? d) Why a pure function is called accesser method? e) Differentiate between user-defined and primitive data-type. Q.2 Answer the following questions:[5 x 2=10] a) Distinguish between Instance variable and local variable b) Mention two advantages of using functions in a program. c) Name the different visibility modes in java. d) What is the purpose of this keyword? e) Give 4 differences between constructors and methods. Q.3 a) Ilustrate the use of recursive function to print the factorial of a number [5] b) i) Give the output: [3] ( ii) Write java expression for: [2] void test(int n) { for(int i=1; x<=n; x++) if(n%x==0) System.out.println(x+i); 5a4+b/3c2 | } Q.4 Define a class Telcall that has the following details: [10] Data members : phno, name, amt Member functions : Telcall() parametrized constructor, void comp() to calculate bill as per the rate :- No. of calls Rate 1-100 Rs.500(the rent) 101-300 Rs.1 per call+rent Above 300 Rs.1.50 per call+rent Void display() Display output the format as follows: Phone No. Name Bill Amount Xxxxx xxxx xxxxx Q.5 Write a class named Stack that has two methods named push and pop [10] Member variables : int array[], int n (size of array), int top Constructor : to initialize n, array and top Member method : void push ( int value) to insert value in array at index top void pop() to delete value from from top of array void display() to print the array JULIEN DAY SCHOOL HOWRAH CLASS X MOCK TEST F.M. 50 Q.1 Answer the following questions:[5 x 2=10] a) Define Function. b) Which access specifier is concerned with inherited class type? c) What do you mean by static binding? d) Why a pure function is called accesser method? e) Differentiate between user-defined and primitive data-type. Q.2 Answer the following questions:[5 x 2=10] a) Distinguish between Instance variable and local variable b) Mention two advantages of using functions in a program. c) Name the different visibility modes in java. d) What is the purpose of this keyword? e) Give 4 differences between constructors and methods. Q.3 a) Ilustrate the use of recursive function to print the factorial of a number [5] b) i) Give the output: [3] ( ii) Write java expression for: [2] void test(int n) { for(int i=1; x<=n; x++) if(n%x==0) System.out.println(x+i); 5a4+b/3c2 | } Q.4 Define a class Telcall that has the following details: [10] Data members : phno, name, amt Member functions : Telcall() parametrized constructor, void comp() to calculate bill as per the rate :- No. of calls Rate 1-100 Rs.500(the rent)

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sankalp Mukherjee

(2)

Student

(1)

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

ashokbairagi chat