Page 79 - CA_Blue( J )_Class9
P. 79
14. Direct assignment of a constant to a variable is called ………………….
a. dynamic initialisation b. static initialisation
c. assignment d. declaration
15. Conversion from int to long is a form of ………………… conversion.
a. explicit b. implicit
c. reference d. local
16. int a=5, b=4; long c=a + b; is a ………………… type of conversion.
a. explicit b. implicit
c. reference d. local
Answers
1. b 2. d 3. b 4. a 5. a 6. c 7. b 8. c 9. d 10. c
11. d 12. a 13. b 14. b 15. a 16. b
B. Fill in the blanks.
1. Literals are also called ………………….
2. ………………… is the assignment of a value to a variable at the time of declaration.
3. Variable is name of ………………… location.
4. In ………………… type conversion no part of the data value is lost.
5. A string is a set of characters enclosed in ………………… quotes.
6. ………………… data types and ………………… data types are two data types available in Java.
7. Assigning a value means storing a value in a ………………….
8. Range of byte is ………………….
9. A ………………… variable is available to the entire class.
10. In primitive data types, the memory is of ………………… size.
Answers
1. Constant 2. Static initialisation 3. memory 4. implicit 5. Token 6. double
7. Primitive, Reference 8. Variable 9. -128 to 127 10. Global 11. fixed
C. Answer the following questions.
1. Define Keyword.
Ans. Keywords, also known as Reserved Words, are the pre-defined words that are reserved by the Java compiler for a
specific purpose.
2. Define operators.
Ans. Operators are special symbols that signify the compiler to perform some specific mathematical or non-mathematical
operations on one or more operands.
3. What is the difference between ASCII code and UNICODE?
Ans. ASCII code UNICODE
ASCII stands for American Standard Code for Information Unicode stands for Universal Character Encoding.
Interchange.
Standard ASCII character set only supports 128 characters Unicode supports a a wide range of characters, with
(character range whose numeric value is between 0 and 127). more than 1.1 million characters currently defined.
Extended ASCII supports 256 characters (character range 0-255).
ASCII only uses 1 byte to represent each character. Unicode uses variable encoding forms: UTF-8 (1 -4
bytes), UTF-16 (2 -4 bytes), and UTF-32 (4 bytes) to
represent characters.
ASCII code requires less space. Unicode code requires more space.
Values and Types 77

