لا تريد أن تفوت شيئا؟

نصائح اجتياز امتحان الشهادة

آخر أخبار الامتحانات ومعلومات الخصم

برعاية وحديثة من قبل خبرائنا

نعم، أرسل لي النشرة الإخبارية

خذ اختبارات أخرى عبر الإنترنت

السؤال #1
Given the definition of the Book class: Which statement is true about the Book class?
A. It demonstrates encapsulation
B. It is defined using the factory design pattern
C. It is defined using the singleton design pattern
D. It demonstrates polymorphism
E. It is an immutable class
عرض الإجابة
اجابة صحيحة: A
السؤال #2
Which two reasons should you use interfaces instead of abstract classes? (Choose two.)
A. You expect that classes that implement your interfaces have many common methods or fields, or require access modifiers other than public
B. You expect that unrelated classes would implement your interfaces
C. You want to share code among several closely related classes
D. You want to declare non-static on non-final fields
E. You want to take advantage of multiple inheritance of type
عرض الإجابة
اجابة صحيحة: B
السؤال #3
Given that /green.txt and /colors/yellow.txt are accessible, and the code fragment: Path source = Paths.get(“/green.txt); Path target = Paths.get(“/colors/yellow.txt); Files.move(source, target, StandardCopyOption.ATOMIC_MOVE); Files.delete(source); Which statement is true?
A. The green
B. The yellow
C. The file green
D. A FileAlreadyExistsException is thrown at runtime
عرض الإجابة
اجابة صحيحة: A
السؤال #4
Given the code fragment: Map books = new TreeMap<>(); books.put (1007, “A”); books.put (1002, “C”); books.put (1001, “B”); books.put (1003, “B”); System.out.println (books); What is the result?
A. {1007 = A, 1002 = C, 1001 = B, 1003 = B}
B. {1001 = B, 1002 = C, 1003 = B, 1007 = A}
C. {1002 = C, 1003 = B, 1007 = A}
D. {1007 = A, 1001 = B, 1003 = B, 1002 = C}
عرض الإجابة
اجابة صحيحة: B
السؤال #5
Given the content: and the code fragment: What is the result?
A. username = Entrez le nom d’utilisateur password = Entrez le mot de passe
B. username = Enter User Name password = Enter Password
C. A compilation error occurs
D. The program prints nothing
عرض الإجابة
اجابة صحيحة: A
السؤال #6
Given the code fragment: What is the result?
A. A compilation error occurs at line n2
B. 3
C. 2
D. A compilation error occurs at line n1
عرض الإجابة
اجابة صحيحة: A
السؤال #7
Given the records from the STUDENT table: Given the code fragment: Assume that the URL, username, and password are valid. What is the result?
A. The STUDENT table is not updated and the program prints: 114 : John : john@uni
B. The STUDENT table is updated with the record: 113 : Jannet : jannet@uni
C. The STUDENT table is updated with the record: 113 : Jannet : jannet@uni
D. A SQLException is thrown at run time
عرض الإجابة
اجابة صحيحة: D
السؤال #8
Given the code fragment: List listVal = Arrays.asList(“Joe”, “Paul”, “Alice”, “Tom”); System.out.println ( // line n1 ); Which code fragment, when inserted at line n1, enables the code to print the count of string elements whose length is greater than three?
A. listVal
B. listVal
C. listVal
D. listVal
عرض الإجابة
اجابة صحيحة: B
السؤال #9
Given the code fragment: What is the result?
A. 4000 : 2000
B. 4000 : 1000
C. 1000 : 4000
D. 1000 : 2000
عرض الإجابة
اجابة صحيحة: B
السؤال #10
Given: final class Folder { //line n1 //line n2 public void open () { System.out.print(“Open”); } } public class Test { public static void main (String [] args) throws Exception { try (Folder f = new Folder()) {
A. f
B. Replace line n1 with:class Folder implements AutoCloseable {
C. Replace line n1 with:class Folder extends Closeable {
D. Replace line n1 with:class Folder extends Exception {
E. At line n2, insert: final void close () {System
F. At line n2, insert:public void close () throws IOException { System
عرض الإجابة
اجابة صحيحة: A
السؤال #11
Given: class CheckClass { public static int checkValue (String s1, String s2) { return s1 length() – s2.length(); } } and the code fragment: String[] strArray = new String [] {“Tiger”, “Rat”, “Cat”, “Lion”} //line n1 for (String s : strArray) { System.out.print (s + “ “); } Which code fragment should be inserted at line n1 to enable the code to print Rat Cat Lion Tiger?
A. Arrays
B. Arrays
C. Arrays
D. Arrays
عرض الإجابة
اجابة صحيحة: C
السؤال #12
Given the Greetings.properties file, containing: and given: What is the result?
A. Compilation fails
B. GOODBY_MSG
C. Hello, everyone!
D. Goodbye everyone!
E. HELLO_MSG
عرض الإجابة
اجابة صحيحة: D
السؤال #13
Given the structure of the STUDENT table: Student (id INTEGER, name VARCHAR) Given: public class Test { static Connection newConnection =null; public static Connection get DBConnection () throws SQLException { try (Connection con = DriveManager.getConnection(URL, username, password)) { newConnection = con; } return newConnection; } public static void main (String [] args) throws SQLException { get DBConnection (); Statement st = newConnection.createStatement(); st.executeUpdate(“INSERT INTO student VALUES (
A. The program executes successfully and the STUDENT table is updated with one record
B. The program executes successfully and the STUDENT table is NOT updated with any record
C. A SQLException is thrown as runtime
D. A NullPointerException is thrown as runtime
عرض الإجابة
اجابة صحيحة: A

عرض الإجابات بعد التقديم

يرجى إرسال البريد الإلكتروني الخاص بك والواتس اب للحصول على إجابات الأسئلة.

ملحوظة: يرجى التأكد من صلاحية معرف البريد الإلكتروني وWhatsApp حتى تتمكن من الحصول على نتائج الاختبار الصحيحة.

بريد إلكتروني:
رقم الواتس اب/الهاتف: