Search Header Logo

Data Types

Authored by Khairina Azra

Engineering

12th Grade

Used 7+ times

Data Types
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

20 sec • 1 pt

int x = 10;

System.out.println(x / 3);

3

3.33

3.0

Compilation error

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

double y = 10 / 3;

System.out.println(y);

3.33

3

3.0

Compilation error

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

char letter = 'A' + 1;

System.out.println(letter);

A

B

66

Compilation error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

boolean result = (5 > 3) && (2 < 1);

System.out.println(result);

true

false

Runtime error

Compilation error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

float f = 5.5;

System.out.println(f);

5.5

5

Runtime error

Compilation error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

System.out.println("10" + 5);

105

15

10 + 5

Compilation error

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

long l = 1000 * 1000 * 1000 * 1000;

System.out.println(l);

1 000 000 000 000

Overflow, incorrect result

Runtime error

Compilation error

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?