More Standard Pascal Questions
1. What are the delimiters used to surround an array index?
2. Where do Pascal array bounds start?
3. Why must all variables be declared 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. Given an example of an anonymous array declaration in standard Pascal.
8. In what circumstances is an anonymous array declaration not allowed?
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. What Pascal type is illustrated by the type Boolean?
16. Can you read or write values of an enumerated type in Pascal?
17. Is it legal to have the same value as an element of an enumerated type in Pascal? (i.e. can you have the following two type declarations in the same program?
type trafficLight = (red, green, yellow);
type crayon = (red, orange, blue);
If not, why not?
18. How long can an identifier be in your version of Pascal? What is your version?
20. Pascal has two methods of parameter passing. Which is the default?