• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaRanch SCWCD Mock -- need to adjust a few answers

 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic