1.

EXERCISESL Multiple Choice QuestionsTiek (/) the correet answer:1. A constant which gives the exact representation of data is called(a) Variable( Literal(c) Identifier (d) Character2. A word used in a high level language which has a special meaning for thesystem compiler is called(a) Class(b) Identifier (e) Keyword (d) Literal3. A character literal is assigned to a:(a) Char variable(b) Char type literal( String variable(d) String literal4. A character literal is enclosed in:(a)(d) ()5. A set of characters is assigned to:(a) String variable(b) Static variable(c) Boolean variable(d) None6. The ASCII codes of upper case alphabets range from:(a) 65 - 90(b) 60 - 85(c) 65 - 91(d) 97 - 1227. Which of the following results in integer type?(a) 11.4F/3.2D (b) 13.8F/4.6F;(c) 12/3(d) none8. Which of the following is non-primitive data?(b) long(c) object(d) short9. Which of the following type is an exact representation of fractional values?(a) char(b) double(c) byte(d) String10. Boolean Data is used to test a particular condition i.e. true or false. Which ofthe following is a correct representation?(a) boolean m=true(b) boolean m='true'(c) boolean m="true"(d) none(a) char​

Answer»

ANSWER:

Q1 :-

Literal.

Q2 :-

keyword

Q3 :-

CHAR TYPE literal

Q4 :-

OPTION d

Q5 :-

none

Q6 :-

option -c

Q7 :-

option-d

Q8 :-

object

Q9 :-

double

Q10 :-??



Discussion

No Comment Found