Page 49 - CA_Blue( J )_Class10
P. 49
Let's Revisit
® A character set is a set of letters, digits, and special characters that a programming language can support.
® To store character values, corresponding numeric values in binary form are generated.
® ASCII (American Standard Code for Information Interchange) is a character encoding standard for text files on computers
and other devices.
® Unicode (Universal Character Encoding Standard) earlier known as Universal Coded Character that defines the way
individual characters are represented in different types of documents, such as text files, web pages, and other types of
documents.
® A non-graphical character that is preceded by a backslash (\) and has a special meaning for the compiler is known as an
escape sequence character.
® A token is considered the smallest individual element in a Java program that has a meaning.
® Keywords are reserved words that are pre-defined in the Java compiler for a specific purpose.
® Identifiers in Java are a sequence of characters to identify something in a program.
® Literals are the values that can be stored in variables.
® A data type is a category that specifies the possible values in a variable or data structure and how those values are stored in the
computer's memory.
® Primitive data types are predefined or built-in data types in the Java programming language.
® Non-primitive data types are also called reference data types or composite data types.
® Variable is the name of the area reserved in computer memory for an identifier to store a value. In other words, it is a name
of the memory location.
® Type conversion is a process of changing one type value to another type.
MIND DRILL
Solved Questions
A. Tick ( ) the correct answer.
1. Which of the following special symbol can be used in Java identifier?
a. # b. @
c. _ d. -
2. Which of the following is a token in Java?
a. Operators b. Identifiers
c. Literals d. All of these
3. Which of the following is encoding techniques made of 128 characters consisting of letters, digits and special characters?
a. Unicode b. ASCII
c. Both a and b d. None of these
4. Which of the following is the new line character?
a. \t b. \f
c. \' d. \n
5. Which of the following symbol is used to create string literals?
a. Single quotes b. Double quotes
c. Questions mark d. Greater than
6. Which of the following is not the correct value that can be stored in char type variable?
a. '1' b. 'B'
c. "Hello World!" d. '&'
47
Values and Data Types 47

