java introduction 2

java introduction 2

University

5 Qs

quiz-placeholder

Similar activities

Quiz on CS

Quiz on CS

University

5 Qs

Java Basic Day-2

Java Basic Day-2

University

10 Qs

Java basics

Java basics

University

5 Qs

Бағдарламалау тест1

Бағдарламалау тест1

University

10 Qs

C# Variables and Data Types

C# Variables and Data Types

8th Grade - University

9 Qs

Arrays

Arrays

University

6 Qs

бану

бану

University

10 Qs

Java 6

Java 6

University

10 Qs

java introduction 2

java introduction 2

Assessment

Quiz

Computers

University

Hard

Created by

Selvaraj V

FREE Resource

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