Java Certification 1 (2025)

Java Certification 1 (2025)

9th - 12th Grade

26 Qs

quiz-placeholder

Similar activities

Text and Image representation

Text and Image representation

11th Grade

22 Qs

JAVA method

JAVA method

12th Grade

21 Qs

Java Review

Java Review

9th Grade - University

25 Qs

N5 Computing Science:  Software Design

N5 Computing Science: Software Design

9th - 10th Grade

21 Qs

Introduction to Multimedia and Photography

Introduction to Multimedia and Photography

12th Grade

23 Qs

Q1-Quiz No. 1 PECs, Environment & Market

Q1-Quiz No. 1 PECs, Environment & Market

9th Grade

22 Qs

حاسب 1 نظري

حاسب 1 نظري

10th Grade

21 Qs

Dasar Komputer

Dasar Komputer

10th Grade

23 Qs

Java Certification 1 (2025)

Java Certification 1 (2025)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Bryan Campbell

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

For very large numbers with decimals, which data type should be used?

Float

Short

Double

Boolean

Long

2.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Where does a java program start executing instructions from:

class

source file

main method

object

3.

DROPDOWN QUESTION

1 min • 4 pts

Media Image

Using the dropdown menus, finish the following code so that the first print prints the number of characters in the s1 variable. The second print needs to print the hexadecimal version of s1.

public class Main {
  public static void main(String[] args) {
    String s1 = "bookworm reader";

int i1 =s1. (a)   ;

 System.out.println(i1);

String s2 = ​ (b)   ("​ (c)   ", i1);​

System.out.println(s2);

}

}

length
length();
%x
String.format
String.convert
%h
%e

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which is not a compound assignment operator?

*=

/=

=

-=

5.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Which of the following statements about instance variables is true?

They are accessible only inside the method where they are declared.

They are shared across all instances of a class.

They are accessible anywhere inside the class but belong to an instance of the class.

They cannot have different values for different objects.

6.

DRAG AND DROP QUESTION

1 min • 4 pts

A new Java developer is trying to get a better understanding of how unary operators affect variables and their displayed values. Using drag and drop, match each print statement with its correct answer, using the following variable declarations:

int x = 13;

int y = 3;

​ ​​ (a)   3

​ (b)   ​ 14​ ​

​ (c)   ​ 12

​ (d)   13

System.out.println(y--);
System.out.println(++x);
System.out.println(x-=1)
System.out.println(x++);

7.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

What will be the output of this code?

String s="Stacey";

s.concat(" Green");

System.out.println(s);

s = "Robin Little";

Robin Little

Stacey Green

Stacey

Green

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?