Log In Register

Units


Character And Boolean Data Types - Questions and Answers

 

Practice these Character And Boolean Data Types under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Character And Boolean Data Types for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Character And Boolean Data Types of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Character And Boolean Data Types.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Character And Boolean Data Types under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Character And Boolean Data Types topic of Java Programming:

 

1. Which of these values can a boolean variable contain?

Answer: Option A

Explanation:
 Boolean variable can contain only one of two possible values, true and false.

2. Which of these coding types is used for data type characters in Java?

Answer: Option C

Explanation:
Unicode defines fully international character set that can represent all the characters found in all human languages. Its range is from 0 to 65536.

3. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?

Answer: Option D

Explanation:
First 0 to 127 character set in Unicode are same as those of ISO-LAIN-1 and ASCII.

4.  Which one is a valid declaration of a boolean?

Answer: Option C

Explanation:
Boolean can only be assigned true or false literals.

5. What is the numerical range of a char in Java?

Answer: Option D

Explanation:
Char occupies 16-bit in memory, so it supports 2^16 i:e from 0 to 65535.