
STM 20483 QUIZ 1
Authored by Rosnani (KKHL)
Computers
University
Used 3+ 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.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is an example of an object-oriented programming language?
Apakah contoh bahasa pengaturcaraan berorientasikan objek?
Java
Pascal
Assembly
COBOL
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What are the main elements of an object in object-oriented programming?
Apakah elemen utama objek dalam pengaturcaraan berorientasikan objek?
Variable and Function
Pembolehubah dan Fungsi.
Attribute and Behavior
Atribut dan Kelakuan.
Input and Output
Syntax and Logic
Sintaksis dan Logik
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Choose the statement that describes the concept of Inheritance in OOP:
Pilih pernyataan yang menerangkan konsep Inheritance dalam OOP:
Allowing an object to call external functions
Membenarkan objek memanggil fungsi luaran
Enabling a class to inherit attributes and methods from another class
Membolehkan satu kelas mewarisi atribut dan kaedah daripada kelas lain
Restricting access to certain attributes
Mengehadkan akses kepada atribut tertentu
Combining data and functions in a single class
Menggabungkan data dan fungsi dalam satu kelas
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the main difference between a Class and an Object?
Apakah perbezaan utama antara Class dan Object?
A class is a real-world instance, while an object is a blueprint.
Kelas adalah contoh nyata, manakala objek adalah cetak biru.
A class is a blueprint, while an object is a real-world instance.
Kelas adalah cetak biru, manakala objek adalah contoh nyata.
A class contains only data, while an object contains methods.
Kelas hanya mengandungi data, manakala objek mengandungi kaedah.
There is no difference between a class and an object.
Tiada perbezaan antara kelas dan objek
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Who created the Java programming language?
Siapa pencipta Bahasa Pengaturcaraan Java
Dennis Ritchie
James Gosling
Bjarne Stroustrup
Linus Torvalds
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is a feature of Java?
Manakah antara berikut yang merupakan ciri Java?
Low-level Programming
Pengaturcaraan Tahap Rendah
Platform-dependent
Bergantung kepada Platform
Object-oriented
Berorientasikan Objek
No Garbage Collection
Tiada Pengumpulan Sampah
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the role of the main( ) method in a Java program?
Apakah peranan fungsi main( ) dalam program Java?
Determines the overall structure of the program
Menentukan struktur keseluruhan program
Executes the first code when the program starts
Menjalankan kod pertama semasa program dimulakan
Declares all variables
Mengisytiharkan semua pemboleh ubah
Connects between multiple classes
Menghubungkan antara pelbagai kelas
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?