NEW
Font size
S
M
L
XL
WorksheetsJava Fundamentals
Total questions: 9
Worksheet time: 3mins
Name
Class
Date
1.
Command Line Arguments are passed to ----
a)
Variable
b)
String
c)
String[ ] args
d)
class
2.
int x=4;
int y=6;
int res=(x>y)?x:y;
find the value of res?
a)
4
b)
6
c)
1
d)
0
3.
int a;
byte b=45;
a=b;
the type conversion is...........
a)
manual
b)
explicit
c)
error
d)
implicit
4.
An integer array of 10 cells is declared as.................
a)
int a[ ]
b)
int[ ]=a
c)
a=new int[10]
d)
int[5][5] a =new int[10]
5.
The size of float data type in bits is______
a)
4
b)
32
c)
2
d)
16
6.
Identify the unary operator among the following.............
a)
a++;
b)
a=b+c;
c)
a=b>c;
d)
a=(b==c)
7.
x=10;
y=15;
d=(--x)+(--y);
a)
25
b)
23
c)
24
d)
26
8.
boolean a=false;
boolean b=true;
boolean c=(a&&b);
find out the value of c ............
a)
True
b)
Error
c)
False
d)
1
9.
int x=7,y=9;
int z=x&y;
find the value of z ........
a)
4
b)
0
c)
1
d)
9
Reset
