This should be the last question you answer in the exam. Do…

This should be the last question you answer in the exam. Do not proceed before you are ready to submit.  Please make sure to show both sides of your scratch sheet before ending this exam. Do that now, and click to attest to showing the scratch sheet at the end of the exam.

Write a Java method named countLongWords. It receives a 1D S…

Write a Java method named countLongWords. It receives a 1D String array and returns an int. The returned value should be the number of elements in the input array that have more than 5 characters. Be careful: the input array could have locations where a String isn’t present. Example input: {“programming”, “java”, “method”, “computer”, null, “a”} Example output: 3   Canvas Tip: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers.

For each code, indicate whether it is a compiler error or ru…

For each code, indicate whether it is a compiler error or runtime error, and which the error occurs (your explanation can be as brief as a few words). If there is no error, state the output. Code 1: int[] nums = {10, 20, 30};for (int i = 0; i 0) {    System.out.println(“Hello ” + name);} else {    System.out.println(“No name provided”);} Use this template for your answer (please type fully – you cannot copy): Code 1: [Compiler Error / Runtime Error / No Error]: [explanation if you indicate Compiler Error or Runtime Error OR output if you indicate No Error] Repeat the same format for Code 2 and 3, each on its own line.

 I showed my whole room (360° scan).  I placed my phone out…

 I showed my whole room (360° scan).  I placed my phone out of reach and in clear view of the camera.  I closed all other programs/windows and showed my list of active processes.  I read aloud the Georgia Tech Honor Pledge. (“I commit to uphold the ideals of honor and integrity by refusing to betray the trust bestowed upon me as a member of the Georgia Tech community.”) I will keep my hands visible when not typing and will not look down repeatedly. I understand that breaking these rules means I will receive no grade for this exam, and all future exams must be taken in person (on campus or at a testing center at my expense).