Professional Documents
Culture Documents
Chapter 7
2. Index or subscript
4. 6
6. True
8. False
10. False
12. True
14. False
16. False
18. False
20. Declare K As Integer
Set K = 0
While Names[K] != “ZZZ”
Write Names[K]
Set K = K + 1
End While
22. 14
9
5
2
0
24. A Boolean variable can only take the values of true or false
26. For (K = 0; K < 9; K++)
If (Name[K] != “ “) Then
Write Name[K]
End If
End For
28. Declare First[] As Character, K, Lgth As Integer
Set K = 0
While (FullName[K] != “ “)
Set First[K] = FullName[K]
Set K = K + 1
End While
Set Lgth = Length_Of(First)
Write “The number of letters in the first name is “ + Lgth