Search Header Logo

Grade 10 - Final Exam practice quiz

Authored by Roshni Misar

Computers

10th Grade

Used 6+ times

Grade 10 - Final Exam practice quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to create a class in Java?

define

struct

class

object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What prints out "I love Java" successfully?

Systemoutprintln("I love Java);

System.out.println("I love" + " Java");

System.out.println(I love Java);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type in Java?

String

double

boolean

int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which access specifier allows the most restricted access?

protected

public

private

internal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function declaration is correct in Java?

public int add() {}

static add() {}

add() public int {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of inheritance is supported in Java by using classes?

Single and multilevel inheritance

Hybrid inheritance

Super inheritance

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a double data type in Java?

2 bytes

8 bytes

4 bytes

16 bytes

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?