Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 10

1

Class is a user defined data type (T/F).


1.TRUE
2. FALSE


2

Properties of objects are represented as data


members (T/F).
1.TRUE 
2. FALSE
Objects of same class will have similar attributes
(T/F)
1.TRUE 
2.FALSE
Which of the following is not a primitive type
1.int
2.double
3.float
4.String 
The memory allocated to a variable of byte type
1.64
2.32
3.16
4.8 
The stack memory holds object references (T/F)
TRUE 
FALSE
A variable name can start with @ (T/F)
TRUE
FALSE 
Variables declared within a block are called
Local variable 
Global variable
Instance variable
Class variable
Variables declared with static are called
Local variable
Global variable
Instance variable
Class variable 
Which of the following is not a variable type
1.Instance variable
2.Class variable
3.Local variable
4.Public variable 

You might also like