Trending ▼   ResFinder  

ICSE Prelims 2018 : Computer Applications(VERY LENGTHY AND PREDICTIVE PAPER)

6 pages, 64 questions, 59 questions with responses, 199 total responses,    8    0
RaBh
Golden Heights School, Gurgaon
+Fave Message
 Home > rahulbhardwaj2002 >   F Also featured on: icse

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

Formatting page ...

COMPUTER APPLICATIONS (Theory) (Two hours) SECTION A (40 Marks) Attempt all questions Question 1 a. b. c. d. e. f. g. h. i. j. [10] State one similarity and one difference between while and do while loop. State any two differences between character and string data types. Differentiate between one dimensional and two dimensional array. Describe the term Java byte code and what is JVM? Differentiate between = and ==. What is a wrapper class? Give examples. What is inheritance? Write the keyword used to implement inheritance in Java? What is the use of this keyword. What is the difference between a keyword and a reserved word? Explain the use of readLine() method? Write the system class where it lies. What is the garbage collection feature in JAVA? Question 2 a. Explain the function of the following with its syntax and an example: 1. If else 2. do-while 3. switch statement 4. for statement b. Name any four tokens in Java with examples. c. Find the error in this piece of code : Public int check error(void) { int x, y = 10; x = y++; System.Out.Println( result =********** } d. What is meant by order of precedence? Write the following in the order of precedence : * && + > e. What do you mean by iteration? In nested loops, which loop is executed first? f. What is the difference between unary, binary and ternary operators? Give examples of each. g. What does the operation x%y mean? What does that % operator stand for? Question 3 a. Java is robust Explain it in one line. b. What is an access modifier? Give examples of an access modifier. Which modifier gives the most access and which the least? c. Initialize an array with values one , two , three , four . d. What is an escape sequence in java? Give examples. What does the escape sequence \n mean? e. Write the Java expression for the following : b b2 4 ac x= 2a f. If a = 5 and b = 9, calculate the value for a*=a++ - ++b + b Also write the final value stored in b. g. h. i. j. Differentiate between equals() and equalsIgnoreCase(). Explain the shorthand notations in JAVA. Give an example of dynamic initialization. Why is it said that Java is a universal language ? Question 4 a. Give the output of the following code snippet : b. Give the output of the following statements : 1. Math.ceil(-28.56) 2. Math.rint(38.96) 3. Math.floor(144.99) 4. Math.abs(3489.45) 5. Math.max(Math.min(29,72),5) 6. (int)( dreams .charAt(2)) 7. KnOwLEDge .indexOf( e ) 8. MISSISSIPPI .lastIndexOf( S ) 9. PRESIDENT .substring(3,4) 10. APTITUDE .compareTo( ATTITUDE ); c. Fill in the blanks: 1) ? operator is also called as __________. 2) Maximum Storage of data type Double is _________. 3) \t character is used to give ________. 4) _________ prints the statement on the same line. 5) == means _________. d. Give the output of the following code : e. Predict the output of this code : 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 such that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 5 A dealer sells : a. Cricket bats; b. Balls in boxes containing 20 each and c. Pads Write a program in Java to create a bill using the following information given below : INPUT : Date of purchase, name of the buyer, price of each item on that date, quantity of each item. Calculate the total amount, add 15% sales tax if the total amount is greater than Rs. 1,500, 10% if it is greater that Rs. 1,000 or 5% otherwise. (a-2output should be printed with the following headings : S. No. Item Price Qty. Amount AMOUNT XXXXXXX Question 6 Write a menu-driven program which allows the user to get either : (a) The sum of the following series : S = (a-2)-(2a+3)+(3a-4)-(4a+5) ..up to n terms (b) To print the following pattern : 1 22 333 4444 5 5 5 5 5 . n lines (c) To print the following pattern : 2 5 10 17 26 37 50 65 82 101 122 145 170 197 226 Question 7 WAP to store 17 numbers in an array then display all two digit numbers in ascending order and all one digit numbers in descending order and also display the lowest two digit number and the highest single digit number from the list. Question 8 WAP to take a string as input and display the string in the following format : INPUT : MAN IS MORTAL OUTPUT : MNA SI MRTLOA (First consonants then vowels without changing the sequence) Question 9 Take a number as input then display whether it is a magic number or not. A method named int addDigits(int d) will be created to take a number as input which will find the sum of the digits. (A number will be called as magic if sum of the digits reduced to single digit becomes 1) Example : 199 1+9+9 = 19 1+9 = 10 1+0 = 1 Question 10 Write a program to enter a fraction and reduce it to lowest terms. Also find the HCF and LCM of the numerator and denominator. */*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*ALL THE BEST*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\ Please Pardon any Typos . - Rahul Bhardwaj, your ResMitr

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Aayush Joshi

(59)

Anonymous84554

(32)

Abhigyan Agarwal

(27)

Aruna Rander

(26)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

rahulbhardwaj2002 chat