Trending ▼   ResFinder  

ICSE Prelims 2017 : Computer Applications (Akash International Residential Public School, Bangalore)

5 pages, 31 questions, 30 questions with responses, 67 total responses,    0    0
jegajeevan
Akash International School (AIS), Bangalore
8 to 10 Computer Applications
+Fave Message
 Home > jegajeevan >   F Also featured on: School Page

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

Formatting page ...

AKASH INTERNATIONAL SCHOOL Prasannahalli road, Devanahalli, Bangalore - 562 110 Pre-Board Examination - 2017 Date : Class: X - ICSE SUBJECT: Computer Applications (Theory) MaximumMarks:100 Duration: Two hours 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 this 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. You are to answer 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) Give any two features of Java language. [2] (b) Differentiate between operator and expression. [2] (c) What is an abstraction? [2] (d) Distinguish between unary operator and binary operator. [2] (e) What are the default value of double and char data types? [2] Question 2: (a) Consider the following segment and answer the following. int P = 5; System.out.println(++P); System.out.println(P); i) What will be the output of the above code? ii) What will be the output if ++P is replaced with (P+1)? [2] (b) Given the following set of identifiers: [2] int i; char c; long L; float f; Identify the datatype of the following expression: i) c + i ii) i * L - f (c) Write the size and range of acceptable values of byte and int datatypes [2] (d) Write down java expression for: [2] i) ii) 4n+ | | (e) Briefly explain two ways of invoking function. [2] Question 3: (a) Explain any two types of access specifiers. [2] (b) Explain the following Math functions with an example each [2] i. Math.ceil (y); ii. Math.floor(z); (c) If z = 10, find the value of X for the expression i. X = (5 * ++z)% 3; ii. X = d % 50; [2] (d) What is the use of exception handling? [2] (e) What will be the output of the following program. [2] class xyz { public static void show() { char ch1 = A , ch2 = B , ch3 = b , ch4 = e ; int a, b, c, d; a = ch1; b = ch2; c = ch3; d = ch4; System.out.println( ch1 = + ch1 + \t a= + a); System.out.println( ch2 = + ch2 + \t b= + b); System.out.println( ch3 = + ch3 + \t c= + c); System.out.println( ch4 = + ch4 + \t d= + d); } } (f) Write the output and rewrite the following using conditional operator. [2] int age = 60; String S; if (age >=60) S = Senior Citizen ; else S = Not a Senior Citizen ; System.out.println( You are : + S); (g) What will be the output of following function when invoked: [2] public void num() { long y = 47561, n = y, p; while (n>0) { p = n%10; System.out.println(Math.pow(p,2)); n=n/100; } System.out.println(y); } (h) What is the output of the following code snippet? [2] String s1 = "MoreEnergySavingSchemes"; String s2 = ""; int i; for(i=0; i < s1.length(); i++) { String temp = s1.substring(i,i+1); if( temp.equals( temp.toUpperCase() ) ) s2 = s2.concat(temp); } System.out.println("Answer: " + s2); (i) Write a java statement to declare double subscripted variables of 4 rows, 5 columns [2] (j) Give the output of the following java code snippet. [2] int A [] = {5, 20,50,110,170}; int a = A.length; int b = 0, j=1; for (int i = 0; i<a; i++, j++) { b = A [i] + A[(a-j)]; System.out.println(b); } 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 so that the logic of the program is clearly depicted. Flow-Charts and Algorithms are not required. Question 4: Write a program to accept the names of 10 cities in a single dimension string array and their STD (Subscribers Trunk Dialing) codes in another single dimension integer array. Search for a name of a city input by the user in the list. If found, display Search Successful and print the name of the city along with its STD code, or else display the message Search Unsuccessful, No such city in the list . [15] Question 5: Write a menu driven program to access a number from the user and check whether it is a BUZZ number or to accept any two numbers and to print the GCD of them. [15] a) A BUZZ number is the number which either ends with 7 or it is divisible by 7. b) GCD (Greatest Common Divisor) of two integers is calculated by continued division method. Divide the larger number by the smaller; the remainder then divides the previous divisor. The process is repeated till the remainder is zero. The divisor then results the GCD. Question 6: Create a java program to input a word through keyboard and print the ASCII code of each character present in the word and total of ASCII code. Example: Enter the word: Book B 66 o 111 o 111 k 107 ============ Sum = 395 ============ [15] Question 7: Write a java program to check the entered word is special word. When first character of the word is removed and added at last and reversed it becomes the same word. (Example: banana when first letter is removed and added at last it become ananab and after reversing it, it becomes the original word) [15] Question 8: Create a java class Stock having constructor, following member methods and data members Data members : Item, Quantity, Rate, Amt and Tot_Value Member Methods: i. void input () to input 5 items, Quantity and their rate ii. void Calc() to calculate the value of the stock iii. void display() to display the current stock with values iv. main method to invoke the above. [15] Question 9: Write a java program to print the following pattern using loops 1234554321 1234 4321 123 321 12 21 1 1 [15]

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Ãwe§♥m€ l...

(29)

Rishabh Shah

(5)

Diksha Thakur

(5)

vedant61

(5)

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : https://www.youtube.com/channel/UCU0H4Rz53fG0Z2-7XiU9V_Q/videos  

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

 

jegajeevan chat