ICSE Computer Application - Class X - 2013 PYQ
Table of Content:
Table of Content:
Write a program that encodes a word into Piglatin. To translate word into Piglatin word, convert the word into uppercase and then place the first vowel of the original word as the start of the new word along with the remaining alphabets. The alphabets present before the vowel being shifted towards the end followed by "AY".
Sample Input 1: London
Output: ONDONLAY
Sample Input 2: Olympics
Output: OLYMPICSAY
Design a class to overload a function series( ) as follows:
Using the switch statement, write a menu driven program:
For an incorrect choice, an appropriate error message should be displayed.
State the Java concept that is implemented through:
What are the types of casting shown by the following examples?
double x = 15.2;
int y = (int) x;
int x = 12;
long y = x;
Name the Java keyword that:
String s1 = "good"; String s2 = "world matters"; String str1 = s2.substring(5).replace('t', 'n'); String str2 = s1.concat(str1);
comm = (sale > 15000)? sale * 5 / 100 : 0;
int x = 2, y = 50; do{ ++x; y -= x++; }while(x <= 10); return y;
What is the data type that the following library functions return?
If int n[] = {1, 2, 3, 5, 7, 9, 13, 16}, what are the values of x and y?
x = Math.pow(n[4], n[2]);
y = Math.sqrt(n[5] + n[7]);
int ctr = 0; for(int i = 1; i <= 5; i++) for(int j = 1; j <= 5; j += 2) ++ctr;
Name the method of Scanner class that: