Search Header Logo

FINAL TEST FOR JAVA PROGRAMMING 2

Authored by Jeffmark Pinaredondo

Computers

University

Used 2+ times

FINAL TEST FOR JAVA PROGRAMMING 2
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

1 min • 1 pt

Which of the following is a valid Java identifier?

my Variable
2ndVariable
variable-1
myVariable

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the decimal equivalent of the octal number 34?

28
31
42
25

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is the decimal number 63 represented in hexadecimal?

3F
6E
FF
63

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is the octal number 54 converted to binary?

110011
101100
100101
111000

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the expression int x = 5; x++;?

6
4
10
7

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of int y = 8; y--; after this statement is executed?

5
9
6
7

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the expression int z = 10; ++z; evaluate to?

11
0
12
10

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?