Search Header Logo

Semester 1 Review 1

Authored by Jeffrey Smith

Computers

12th Grade

Used 5+ times

Semester 1 Review 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Give the output (type error if there is an error):

int x = 5 % 3;

System.out.print(x);

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Give the ouput:

double x = 5 / 3;

System.out.println(x);

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Give the ouput:

double x = (double)7 / 2;

System.out.println(x);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Sterling silver is pure silver.

True

False

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Give the output:

System.out.println(5 + 2 * 3);

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is returned?

String s = "123";

if(s == "123")

return true;

return false;

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is returned?

String s1 = new String("apple");

String s2 = new String("apple");

if(s1 == s2)

return true;

return false;

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?