1) What is object-oriented programming (OOP)? a) A) A programming paradigm based on classes and objects, aiming to model real-world entities using concepts such as inheritance, polymorphism, and encapsulation. b) B) A technique exclusively for designing graphical interfaces in desktop applications. c) C) A set of rules to write algorithms without variables or control structures. d) D) A low-level language used only for programming microcontrollers. 2) What is the difference between a compiler and an interpreter? a) A) A compiler translates the whole program into machine code before execution, while an interpreter translates and executes line by line. b) B) A compiler is only used for low-level languages, and an interpreter only for high-level languages. c) C) A compiler turns the program into graphical images, while an interpreter turns it into text. d) D) A compiler runs programs slower than an interpreter because it analyzes all the code multiple times. 3) Which of these data types are reference types? a) A) boolean b) B) integer c) C) String d) D) char 4) How many public classes can a single file have in Java? a) A) Up to two public classes per file. b) B) Only one public class per file. c) C) As many public classes as you want, no limit. d) D) None, public classes cannot be in files. 5) Which keyword is used to create a new instance of a class in Java? a) A) create b) B) instance c) C) object d) D) new
0%
Object-oriented programming
แชร์
แชร์
แชร์
โดย
Santytiradol
Tecnología
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม