How To Exam?

a knowledge trading engine...


Bharathidasan University 2008 B.Sc Computer Science JAVA PROGRAMMING - Question Paper

Friday, 18 January 2013 06:35Web

2008 B.Sc Computer Science JAVA PROGRAMMING ques. paper

DEPARTMENT OF COMPUTER SCIENCE

JAVA PROGRAMMING

DURATION:2 Hrs Max:50 Marks
DATE: 28-07-08 TIME :9.15a.m-11.15a.m

I ans the subsequent. (8*1=8)
1. OOPS allows us to decompose a issue into a number of entities called _____.
2. The wrapping up of data and methods into a single unit is known as _____ .
3. _____ means the ability to take more than 1 form.
4. What will be the output of the subsequent code?
byte x= 64, y;
y=(byte) (x<<2);
System. out. println(y);
5. What will be the output of the subsequent code:
byte b;
double d=417.35;
b=(byte) d;
System. out. println(b);
6. provided the value of a provided variable, write the statement, without using if construct,
which will produce the absolute value of the variable.
7. Java compiler produces an intermedia code known as _______ for a machine that does not exist.
8. describe kind casting.
II. ans the subsequent in short. (3*6=18)
1. a) Why is Java known as platform-neutral languages?
(or)
b) List the 8 basic data kinds used in Java?
2. a) How is Java strongly associated with the Internet?
(or)
b) What is scope of a variable?
3. a) List at lowest 5 major differences ranging from C and Java?
(or)
What is initialization? Why is it important?
III .Answer in detail. (2*12=24)
1. a) In what ways does a switch statement differ from if statement. discuss.
(or)
b) Write a program to obtain the number of and sum of all integers freater than 100
and less than 200 that are divisible by 7.
2. a) Form a program to display the series of numbers in a triangle.
(or)
b) Compare the terms of their functions, the subsequent pairs of statements:
a) while and d….while
b) while and for
c) break and continue on.




( 1 Vote )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Bharathidasan University 2008 B.Sc Computer Science JAVA PROGRAMMING - Question Paper