icse guess paper computer application 2009

3
COMPUTER APPLICATIONS ( ICSE GUESS PAPER BY: A.L.T. ) < Class: X 2009 > ( SECTION – A ) Q. 1 Explain the function of the following. (a) Repetitive control statement (b) Conditional operator (c) Logical operator && (d) Short hands (e) concat() Q. 2 Define the following Operators with example. (a) ? : (b) [ ] (c) (type) (d) new (e) . dot Q. 3 Write short answer for the following: (a) What is Operator Precedence ? (b) When final keyword is used ? (c) What data type is returned by ^ Operator ? (d) What are Access Specifiers/Modifiers ? (e) What are type Specifiers ? (f) What is Dynamic Initialization ? (g) What is Subscript Lower bond & Upper bond ? (h) What is Type casting ? (i) What is a Cast operator ? (j) What is Mixed expression ? (k) What is Integral Promotion ? (l) What do you mean by Precision ? (m) What is Control Structure ? (n) What are Pseudo Codes ? (o) What are Parameterised Constructor ? (p) What do you mean by Side Effect ? (q) Define the term Interface ? (r) What is a Lifetime of a variable ? (s) What are Visibility Modes ? (t) What is Method Overloading ? (u) What is Polymorphism ? (v) What is a Strem ? (w) What is StringTokenizer ? (x) What is iterative Construct ? (y) What is the expanded form of NaN ? (z) What is Function Prototype ? Q. 4 Evaluate the following expressions: ( When a=4, b=2, c=3 ) (a) a%2+++b*c++; (b) b-- - --c+++a; (c) a++ + b++ + c++; (d) ++a – b++ + c++; (e) ++c+b+a--; Q. 5 Define the following Terms: (a) Abstraction (b) Object (c) Message (d) Encapsulation (e) Inheritance (f) Separators (g) Punctuators (h) Wrappers (i) Actual Parameter (j) Formal Parameter (k) Data hiding (l) Constructor

Upload: ashley-lawrence

Post on 30-May-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

 

COMPUTER APPLICATIONS( ICSE GUESS PAPER BY: A.L.T. )

< Class: X 2009 >( SECTION – A )

Q. 1 Explain the function of the following.(a) Repetitive control statement

(b) Conditional operator(c) Logical operator && (d) Short hands(e) concat()

Q. 2 Define the following Operators with example.(a) ? : (b) [ ] (c) (type)(d) new (e) . dot

Q. 3 Write short answer for the following:(a) What is Operator Precedence ?(b) When final keyword is used ?(c) What data type is returned by ^ Operator ?(d) What are Access Specifiers/Modifiers ?(e) What are type Specifiers ?(f) What is Dynamic Initialization ?(g) What is Subscript Lower bond & Upper bond ?(h) What is Type casting ?(i) What is a Cast operator ?(j) What is Mixed expression ?(k) What is Integral Promotion ?(l) What do you mean by Precision ?(m) What is Control Structure ?(n) What are Pseudo Codes ?(o) What are Parameterised Constructor ?(p) What do you mean by Side Effect ?(q) Define the term Interface ?(r) What is a Lifetime of a variable ?(s) What are Visibility Modes ?(t) What is Method Overloading ?(u) What is Polymorphism ?(v) What is a Strem ?(w) What is StringTokenizer ?(x) What is iterative Construct ?(y) What is the expanded form of NaN ?(z) What is Function Prototype ?

Q. 4 Evaluate the following expressions: ( When a=4, b=2, c=3 )(a) a%2+++b*c++;(b) b-- - --c+++a;(c) a++ + b++ + c++;(d) ++a – b++ + c++;(e) ++c+b+a--;

Q. 5 Define the following Terms:(a) Abstraction (b) Object (c) Message (d)

Encapsulation(e) Inheritance (f) Separators

(g) Punctuators (h) Wrappers(i) Actual Parameter (j) Formal Parameter (k) Data hiding

(l) Constructor

 

----------------------< SECTION B >-----------------------------

Q. 1 Write a program to create 5x5 array and find the sumof both the diagonals (i.e. X )

Q. 2 Write a program to accept mixed string with some capitalletters, small letters & some digits and display thefollowings:(a) Total no. of capital letters.(b) Total no. of small letters.(c) Average of all the digits present in a string.

Q. 3 Accept a string with different cases then display thestring with all capital letters present on a EVEN indexno.and rest in small letter which are present onODD index no.

Q. 4 Write a program to create 4x4 matrix and swap Row No.0 with 1 & Row No. 2 with 3.

Q. 5 A Cyber Café charges for the usage of computer accordingto the following Slab System.For the first 60 Minutes - Rs. 20/=For the next 30 Minutes - Rs. 12/=For the next 15 Minutes - Rs. 8/ =For the rest Minutes - Rs. 2/ = Per Minute

Write a program to print the Café Bill.

Q. 6 Write a program to declare an array with 25 elements andfind the following.(a) Maximum number which is divisible by X.(b) Minimum number which is divisible by X.(c) Maximum number which is not divisible by X.(d) Minimum number which is not divisible by X.

Q. 7 Write a program to store 15 numbers in array and insert anynumber into an array for a requested location no.

Q. 8 Write a program to find the sum of the following series.S= (1+2) + (1+3) – (1+4) * (1+5) / (1+6) + (1+7 ) - ……(1+20)

Note:- Arithmetical symbols are in toggle mode i.e. - + * /

Q. 9 Write a program to remove duplicates from an ordered array.

Q.10 Write a program to declare first array to store Account No.& Deposit Amount, Second array to store Account No. &Withdrawal. Display the Balance of each account.

Q.11 Write a program to accept any two stings and display theresulting string after merging both the stringscharacterwise.

Q.12 Write a program to input two matrices A(5x4) and B(5x4) andcompare both to find that they are identical or not.

Q.13 Design a class to overload a Function pattern()

 

[ i.e. void pattern( int l,int b,char c) ]Draw a pattern of length l and breadth b using thecharacters stored in variable c with two integer and onecharacter argument.

PATTERN :- AbbbCCCCCdddddddEEEEEEEEE

Q.14 A committee has members of different age groups i.e.1. Member below age 12 - Child2. Between age 13 to 40 - Youth3. Above 40 - Elder

Write a program to accept some names & age and displaytotal members in each group.

Q.15 Write a program to declare an array of 25x2 to store name &vote in the form of Y or N. Display the resulting messagethat LEADER was selected or NOT.

Q.16 Convert the following program segment into equivalent Whilestatement & find out the result of the converted programsegment.

Program Segment: int a,b,c,i,x;x=5;a=5;b=3;c=2;if (a>b && a>c)

x=a++-++b+ - -c;else

x=++a-b++ - c++ +2;for (i=1;i<=x;i++)

System.out.println(i);

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*