Java Programming Tutorial & Training Final Exam

Free Practice Test Instructions:

Choose your answer to the question and click 'Continue' to see how you did. Then click 'Next Question' to answer the next question. When you have completed the free practice test, click 'View Results' to see your results. Good luck!

Question 1 1. Which of the following code snippets correctly allows for and displays command line arguments?

Question 2 2. Which of the following is an environment variable?

Question 3 3. Be careful! Environment variable names are case-sensitive in which operating system?

Question 4 4. Which of these is an atomic operation?

Question 5 5. Which command would change the JAVA_HOME variable to c:\desktop?

Question 6 6. A while loop runs code as long as the condition(s) is/are:

Question 7 7. When does an infinite loop happen?

Question 8 8. In a Java Do-While loop, the condition is evaluated at the _____ of the statement.

Question 9 9. Examine the following code. How many times will the nested loop run?

Question 10 10. Examine the following code. Will the j loop process?

Question 11 11. Which code statement will compile?

Question 12 12. Which of the following shows an overloaded method for setCost?

Question 13 13. Which of the following is a correct way of declaring a wrapper class?

Question 14 14. Method names should be _____

Question 15 15. Which of the following is the correct syntax for declaring a new wrapper class around a primitive byte variable bitten?

Tell us about yourself

Are you a student or a teacher?

I am a student I am a teacher

Java Programming Tutorial & Training Final Free Practice Test Instructions

Choose your answer to the question and click 'Continue' to see how you did. Then click 'Next Question' to answer the next question. When you have completed the free practice test, click 'View Results' to see your results. Good luck!

Java Programming Tutorial & Training  /  Business Courses
Support