Search Header Logo

OPPS-IT-B-B1 QUIZ-2

Authored by roja laveti

Education

University

Used 1+ times

OPPS-IT-B-B1 QUIZ-2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of the long variable in java

4 bytes

8 Bytes

2 Bytes

6 Bytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of the short variable in java

-128 To 127

-32768 To 32767

0 to 65535

-32767 To 32768

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not primitive types in java.

boolean

Integer

float

double

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to store low precision floating numbers .

double

float

int

long

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid java identifier ?

my_var

_myvar

$myvar

3myVar

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not valid way to declare long type variable

long x=123L

long x=0x123

long x=123.0

long x=123

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class char_increment

{

public static void main(String a[])

{

char c1='D';

char c2=84;

c2++;

c1++;

System.out.println(c1+" " c2);

}

}

E U

U E

V E

U F

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?