Search Header Logo

Basic Java Quiz

Authored by Ameerul Iman

Other

4th Grade

Used 18+ times

Basic Java Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Jenis data ___ digunakan untuk menyimpan nombor bulat.

The ___ data type is used to store whole numbers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Untuk mencetak teks, kita menggunakan kaedah _______ daripada kelas System.out.

To print text, we use _______ method from the System.out class.

print

printf

println

printline

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Penyataan manakah yang digunakan untuk melaksanakan blok kod hanya jika syarat tertentu adalah benar?

Which statement is used to execute a block of code only if a specified condition is true?

switch statement

for loop

while loop

if statement

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

_____ digunakan untuk melaksanakan blok kod berulang kali selagi syarat tertentu adalah benar.
A _____ loop is used to execute a block of code repeatedly as long as a specified condition is true.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ________ loop is used to iterate over a range of values or elements in a collection./

________ digunakan untuk mengulangi julat nilai atau elemen dalam koleksi.

for

while

do-while

switch

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A _____ is a blueprint for creating objects, defining their properties and behaviors.

_____ ialah pelan induk untuk mencipta objek, menentukan sifat dan tingkah lakunya.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An ____ is an instance of a class.

____ ialah satu contoh bagi sesuatu kelas.

method

object

attribute

interface

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?