Here's a Java quiz question for you:
Topic: Java Basics
Difficulty: Easy
Question: What is the output of the following code snippet?
a) 7
b) 9
c) 12
d) 14
Please select the correct option (a, b, c, or d) and let me know your answer.
ترجمة السؤال:
هنا سؤال مسابقة في جافا لك:
الموضوع: أساسيات جافا
الصعوبة: سهلة
السؤال: ما هو الناتج من مقتطف الكود التالي؟
أ) 7
ب) 9
ج) 12
د) 14
يرجى اختيار الخيار الصحيح (أ، ب، ج، أو د) وإعلامي بإجابتك.
Topic: Java Basics
Difficulty: Easy
Question: What is the output of the following code snippet?
int x = 5;
int y = 2;
int result = x + y * 2;
System.out.println(result);
a) 7
b) 9
c) 12
d) 14
Please select the correct option (a, b, c, or d) and let me know your answer.
ترجمة السؤال:
هنا سؤال مسابقة في جافا لك:
الموضوع: أساسيات جافا
الصعوبة: سهلة
السؤال: ما هو الناتج من مقتطف الكود التالي؟
int x = 5;
int y = 2;
int result = x + y * 2;
System.out.println(result);
أ) 7
ب) 9
ج) 12
د) 14
يرجى اختيار الخيار الصحيح (أ، ب، ج، أو د) وإعلامي بإجابتك.
👍2
Here's a Java quiz question for you:
Question: What is the output of the following code snippet?
A) 5
B) 10
C) 15
D) 20
Please select the correct option (A, B, C, or D) and let me know your answer.
ترجمة السؤال:
سؤال: ما هو الناتج من مقطع الشفرة التالي؟
أ) 5
ب) 10
ج) 15
د) 20
يرجى اختيار الخيار الصحيح (أ، ب، ج، أو د) وإعلامي بإجابتك.
Question: What is the output of the following code snippet?
int x = 5;
int y = 10;
int z = x + y;
System.out.println(z);
A) 5
B) 10
C) 15
D) 20
Please select the correct option (A, B, C, or D) and let me know your answer.
ترجمة السؤال:
سؤال: ما هو الناتج من مقطع الشفرة التالي؟
int x = 5;
int y = 10;
int z = x + y;
System.out.println(z);
أ) 5
ب) 10
ج) 15
د) 20
يرجى اختيار الخيار الصحيح (أ، ب، ج، أو د) وإعلامي بإجابتك.
👍1👎1
What is the output of the following code?
A) 2
B) 1
C) 3
D) 0
ترجمة السؤال:
ما هو الناتج الناتج من الكود التالي؟
أ) 2
ب) 1
ج) 3
د) 0لا تقم بالإجابة عليها
int a = 5;
int b = 3;
System.out.println(a % b);
A) 2
B) 1
C) 3
D) 0
ترجمة السؤال:
ما هو الناتج الناتج من الكود التالي؟
int a = 5;
int b = 3;
System.out.println(a % b);
أ) 2
ب) 1
ج) 3
د) 0لا تقم بالإجابة عليها
❤🔥2❤1👎1
What is the output of the following code?
A) true
B) false
C) 10 > 5
D) 1
ترجمة السؤال:
ما هو الناتج الناتج للكود التالي؟
أ) صحيح (true)
ب) خاطئ (false)
ج) 10 > 5
د) لا تقم بالإجابة عليه
int x = 10;
int y = 5;
System.out.println(x > y);
A) true
B) false
C) 10 > 5
D) 1
ترجمة السؤال:
ما هو الناتج الناتج للكود التالي؟
int x = 10;
int y = 5;
System.out.println(x > y);
أ) صحيح (true)
ب) خاطئ (false)
ج) 10 > 5
د) لا تقم بالإجابة عليه
👎3❤1
What is the output of the following code?
A) 4
B) 5
C) 6
D) Compilation Error
ترجمة السؤال:
ما هو الناتج من الشيفرة التالية؟
أ) 4
ب) 5
ج) 6
د) خطأ في التجميع
int x = 4;
int y = ++x;
System.out.println(y);
A) 4
B) 5
C) 6
D) Compilation Error
ترجمة السؤال:
ما هو الناتج من الشيفرة التالية؟
int x = 4;
int y = ++x;
System.out.println(y);
أ) 4
ب) 5
ج) 6
د) خطأ في التجميع
What does the 'static' keyword in Java mean?
A) The variable or method is shared among all instances of the class
B) The variable or method is only accessible within the class it is declared
C) The variable or method can be overwritten in a subclass
D) None of the above
ترجمة السؤال:
ماذا يعني الكلمة المفتاحية 'static' في جافا؟
أ) المتغير أو الدالة مشتركة بين جميع النماذج من الفئة
ب) المتغير أو الدالة يمكن الوصول إليها فقط داخل الفئة التي تم فيها الإعلان
ج) يمكن أن يتم الكتابة فوق المتغير أو الدالة في فئة فرعية
د) لا شيء من ما سبق
A) The variable or method is shared among all instances of the class
B) The variable or method is only accessible within the class it is declared
C) The variable or method can be overwritten in a subclass
D) None of the above
ترجمة السؤال:
ماذا يعني الكلمة المفتاحية 'static' في جافا؟
أ) المتغير أو الدالة مشتركة بين جميع النماذج من الفئة
ب) المتغير أو الدالة يمكن الوصول إليها فقط داخل الفئة التي تم فيها الإعلان
ج) يمكن أن يتم الكتابة فوق المتغير أو الدالة في فئة فرعية
د) لا شيء من ما سبق
🔥2
جافا Java
كم تحبون عدد الأسئلة تكون بالبيوم بحيث مايكون ازعاج او قليل
مجهز لكم اشياء احترافية 🔥
بس اتمنى تتفاعلون علشان احس انه في اهتمام للي جالس اسويه ممكن تنشروا الرابط
https://t.me/learn_java_s
بس اتمنى تتفاعلون علشان احس انه في اهتمام للي جالس اسويه ممكن تنشروا الرابط
https://t.me/learn_java_s
Telegram
جافا Java
سر نجاح المبرمجين هو الاستمرارية. عندما تواجه تحديات، استمر في العمل، وعندما تحقق إنجازات، استمر في التعلم.
❤4👍4🔥2❤🔥1
Write a Java method named 'add' that takes two integers as parameters and returns their sum.
اكتب طريقة جافا بأسم 'add' تأخذ عددين صحيحين كمعاملات وترجع مجموعهم.
اكتب طريقة جافا بأسم 'add' تأخذ عددين صحيحين كمعاملات وترجع مجموعهم.
جافا Java
Write a Java method named 'add' that takes two integers as parameters and returns their sum. اكتب طريقة جافا بأسم 'add' تأخذ عددين صحيحين كمعاملات وترجع مجموعهم.
الأسئلة من اليوم بتكون منوعه بين السهل والصعب والمتوسط وانوع مختلفه مثلا اكتب الكود واختار الاجابه الصحيحه.......
خلينا نشوف ابداعكم🔥
خلينا نشوف ابداعكم
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7❤3🔥2
Which of these is not a valid Java access modifier?
Anonymous Quiz
19%
public
13%
protected
56%
transient
12%
private
👍3❤1🔥1
Which method signature correctly overrides the 'equals' method inherited from 'Object' class in Java?
Anonymous Quiz
40%
public boolean equals(Object obj)
14%
public boolean equals()
18%
public void equals(Object obj)
29%
public boolean equals(Object obj, Object obj2)
Determine the output of this Java code:
حدد مخرجات هذا الكود الجافا:
int[] numbers = {1, 2, 3, 4, 5};
for (int i = numbers.length - 1; i >= 0; i--) {
System.out.print(numbers[i] + "");
} حدد مخرجات هذا الكود الجافا:
int[] numbers = {1, 2, 3, 4, 5};
for (int i = numbers.length - 1; i >= 0; i--) {
System.out.print(numbers[i] + "");
}In a Java program, how do you safely stop a thread?
Anonymous Quiz
49%
By calling the stop() method on the thread
20%
By using a boolean flag to control the execution of the thread
9%
By calling the interrupt() method on the thread
22%
By setting the thread to null
Which of the following is not an OOP concept in Java?
Anonymous Quiz
7%
Inheritance
12%
Encapsulation
11%
Polymorphism
70%
Compilation
❤3
In Java, what is a 'package' and how is it used?
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
Which of the following is a correct way to instantiate an object in Java?
Anonymous Quiz
12%
ClassName objectName = ClassName();
79%
ClassName objectName = new ClassName();
4%
new ClassName objectName;
5%
ClassName objectName = create ClassName();