September 2011
Beginner
650 pages
15h 47m
English
Chapter 3 Self Test
1. Write a program that reads characters from the keyboard until a period is received. Have the program count the number of spaces. Report the total at the end of the program.
2. Show the general form of the if-else- if ladder.
3. Given

to what if does the last else associate?
4. Show the for statement for a loop that counts from 1000 to 0 by –2.
5. Is the following fragment valid?

6. Explain what break does. Be sure to explain ...
Read now
Unlock full access