OCA Unit 1

OCA Unit 1

11th Grade - Professional Development

23 Qs

quiz-placeholder

Similar activities

Web design

Web design

11th Grade

20 Qs

Uji Pemahaman Microsoft Word X TKJ 1

Uji Pemahaman Microsoft Word X TKJ 1

12th Grade

20 Qs

Introduction to JavaScript

Introduction to JavaScript

9th - 12th Grade

20 Qs

Excel and Python

Excel and Python

7th Grade - University

20 Qs

Quien quiere ser Ingeniero 4.0

Quien quiere ser Ingeniero 4.0

University

20 Qs

Machine Learning

Machine Learning

University

20 Qs

NM-BIG DATA Course

NM-BIG DATA Course

Professional Development

20 Qs

PAS Ganjil Animasi 2D3D

PAS Ganjil Animasi 2D3D

11th Grade

20 Qs

OCA Unit 1

OCA Unit 1

Assessment

Quiz

Computers

11th Grade - Professional Development

Hard

Created by

Danielle Mills

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

23 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are valid Java identifiers? (Choose all that apply)

A$B

_helloWorld

1980_s

java.lang

Public

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

Line 6 generates a compiler error.

Line 7 generates a compiler error.

Empty = false, Brand =

Empty = false, Brand = null

Empty = null, Brand = null

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of the following are true? (Choose all that apply)

Line 5 generates a compiler error.

Line 7 generates a compiler error.

Line 8 generates a compiler error.

Line 6 generates a compiler error.

The code compiles as is.

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Given the following class, which of the following is true? (Choose all that apply)

If String result = "done"; is inserted on line 2, the code will compile.

If String result = "done"; is inserted on line 4, the code will compile.

If String result = "done"; is inserted on line 6, the code will compile.

If String result = "done"; is inserted on line 9, the code will compile.

None of the above changes will make the code compile.

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Given the following classes, which of the following can independently replace INSERT

IMPORTS HERE to make the code compile? (Choose all that apply)

import aquarium.*;

import aquarium.*.Jelly;

import aquarium.jellies.Jelly;

import aquarium.jellies.*;

import aquarium.jellies.Jelly.*;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the following classes, what is the maximum number of imports that can be removed

and have the code still compile?

0

1

2

3

4

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Given the following classes, which of the following snippets can be inserted in place of

INSERT IMPORTS HERE and have the code compile? (Choose all that apply)

import aquarium.*;

import aquarium.Water;

import aquarium.jellies.*;

import aquarium.*;

import aquarium.jellies.Water;

import aquarium.*;

import aquarium.jellies.*;

import aquarium.Water;

import aquarium.jellies.Water;

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers