S A M P L E Quiz #3 Name ___________________ Honor Code________________________ Section _____ (Note: Getting your Name and Section right is worth one point. If we can't decipher your name or section, it's wrong.) A. Questions of the type we had on the last quiz. B. Given the following code fragment: ------------------------------------------- String message, word, syl; int pos, lm, lw; 012345678901234567890 message = "Have a wonderful day!"; word = message.substring(7, 13); lw = word.length(); syl = word.substring(0,3); lm = message.length(); pos = message.indexOf(syl); ------------------------------------------- After this is run (executed) what are the values in the following variabables? message:________________________________________________ word: ________________________________________________ lw: ________________________________________________ syl: ________________________________________________ lm: ________________________________________________ pos: ________________________________________________ C. Given the syntax rule for a name (or identifier): 1. -> //a sequence of letters and/or digits that begin with a letter// Cross out the word(s) below that are not valid names. A1 2by4 all4one fast 007