JavaCore

JavaCore

University

20 Qs

quiz-placeholder

Similar activities

II CSM A & B

II CSM A & B

University

15 Qs

Java Coding Questions

Java Coding Questions

University

20 Qs

oops using java quiz

oops using java quiz

University

15 Qs

FGCT4025 Topic 3 - Method

FGCT4025 Topic 3 - Method

University

15 Qs

Java Programming Quiz

Java Programming Quiz

University

18 Qs

JAVA UNIT 1 PART 2

JAVA UNIT 1 PART 2

University

15 Qs

AP Computer Science A Post Unit 2 Check

AP Computer Science A Post Unit 2 Check

10th Grade - University

18 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

JavaCore

JavaCore

Assessment

Quiz

Computers

University

Medium

Created by

Đặng Duy

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JVM?

Is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.

Is a development tool for developer.

Is a set of libraries for developer.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the java file, we must use the documentation comment /**... */ (Java doc) to post information for the?

Class

Method

Fields

All mentioned above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public interface A { public void showA(); }

public class B extends A { public void showA(){} }

public class B implements A { public abstract void showA(){} }

public class B implements A { void showA(){} }

public class B implements A { public void showA(){} }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a valid declaration within an Interface?

public static short STOP = 50;

protected short STOP = 50;

transient short STOP = 50;

final void start(short stop);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Types of Java Comments include:

Single Line Comment

Multi Line Comment

Documentation Comment

A and B are TRUE

E. A, B and C are TRUE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public interface Foo {

int k = 4; /* Line 3 */

}

Which three piece of codes are equivalent to line 3?

1. final int k = 4;

2. public int k = 4;

3. static int k = 4;

4. abstract int k = 4;

5. volatile int k = 4;

6. protected int k = 4;

2, 3 and 4

3, 4 and 5

4, 5 and 6

1, 2 and 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following option make data in an OOP language safe from external modification?

protected

public

private

default

None of above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?