Search Header Logo

codinggss

Authored by codingEvent codingEvent

Computers

University

codinggss
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a feature of Java?

object-oriented

Platform-independent

compiled

Interpreted language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a boolean variable in Java?

true

false

0

null

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this operation in Java: (int) (7.9)?

7

7.9

8

Syntax Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of the short data type in Java?

-32768 to 32767

-128 to 127

-2147483648 to 2147483647

0 to 65535

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet

int a = 10;

 int b = 20;

  System.out.println(a + b);

10

20

30

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate this pseudocode:

SET a = 3

SET b = 4

PRINT a * b

7

12

Error

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate this pseudocode:

SET a = 3

SET b = 4

PRINT a * b

7

12

Error

None of the above

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