Search Header Logo

java introduction 2

Authored by Selvaraj V

Computers

University

java introduction 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of short data type in Java?

-128 to 127

-32768 to 32767

-2147483648 to 2147483647

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of byte data type in Java?

-128 to 127

-32768 to 32767

-2147483648 to 2147483647

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are legal lines of Java code?

1. int w = (int)888.8;

2. byte x = (byte)100L;

3. long y = (byte)100;

4. byte z = (byte)100L;

1 and 2

2 and 3

3 and 4

All statements are correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An expression involving byte, int, and literal numbers is promoted to which of these?

int

long

byte

float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these literals can be contained in float data type variable?

-1.7e+308

-3.4e+038

+1.7e+308

-3.4e+050

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers