Standard PASCAL   Questions

Due Thursday, 0ct. 12 at start of class – must be printed

 

Name ________________________

 

1. What are the delimiters used to surround an array index?

 

2. Where do PASCAL array bounds start?

 

3.  Is it  necessary to declare all variables in PASCAL?

 

4.  Where are subprograms placed physically in a standard PASCAL program?

 

5.  Is PASCAL case sensitive?

 

6.  Does PASCAL allow mixed mode arithmetic? 

 

7.  Does PASCAL have any reserved words?

 

8.  How many different types of subprograms are there in PASCAL?

 

9.  Suppose you declare a 10 element array of integers, assign values to 8 of the elements and print out all 10 elements.  What happens in your version of PASCAL?  (what version do you have?)

 

10.  Suppose you declare a 5 element array of integer and attempt to print out the 6th through 10th   elements.  What happens in your version of PASCAL?  (what version do you have?)

 

11.  Does PASCAL allow you to dynamically allocate storage?   If so, how is it done?

 

12.  What is the PASCAL symbol for the relational operator 'not equal'?

 

13. In PASCAL, which has higher precedence .AND. or .OR.  or do they have equal precedence?

 

14.  What are the Boolean values in PASCAL?

 

15.  Give an example of a   declaration of a PASCAL enumerated type?

 

16.  Can you use readln or writeln on Pascal’s enumerated variables? 

 

17.  What is the major difference between a FUNCTION and a PROCEDURE

 

18.  How long can an identifier be in your version of PASCAL? What is your version?

 

20.  What is/are the method(s)  of parameter passing in PASCAL and what is the difference?