Pascal Test
 

1: Comments are opened with ___ and closed with ___

2: The end. statement signifies the ______ of a Pascal program.

3: The write statement sets the cursor _______________________________
___________________________________________________________________

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

___________________________________________________________________

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

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

7: Each program statement is terminated with a ______________________

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

___________________________________________________________________

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

___________________________________________________________________

Answers

1: Comments are opened with { and closed with }

2: The end. statement signifies the end of a Pascal program.

3: The write statement sets the cursor at the end of the current text

4: Using the writeln statement, the cursor is positioned at the
beginning of the next line

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

6: To print a single quote using write or writeln, use two single
quotes one after the after, ''

7: Each program statement is terminated with a semi-colon

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

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 (input, output);

(c) Shilpa Sayura Foundation 2006-2017