
Basic Java Quiz
Authored by Ameerul Iman
Other
4th Grade
Used 18+ times

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 BLANKS QUESTION
1 min • 1 pt
Jenis data ___ digunakan untuk menyimpan nombor bulat.
The ___ data type is used to store whole numbers.
(a)
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.
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 BLANKS 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.
(a)
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 BLANKS 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.
(a)
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?