Core Java/DATA TYPES IN JAVA Sample Test,Sample questions

Question:
FFFF is equal to ?

1.65,535

2.128

3.64

4.None

Posted Date:-2019-03-14 23:24:50


Question:
16-bit unicode character maximum value is ?

1. AAAA

2. FFFF

3. ZZZZ

4. YYYY

Posted Date:-2019-03-14 23:24:50


Question:
16-bit unicode character minimum value is ?

1.u0000

2.u0001

3.u11111

4.-u9999

Posted Date:-2019-03-14 23:24:50


Question:
if(z=0) not supported in ?

1.Java

2.C

3.C++

4.None

Posted Date:-2019-03-14 23:24:50


Question:
Minimum  bytes for double in java?

1.16

2.32

3.64

4.8

Posted Date:-2019-03-14 23:24:50


Question:
Minimum BYTES for float in Java?

1.2

2.1

3.5

4.4

Posted Date:-2019-03-14 23:24:50


Question:
Smallest Data Type in Java

1.long

2.short

3.byte

4.short long

Posted Date:-2019-03-14 23:24:50


Question:
What is rang of byte?

1.-128 to 127

2.32768 to 32767

3.-64 to -63

4.16 to -15

Posted Date:-2019-03-14 23:24:50


Question:
What is rang of int ?

1.-2147,483,648 to 2147,483,647

2.32768 to 32767

3.-128 to 127

4.-64 to 63

Posted Date:-2019-03-14 23:24:50


Question:
What is rang of short?

1.-32768 to 32767

2.-2147,483,648 to 2147,483,647

3.-128 to 127

4.-64 to 63

Posted Date:-2019-03-14 23:24:50


Question:
Which can use in logical conditions e.g. in if () in java ?

1.true /false

2.0/1

3.both

4.None

Posted Date:-2019-03-14 23:24:50


More MCQS

  1. DATA TYPES IN JAVA
  2. Integer and Floating Data Types
  3. Character and Boolean Data Types
  4. Data Type - Enums, BigDecimal, Date & TimeZone Literals & Variables
  5. Operators and Control Statements
  6. Java Environment & OOPS Concepts
  7. Classes ,Constructor ,Methods,Inheritance
  8. String Handling
  9. package java.lang & java.io
  10. Exception Handling
  11. Serialization & Networking
  12. Arrays,Type Conversions, Promotions & Castings
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!