Trending ▼   ResFinder  

ICSE-10th standard-Computer Applications-2012

18 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Parthaprotim Nath
HIT,Hooghly,  Kharagpur 
+Fave Message
 Home > 111962 >

Formatting page ...

Computer Applications (Theory)/(Two hours) 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) Name any four tokens of Java. [2] (a) Four tokens of java are: Identifiers, Literals, Operators, Reserved Words, Punctuators, Separators (write any four) (b) Give the difference between actual parameter and formal parameter. [2] (b) Actual parameters are the arguments passed from Calling function to Called Function at the time of function call while formal parameters are the arguments received by the Called function at the time of function call. (c) What is an identifier? [2] (c) Literals or constants are data items that have fixed data values throughout the execution of a program Eg. 23, 23.45, y , 3 , yes , etc. (d) Write an expression in Java for cos x + a2 + b2 [2] (d) double c= Math.cos(x) +a*a+ b*b; (e) What is the result produced by 2 10*3 + 100/11? Show the steps. [2] (e) 2-30+9 = -28+9 = -19 Question 2. (a) What is the difference between local variable and instance variable? [2] Instance variables Local Variables 1. Instance variables are declared in the Local variables are declared with some class body. block like a loop block or if-else block or method body, etc 2. The scope of Instance variables is the The scope of local variables is only within entire class. the block in which they are declared. (b) int x =20, y = 10, z; What is the value of z in z = ++x * (y ) y ? Show the steps. [2] (b) ++x * (y ) y = 21*10-9 =210-9 =201 (c) What is the purpose of default in a switch? [2] (c) The purpose of default in switch-case is that when none of the cases match the argument then the control passes to the default statement and executes it. (d) Give the difference between linear search and binary search. [2] (d) The difference between linear search and binary search is that Linear search can work on sorted and unsorted data while binary search works on sorted data only. (e) What will be the output of the following code? float x = 7.87f; System.out.println(Math.ceil(x)); System.out.println(Math.floor(x)); [2] (e) 8.0 7.0 Question 3. (a) State the difference between if-else if ladder and switch case. [2]

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

111962 chat