CIS 230 - Visual Basic
Ch. 7 Worksheet #3 Answers
Describe the printed output of the following code segment as carefully as possible
on a piece of paper. (Use graph paper if possible.) Create a VB program to check
your answers.
Printer.Print "Visual"; "Basic"
VisualBasic |
Printer.Print "Visual "; "Basic"
Visual Basic |
Printer.Print "Class"; Tab(2); "Canceled"
Class Canceled |
Printer.Print Tab(2); "No"; Tab(10); "Free"; Tab(20); "A's"
No Free A's |
Printer.Print
[a blank line] |
Printer.Print "The"
The |
Printer.Print Spc(3); "Book"
Book |
Printer.Print Spc(7); "Is"
Is |
Printer.Print Spc(9); "Wrong"
Wrong |
Printer.Print Spc(14); "Again"
Again |
Printer.Print "The"; Spc(8); "Is"; Spc(1); "Wrong";
Spc(1); "Again"
The Is Wrong Again |