Search Header Logo

OCA-C1

Authored by Kiều Thị

Professional Development

1st - 3rd Grade

Used 1+ times

OCA-C1
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 SELECT QUESTION

30 sec • 1 pt

Which are true? (Choose all that apply.)

“X extends Y” is correct if and only if X is a class and Y is an

interface

“X extends Y” is correct if and only if X is an interface and Y is a class

“X extends Y” is correct if X and Y are either both classes or both interfaces

“X extends Y” is correct for all combinations of X and Y being classes and/or interfaces

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Given:

As the code stands, the output is bang

As the code stands, the output is sh-bang

As the code stands, compilation fails

If line A is uncommented, the output is bang bang

If line A is uncommented,the out put is sh-bang bang

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Given that the for loop’s syntax is correct, and given:

And the command line:

java _ - A .

-A

A.

_A.

An exception is thrown at runtime

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the result?

Multiple compilation errors

Compilation fails due to an error on line 4

Compilation fails due to an error on line 2

woof burble

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

What is the result? (Choose all that apply.)

Compilation fails with an error on line 10

5 followed by an exception

Compilation fails with an error on line 8

Compilation fails with an error on line 9

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the result? (Choose all that apply.)

Compilation succeeds

Compilation fails with an error on line 1, 3, 5

Compilation fails with an error on line 7, 9

Compilation fails with an error on line 1, 3

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What is the result? (Choose all that apply.)

Compilation fails with an error on line 6

Compilation fails with an error on line 9

Compilation fails with an error on line 7

Compilation fails with an error on line 8

Compilation succeeds

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?