CIW
1D0-441 · Question #140
1D0-441 Question #140: Real Exam Question with Answer & Explanation
Sign in or unlock 1D0-441 to reveal the answer and full explanation for question #140. The question stem and answer options stay visible for context.
Question
Consider the following code fragment: 1. Statement s = conn.createStatement(); 2. 3. s.executeUpdate(CREATE TABLE MyTable ( + 4. ColumnA CHAR(5), + 5. ColumnB CHAR(5))); 6. 7. s.executeUpdate(INSERT INTO MyTable VALUES ( + 8. '00001', 'AAAAA'); 9. s.executeUpdate(UPDATE MyTable + 10. SET ColumnB = 'BBBBB' + 11. WHERE ColumnA = '00001'); 12. 13. ResultSet rs = s.executeQuery(SELECT * FROM MyTable + 14. WHERE ColumnA = '00001'; 15. while (rs.next()) 16. System.out.println(rs.getString(2)); Assume that variable conn references a valid and open Connection object, and that the database does not already contain a table named MyTable. Which output is generated?
Options
- A00001
- BAAAAA
- CBBBBB
- DNo output is generated.
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.