admin Oct, Thu, 2024 EXAM JAVA PROGRAMMING EXAM 123456789101112131415161718192021222324252627282930 Exam Instructions: Total Number of Questions: 30 You will be required to answer a total of 30 multiple-choice questions. Time Limit: 15 minutes for the entire exam Once the time is up, the exam will automatically submit. Passing Criteria: A minimum score of 50% is required to pass the exam Multiple Attempts: You are allowed to take the exam multiple times. Only your highest score will be considered for certification. Additional Instructions: The exam timer cannot be paused once it begins. Good luck, and feel free to retake the exam to improve your score! JAVA PROGRAMMING EXAM Test your JAVA skills with a challenging exam designed to evaluate your knowledge in programming, data structures, and algorithms The certificate will be generated based on the information you provide in the form, so please ensure that all details are entered correctly. NameEmailPhone NumberUniversityCollegeDegreeDepartmentPass Out YearPass Out Year2014201520162017201820192020202120222023202420252026202720282029 1 / 30 1) What does System.out.println("The sum is: " + (2 + 3)) output? A) The sum is: 5 B) 5 C) 1 D) False 2 / 30 2) What will System.out.println("hello".toUpperCase()) print? A) HELLO B) 0 C) hello D) 1 3 / 30 3) What is the output of System.out.println(3 + "3" + 3)? A) 33 B) 1 C) 0 D) 6 4 / 30 4) What does System.out.println(5 < 3 && 10 > 5) output? A) 1 B) 1 C) 0 D) 0 5 / 30 5) What is the output of System.out.println(5 / 2.0)? A) False B) 2.5 C) 2 D) 1 6 / 30 6) What will System.out.println("Hello World".contains("World")) print? A) 1 B) 0 C) False D) 1 7 / 30 7) What is the output of System.out.println(3.5 * 2)? A) False B) 7 C) True D) 1 8 / 30 8) What is the output of System.out.println("A" + 1)? A) A1 B) False C) A D) 1 9 / 30 9) What does System.out.println(7 > 5 && 5 > 3) output? A) 1 B) 0 C) 1 D) False 10 / 30 10) What is a LinkedList in Java? A) Linked list implementation B) Array list implementation C) Stack implementation D) Queue implementation 11 / 30 11) What is the purpose of java.lang.Object class? A) Root class B) Final class C) Abstract class D) Base class 12 / 30 12) What is the effect of the default keyword in interfaces? A) Method declaration B) Static method C) Abstract method D) Method implementation 13 / 30 13) What is the output of 1 << 2? A) 4 B) 2 C) 1 D) 3 14 / 30 14) What does System.out.println("1" + "1" + "1") output? A) 111 B) 1 C) 3 D) False 15 / 30 15) What is the output of System.out.println("Java " + 5 + 5)? A) False B) Java 55 C) 1 D) 10 16 / 30 16) What does Class.forName("className") do? A) Get class loader B) Get class reference C) Load class D) Create instance 17 / 30 17) What is the output of System.out.println("abc".indexOf("b"))? A) False B) -1 C) 1 D) 1 18 / 30 18) What is the output of System.out.println("abc".endsWith("c"))? A) False B) 1 C) 0 D) 1 19 / 30 19) What is the output of System.out.println(0 + 1 + "1")? A) True B) False C) 1 D) 11 20 / 30 20) What is the output of System.out.println((3 + 2) + (2 + 1))? A) 5 B) 6 C) 7 D) 8 21 / 30 21) What is the output of System.out.println(2 + 2 + "2")? A) 42 B) False C) 1 D) 4 22 / 30 22) What does System.out.println((5 + 5) * 2) output? A) False B) 10 C) 1 D) 20 23 / 30 23) What will System.out.println(7 * 2 + " is fourteen") print? A) 1 B) 14 is fourteen C) 14 D) False 24 / 30 24) What will System.out.println(5 / 2) print? A) 2 B) 2.5 C) 3 D) 2 25 / 30 25) What is the output of System.out.println(5 > 3 && 3 < 5)? A) 1 B) False C) 0 D) 1 26 / 30 26) What does System.out.println((int)(3.14 + 0.5)) output? A) 0 B) 1 C) 4 D) 3 27 / 30 27) What is the output of System.out.println("Hello".length())? A) False B) 5 C) 4 D) 1 28 / 30 28) What is the effect of break statement in loops? A) Skip iteration B) Restart loop C) Continue loop D) Exit loop 29 / 30 29) What does System.out.println(2 == 3) output? A) 0 B) 1 C) 1 D) 0 30 / 30 30) What is the purpose of the throws keyword in Java? A) Catch exceptions B) Declare exceptions C) Handle exceptions D) Ignore exceptions Your score is LinkedIn Facebook Twitter VKontakte 0% ExamWEB DEVELOPMENT EXAM...Read MoreREACT JS PROGRAMMING EXAM...Read MorePYTHON FULL STACK...Read MorePYTHON EXAMS ...Read MoreMYSQL...Read MoreMACHINE LEARNING...Read MoreJAVASCRIPT PROGRAMMING EXAM...Read MoreJAVA SPRING BOOT...Read MoreJAVA PROGRAMMING EXAM...Read MoreJAVA FULL STACK...Read MoreHTML PROGRAMMING EXAM...Read MoreDEEP LEARNING...Read MoreDATA SCIENCE...Read MoreCSS PROGRAMMING EXAM...Read MoreANGULAR JS PROGRAMMING EXAM...Read More 16Share on WhatsApp10Share on LinkedIn5Share on YouTube9Share on Facebook Comments 0