INTERACTIVE TEST 1: Comments, General Program Structure
| Notes | Tests | Home Page |


Previous Page

1. Comments are opened and closed with

{ }
/* */
; ;
REM


2: The end. statement signifies the

end of a procedure
end of the program
beginning of a procedure
beginning of the program


3: The write statement sets the cursor at the

end of the line
beginning of the next line
end of the outputted text
beginning of the current line


4: Using the writeln statement, the cursor is positioned at the

end of the line
beginning of the next line
end of the outputted text
beginning of the current line


5: When printing text using write or writeln, the text is enclosed using

backslashes
curly braces
double quotes
single quotes


6: To print a single quote using write or writeln,

use a double quote
use two double quotes
preceed it with a backslash
preceed it with a single quote


7: Each program statement is terminated with a

newline
semi-colon
full-stop
comma


8: If the program is required to input data from the keyboard, the first line of the program reads

program NAME ( output );
program NAME ( input );
program ( input, output ) NAME;
program NAME ( input )


9: If the program is required to input data from the keyboard, and also output data to the console screen, the first line of the program reads

program NAME ( output );
program NAME ( input );
program ( input, output ) NAME;
program NAME ( input, output );


Previous Page
© Copyright B Brown/P Henry, 1988-1999. All rights reserved.