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

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

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

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

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

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

السؤال #1
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 : [email protected]
B. The STUDENT table is updated with the record:113 : Jannet : [email protected] the program prints:114 : John : [email protected]
C. The STUDENT table is updated with the record:113 : Jannet : [email protected] the program prints:113 : Jannet : [email protected]
D. A SQLException is thrown at run time
عرض الإجابة
اجابة صحيحة: D
السؤال #2
Given the code fragment:Which code fragment, when inserted at line 7, enables printing 100?
A. Function funRef = e –> e + 10;Integer result = funRef
B. IntFunction funRef = e –> e + 10;Integer result = funRef
C. ToIntFunction funRef = e –> e + 10;int result = funRef
D. ToIntFunction funRef = e –> e + 10;int result = funRef
عرض الإجابة
اجابة صحيحة: A
السؤال #3
Given: interface Doable { public void doSomething (String s); } Which two class definitions compile? (Choose two.)
A. public abstract class Task implements Doable { public void doSomethingElse(String s) { }}
B. public abstract class Work implements Doable { public abstract void doSomething(String s) { } public void doYourThing(Boolean b) { }}
C. public class Job implements Doable { public void doSomething(Integer i) { }}
D. public class Action implements Doable { public void doSomething(Integer i) { } public String doThis(Integer j) { }}
E. public class Do implements Doable { public void doSomething(Integer i) { } public void doSomething(String s) { } public void doThat (String s) { }}
عرض الإجابة
اجابة صحيحة: B
السؤال #4
Given the code fragments:andWhat is the result?
A. null
B. A compilation error occurs
C. DogCatMouse
D. [Dog, Cat, Mouse]
عرض الإجابة
اجابة صحيحة: D
السؤال #5
Given: public class Test { private T t; public T get () { return t; } public void set (T t) { this.t = t; } public static void main (String args [ ] ) { Test type = new Test<>(); Test type 1 = new Test (); //line n1 type.set(“Java”); type1.set(100); //line n2 System.out.print(type.get() + “ “ + type1.get()); } } What is the result?
A. Java 100
B. java
C. A compilation error occur
D. To rectify it, replace line n1 with: Test type1 = new Test<>();
E. A compilation error occur
F. To rectify it, replace line n2 with: type1
عرض الإجابة
اجابة صحيحة: B
السؤال #6
Given: class Student { String course, name, city; public Student (String name, String course, String city) { this.course = course; this.name = name; this.city = city; } public String toString() { return course + “:” + name + “:” + city; } and the code fragment: List stds = Arrays.asList( new Student (“Jessy”, “Java ME”, “Chicago”), new Student (“Helen”, “Java EE”, “Houston”), new Student (“Mark”, “Java ME”, “Chicago”)); stds.stream() .collect(Collectors.groupingBy(Student::getCourse)) .f orEach(src
A. [Java EE: Helen:Houston][Java ME: Jessy:Chicago, Java ME: Mark:Chicago]
B. Java EEJava ME
C. [Java ME: Jessy:Chicago, Java ME: Mark:Chicago] [Java EE: Helen:Houston]
D. A compilation error occurs
عرض الإجابة
اجابة صحيحة: A
السؤال #7
Which two statements are true about synchronization and locks? (Choose two.)
A. A thread automatically acquires the intrinsic lock on a synchronized statement when executed
B. The intrinsic lock will be retained by a thread if return from a synchronized method is caused by an uncaught exception
C. A thread exclusively owns the intrinsic lock of an object between the time it acquires the lock and the time it releases it
D. A thread automatically acquires the intrinsic lock on a synchronized methods object when entering that method
E. Threads cannot acquire intrinsic locks on classes
عرض الإجابة
اجابة صحيحة: AB
السؤال #8
Given: interface Rideable {Car getCar (String name); } class Car { private String name; public Car (String name) { this.name = name; } } Which code fragment creates an instance of Car?
A. Car auto = Car (“MyCar”): : new;
B. Car auto = Car : : new;Car vehicle = auto : : getCar(“MyCar”);
C. Rideable rider = Car : : new;Car vehicle = rider
D. Car vehicle = Rideable : : new : : getCar(“MyCar”);
عرض الإجابة
اجابة صحيحة: B
السؤال #9
Given the code fragments: class TechName { String techName; TechName (String techName) { this.techName=techName; } } and List tech = Arrays.asList ( new TechName(“Java-“), new TechName(“Oracle DB-“), new TechName(“J2EE-“) ); Stream stre = tech.stream(); //line n1 Which should be inserted at line n1 to print Java-Oracle DB-J2EE-?
A. stre
B. stre
C. stre
D. stre
عرض الإجابة
اجابة صحيحة: A
السؤال #10
Given the code fragment: List nL = Arrays.asList(“Jim”, “John”, “Jeff”); Function funVal = s -> “Hello : “.contact(s); nL.Stream() .map(funVal) .peek(System.out::print); What is the result?
A. Hello : Jim Hello : John Hello : Jeff
B. Jim John Jeff
C. The program prints nothing
D. A compilation error occurs
عرض الإجابة
اجابة صحيحة: A
السؤال #11
Given the code fragment:Which should be inserted into line n1 to print Average = 2.5?
A. IntStream str = Stream
B. IntStream str = IntStream
C. DoubleStream str = Stream
D. Stream str = Stream
عرض الإجابة
اجابة صحيحة: C
السؤال #12
Given the code fragment: What is the result?
A. text1text2
B. text1text2text2text3
C. text1
D. [text1, text2]
عرض الإجابة
اجابة صحيحة: DF
السؤال #13
Given the code fragment: Which statement can be inserted into line n1 to print 1,2; 1,10; 2,20;?
A. BiConsumer c = (i, j) -> {System
B. BiFunction c = (i, j) –> {System
C. BiConsumer c = (i, j) –> {System
D. BiConsumer c = (i, j) –> {System
عرض الإجابة
اجابة صحيحة: C
السؤال #14
Given: public class Canvas implements Drawable { public void draw () { } } public abstract class Board extends Canvas { } public class Paper extends Canvas { protected void draw (int color) { } } public class Frame extends Canvas implements Drawable { public void resize () { } } public interface Drawable { public abstract void draw (); } Which statement is true?
A. Board does not compile
B. Paper does not compile
C. Frame does not compile
D. Drawable does not compile
E. All classes compile successfully
عرض الإجابة
اجابة صحيحة: C
السؤال #15
Given: class ImageScanner implements AutoCloseable { public void close () throws Exception { System.out.print (“Scanner closed.”); } public void scanImage () throws Exception { System.out.print (“Scan.”); throw new Exception(“Unable to scan.”); } } class ImagePrinter implements AutoCloseable { public void close () throws Exception { System.out.print (“Printer closed.”); } public void printImage () {System.out.print(“Print.”); } } and this code fragment: try (ImageScanner ir = new ImageScanner(); ImagePrinte
A. Scan
B. Scanner close
C. Unable to scan
D. Scan
E. Unable to scan
F. Sca G
عرض الإجابة
اجابة صحيحة: C
السؤال #16
Which statement is true about the single abstract method of the java.util.function.Function interface?
A. It accepts one argument and returns void
B. It accepts one argument and returns boolean
C. It accepts one argument and always produces a result of the same type as the argument
D. It accepts an argument and produces a result of any data type
عرض الإجابة
اجابة صحيحة: A
السؤال #17
Given the structure of the Student table:Student (id INTEGER, name VARCHAR)Given the records from the STUDENT table:Given the code fragment:Assume that:The required database driver is configured in the classpath.The appropriate database is accessible with the dbURL, userName, and passWord exists.What is the result?
A. The program prints Status: true and two records are deleted from the Student table
B. The program prints Status: false and two records are deleted from the Student table
C. A SQLException is thrown at runtime
D. The program prints Status: false but the records from the Student table are not deleted
عرض الإجابة
اجابة صحيحة: B
السؤال #18
Given the code fragment: What is the result?
A. A compilation error occurs at line n1
B. Logged out at: 2015-01-12T21:58:19
C. Can’t logout
D. Logged out at: 2015-01-12T21:58:00Z
عرض الإجابة
اجابة صحيحة: D
السؤال #19
Given the code fragment: Which modification enables the code to print Price 5 New Price 4?
A. Replace line n2 with
B. Replace line n2 with
C. Replace line n1 with
D. Replace line n3 with
عرض الإجابة
اجابة صحيحة: B
السؤال #20
Given: and Which interface from the java.util.function package should you use to refactor the class Txt?
A. Consumer
B. Predicate
C. Supplier
D. Function
عرض الإجابة
اجابة صحيحة: A
السؤال #21
Assume customers.txt is accessible and contains multiple lines. Which code fragment prints the contents of the customers.txt file?
A. Stream stream = Files
B. Stream stream = Files
C. Stream stream = Files
D. Stream lines = Files
عرض الإجابة
اجابة صحيحة: A

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

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

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

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