Primitive Values, Wrapper Classes, Types and Casting
Primitive Values, Wrapper Classes, Types and Casting
(c) Single character (d) Word 13. Language in which names are used instead of
numerical address of the memory location to refer
4. Data types used in Java are also called:
to data is :
(a) Fixed Data Types
(a) Low level (b) Middle level
(b) Ancient Data Types
(c) High level (d) Top level
(c) Primitive Data Types
14. If we use a name to refer to the data stored in the
(d) New Data Types memory, it is called?
5. Elements which are machine independent in Java: (a) Variable (b) Literal
(a) Data types (b) Variables (c) Comment (d) Operator
(c) Literals (d) Characters 15. Where do we declare variables in Java?
6. In Java what are adaptable with IEEE 754? (a) Beginning (b) Initial
(a) Real numbers (b) Integers (c) Declaration (d) Comment
(c) Single character (d) Corrective 16. To be specified by user in conventional syntax, an
7. Which character set is used in Java: item should not be enclosed with:
(a) Numerical (b) IEEE (a) Curly bracket (b) Square brackets
(c) Character (d) Integer (c) Angle brackets (d) Round bracket
8. How many bits of precision are there in char type? 17. The list of item should not have ______ if separated
(a) 13 (b) 14 by commas in conventional syntax.
(c) 15 (d) 16 (a) Curly bracket (b) Square brackets
9. Which data type is not a number ? (c) Angle brackets (d) Round bracket
(a) Char (b) Real 18. Lists containing more than one item can be
(c) Boolean (d) Integer separated by:
10. Which element manipulates the data that is stored (a) Using semi colon
in memory? (b) Using commas
(a) Information (b) Programs (c) Using full stops
(c) Comments (d) Characters (d) Using Colon
19. Which is the incorrect statement while defining 29. Which of the following options are the method of
the variable name? heparin teacher for obtaining hash code for the
(a) It must begin with an alphabet underscore (_) invoking object?
(b) It must begin with a percentage sign (%) (a) int hash()
(c) No spaces are allowed in variables (b) int hashcode()
(c) Corruption of data (d) None of the above (b) Sun Microsystems
Answers