Ix CMP Bls Final 2016
Ix CMP Bls Final 2016
Attempt all the questions from Section A and any four questions from Section B.
SECTION ‘A’: Attempt all the questions (40 Marks)
Q1. (a) Give any 2 features of Spreadsheets (2 marks each)
(b) Define: Auto fill. Give 2 examples
(c) What is ‘fall through’ ?
(d) What are ‘comments’ in Java ?
(e) What is the significance of Auto sum in M S Excel ?
Q2. Differentiate between: (a) A cell and a Range of cells
(2 marks each)
(b) break and continue
(c) String and Numeric Java literals
(d) Bar and Column chart
(e) Absolute and Relative reference
Q3. (a) Rewrite the following program segment after correcting syntax errors, if any.
Also give the output.
s = 10;
n = 11;
while ( n < 15);
{
s + = n ++;
Sopln (s);
}
Sopln (n);
(
5)
(b) Rewrite the following program segment using a for loop:
int x = 20;
do {
int n = x + x;
System.outprintln(n);
x–=2
} while (x > 10); (5)
Q4. Give the output of the following:
(a) int m = 2;
int n = 15;
for (int i = 1; i < 5; i + +);
m + +;
– – n;
System.out.println(“m = ” + m);
System.out.println(“n = ” + n);2)
(b) char x = ‘A’; int m;
m = (x = = ‘a’)? ‘A’ : ‘a’;
System.out.println(“m = ” + m); (2)
Page 2
-2-
Q4.(contd.) (c) for (int i = 1; i < 10; i + +) (e) char x = ‘A’; (2+2)
{ do {
if (i % 3 = = 0) x = (char) (x + 2);
continue; System.out.println(x);
System.out.printin(i); } while (x < ‘J’);
}
Q6. Write a Java program to input 10 integers and display the product of digits for each. (15)
***