don bosco sent up computer sec a
don bosco sent up computer sec a
SECTION A
(Attempt all questions from thịs Section.)
Question 1 [20]
(iv) When primitive data type is converted to a corresponding object of its class, it is called:
(a)Boxing ( b)Unboxing (c) explicit type conversion (d)implicit type conversion
(vi) The method of Scanner class used to accept a double value is:
(a) nextInt() (b)nextDouble() (c)next() (d)nextInteger()
(xii)Which of the following is the wrapper class for the data type char?
(a) String (b)Character (c)Char (d)Float
(xvii)Assertion(A): In java statements written in lower case letter or upper case letter arc
treated as the same
Rcason(R): Java is a case scnsitive language.
(a) Both Assertion (A) and Reason (R) are true and Reason (R)is a correct explanation
(b) Both Asscrtion (A) and Reason (R) are true and Reason (R) is not a correct explanation
of Assertion(A )
(c) Assertion (A) is true and Reason (R) is false
(d)Assertion (A) is false and Reason (R) is true
Xviii ) Read the following text, and chose the correct answer.
A class encapsulate Data Members that contains the information necessary to represent the
class and Member methods that perform operations on the data member.
What does a class encapsulatc?
(xix)The keyword indicates that function does not return any value.
(a) Void (b)this (c)public (d)none of the above
Question 2