Computer/Computer Fundamentals (New) Part 7 Sample Test,Sample questions

Question:
Automatic type conversion in Java takes place when

1.Two type are compatible and size of destination type is larger than source type.

2.Two type are compatible and size of destination type is shorter than source type.

3.Two type are compatible and size of destination type is equal of source type.

4.None


Question:
Fill in the blank:
Java is a _____ typed language.

1.Strongly

2.Moderate

3.Weakly

4.All of the above/None of the above


Question:
Fill in the blanks:
The smallest integer type is _____and its size is _____ bits.

1.byte, 8

2.short, 8

3.byte, 16

4.short, 16


Question:
In Java byte, short, int and long all of these are

1.Unsigned

2.Signed

3.A and B

4.None of the above


Question:
Primitive types are the most basic data types available within the Java language. How many primitive data types are there in Java language?

1.5

2.6

3.7

4.8


Question:
What is the size of float and double in Java?

1.64 and 64

2.32 and 64

3.64 and 32

4.32 and 32


Question:
What is the size of int in Java language?

1.16 bit

2.32 bit

3.48 bit

4.64 bit


Question:
Which of the following automatic type conversion will be possible?

1.int to long

2.byte to int

3.short to int

4.long to int


More MCQS

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!