CIW
1D0-441 · Question #96
1D0-441 Question #96: Real Exam Question with Answer & Explanation
Sign in or unlock 1D0-441 to reveal the answer and full explanation for question #96. The question stem and answer options stay visible for context.
Question
Consider the following code fragment: 1. PreparedStatement ps = conn.prepareStatement( 2. SELECT * FROM Orders WHERE + 3. Customer_No = ?); 4. 5. ps.setShort(1, 1001) 6. 7. ResultSet rs = ps.executeUpdate(); 8. while(rs.next()) 9. { 10. System.out.print(rs.getString(1) + ); 11. System.out.println(rs.getString(2)); 12. } Assume that variable conn references a valid and open Connection object to a database containing the Orders Relation (shown in the exhibit). Which output is generated?
Exhibit
Options
- A2001 11-04-01
- B2001 11-04-01
- CNo output is generated because a compile-time error occurs at line 7.
- DNo output is generated because a runtime error occurs at line 5.
Unlock 1D0-441 to see the answer
You've previewed enough free 1D0-441 questions. Unlock 1D0-441 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
