Search Header Logo

Java OOP Connections

Authored by Carol Luce

Computers

10th - 12th Grade

Used 94+ times

Java OOP Connections
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A Java block is formed by enclosing statements using open and close curly brackets. True or False?

True

False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identifiers can start with a number. True or False?

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This is the general structure for a method:

<Returnvalue type> <Method Name> (argument / s)

<Modifier> < type> <Method Name> (parameter / s)

public static void main (String[ ] args)

<Method Name> (parameter)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The difference between a static and non static method is:

For a non static method the user needs to create object in a class to call that method.

A non-static method performs only a specific task.

There is no significant difference between a static and non - static method.

Both are bounded with a class.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

The data type for non returning method is:

int

double

void

public static

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the type of error that exists in this method program.

Logic error

runtime error

syntax error

Value error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrapping of data into a single unit called class called?

Abstraction

Interface

Encapsulation

Instantiation

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?