Write the code to create a program that simulates a simple event management system, allowing users to create events, add attendees, and track attendance.
اكتب الكود لإنشاء برنامج يحاكي نظام إدارة أحداث بسيطًا، ويسمح للمستخدمين بإنشاء أحداث، وإضافة الحاضرين، وتتبع الحضور.
اكتب الكود لإنشاء برنامج يحاكي نظام إدارة أحداث بسيطًا، ويسمح للمستخدمين بإنشاء أحداث، وإضافة الحاضرين، وتتبع الحضور.
What is the correct way to create a read-only property in a class in Java?
ما هو الطريقة الصحيحة لإنشاء خاصية للقراءة فقط في فئة في جافا؟
ما هو الطريقة الصحيحة لإنشاء خاصية للقراءة فقط في فئة في جافا؟
جافا Java
What is the correct way to create a read-only property in a class in Java? ما هو الطريقة الصحيحة لإنشاء خاصية للقراءة فقط في فئة في جافا؟
اختر الإجابة الصحيحة
Anonymous Quiz
50%
By using a private field and public getter method
12%
By using a public field
12%
By using a static field
26%
By using a final method
❤1
Which of these is a correct example of method overloading in Java?
أي من هذه هو مثال صحيح لتحميل الطريقة في جافا؟
أي من هذه هو مثال صحيح لتحميل الطريقة في جافا؟
جافا Java
Which of these is a correct example of method overloading in Java? أي من هذه هو مثال صحيح لتحميل الطريقة في جافا؟
اختر الإجابة الصحيحة
Anonymous Quiz
27%
A method with the same name but different return types.
50%
Two methods with the same name but different parameter lists in the same class.
14%
Methods with the same name and parameter list in different classes.
9%
Two methods with different names but the same parameter list in the same class.
Write the code to create a program that simulates a simple inventory management system, allowing users to add, remove, and search for products based on their names, categories, or prices.
اكتب الكود لإنشاء برنامج يحاكي نظام إدارة مخزون بسيطًا، ويسمح للمستخدمين بإضافة، وإزالة، والبحث عن المنتجات بناءً على أسمائها، أو فئاتها، أو أسعارها.
اكتب الكود لإنشاء برنامج يحاكي نظام إدارة مخزون بسيطًا، ويسمح للمستخدمين بإضافة، وإزالة، والبحث عن المنتجات بناءً على أسمائها، أو فئاتها، أو أسعارها.
Which of the following is not a principle of Object-Oriented Programming?
أي من الأتي ليس مبدأً في البرمجة الشيئية؟
أي من الأتي ليس مبدأً في البرمجة الشيئية؟
What is the default value of a static integer variable in Java?
ما هي القيمة الافتراضية لمتغير صحيح ثابت في جافا؟
ما هي القيمة الافتراضية لمتغير صحيح ثابت في جافا؟
Write the code to implement a simple 'if-else' statement to check if a number is positive or negative in Java.
اكتب الكود لتنفيذ جملة 'if-else' بسيطة للتحقق مما إذا كان الرقم موجبًا أم سالبًا في جافا.
اكتب الكود لتنفيذ جملة 'if-else' بسيطة للتحقق مما إذا كان الرقم موجبًا أم سالبًا في جافا.
Which of the following is a valid declaration of a method that returns an array of integers in Java?
أي من الأتي هو تعريف صالح لطريقة تعيد مصفوفة من الأعداد الصحيحة في جافا؟
أي من الأتي هو تعريف صالح لطريقة تعيد مصفوفة من الأعداد الصحيحة في جافا؟
جافا Java
Which of the following is a valid declaration of a method that returns an array of integers in Java? أي من الأتي هو تعريف صالح لطريقة تعيد مصفوفة من الأعداد الصحيحة في جافا؟
اختر الإجابة الصحيحة
Anonymous Quiz
67%
public int[] getNumbers() {}
17%
public int getNumbers[]() {}
10%
int[] public getNumbers() {}
6%
getNumbers()[] int public {}
❤2🔥1
Which of the following correctly declares an array of integers in Java?
أي من الأتي يعلن بشكل صحيح عن مصفوفة من الأعداد الصحيحة في جافا؟
أي من الأتي يعلن بشكل صحيح عن مصفوفة من الأعداد الصحيحة في جافا؟
Write the code to create a program that reads a CSV file containing student information (name, age, grade) and calculates the average grade for each age group.
اكتب الكود لإنشاء برنامج يقرأ ملف CSV يحتوي على معلومات الطالب (الاسم، العمر، الدرجة) ويحسب متوسط الدرجة لكل فئة عمرية.
اكتب الكود لإنشاء برنامج يقرأ ملف CSV يحتوي على معلومات الطالب (الاسم، العمر، الدرجة) ويحسب متوسط الدرجة لكل فئة عمرية.
What will the following code snippet print?
ماذا سيطبع مقتطف الكود التالي؟
if (false) {
System.out.println("True");
} else {
System.out.println("False");
}
ماذا سيطبع مقتطف الكود التالي؟
if (false) {
System.out.println("True");
} else {
System.out.println("False");
}
جافا Java
What will the following code snippet print? if (false) { System.out.println("True"); } else { System.out.println("False"); } ماذا سيطبع مقتطف الكود التالي؟ if (false) { System.out.println("True"); } else { System.out.println("False");…
اختر الإجابة الصحيحة
Anonymous Quiz
24%
"True"
41%
"False"
22%
Nothing, it will cause a compile-time error
12%
Nothing, it will cause a runtime error
❤1
👍2