Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Java Programming quiz, level Intermediate, question 19
Question: What value is left in the variable ttimes after running this code?
String Quiz = "Some test text";
int ttimes = 0;
for (int stepper=0; stepper<Quiz.length()-1; stepper++)
  if (Quiz.charAt(stepper) == 't') ;
   &bsp;++ttimes;
Answer 1:1
This was the CORRECT answer
Answer 2:0
Answer 3:2
Answer 4:3
Answer 5:4
Answer 6:5
Answer 7:11
Answer 8:12
Answer 9:13

This was a question from our quiz ... but we have now provided you with the answer (above) - we prefer to provide you with information rather than to puzzle you.
Lua
PHP
Perl
Java
MySQL
Python
Linux
Apache Tomcat
Apache httpd
C and C++
Tcl and Tcl/Tk
Hotel
Recent additions


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2012: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho