EXERCISES
L Multiple Choice Questions
Tiek (/) the correet answer:
1. A constant which gives the exact representation of data is called
(a) Variable
( Literal
(c) Identifier (d) Character
2. A word used in a high level language which has a special meaning for the
system compiler is called
(a) Class
(b) Identifier (e) Keyword (d) Literal
3. A character literal is assigned to a:
(a) Char variable
(b) Char type literal
( String variable
(d) String literal
4. 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) None
6. The ASCII codes of upper case alphabets range from:
(a) 65 - 90
(b) 60 - 85
(c) 65 - 91
(d) 97 - 122
7. Which of the following results in integer type?
(a) 11.4F/3.2D (b) 13.8F/4.6F;
(c) 12/3
(d) none
8. Which of the following is non-primitive data?
(b) long
(c) object
(d) short
9. Which of the following type is an exact representation of fractional values?
(a) char
(b) double
(c) byte
(d) String
10. Boolean Data is used to test a particular condition i.e. true or false. Which of
the following is a correct representation?
(a) boolean m=true
(b) boolean m='true'
(c) boolean m="true"
(d) none
(a) char
Answers
Answered by
8
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 :-??
Answered by
8
Answer:
this is your answer
I hope you help
Attachments:
Similar questions
Social Sciences,
4 months ago
Science,
4 months ago
Physics,
4 months ago
English,
8 months ago
Math,
11 months ago
Computer Science,
11 months ago