Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaRanch SCWCD Mock -- need to adjust a few answers

 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the answers of these two questions should be changed a bit (see bolded stuff for changes)
------------------------
Question Bank ID : 41 Choose the 2 correct answers
Which of the following statements are TRUE (Choose 2).
A - <% int i = 0; %> is a variable declaration that has local scope within the _jspService
method of the resultant servlet.
B - <% int i; %> is a variable declaration that has class scope of the resultant servlet. (was: is a variable declaration that is class scope to the service method)
C -<%! int i; > a variable declaration that has local scope within the _jspService method of the servlet
D - <%! int i; %> is a variable declaration that is has class scope within the resultant servlet.
E - <% int i = 0; %> is a variable declaration that has local scope within the doGet method of the resultant servlet.
------------------------
Question Bank ID : 42 Choose the 1 correct answer
What is the output of the following code?

A - 1 2 3
B - 2 3 4 Change this answer to 0 1 2 -- its more believable
C - out.print(i);out.print(i);out.print(i);
D - Does not compile
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic