Quiz for Chapter 1

If you haven't read the lesson, please do so !

Time : 45 minutes

Part I (Each scores 5)

  1. What does structured programming mean ?
  2. What is the line uses for ?
  3. Pascal programs always begin with _______ and end with _______
  4. What is the difference between Write and Writeln ?
  5. How can we write two blank lines on the screen ?
  6. Mention at least 5 variable type names with their range and types !
  7. How can we get user's input ?
  8. What is the difference between Read and Readln ?
  9. Why can't we enter the value 0.75 to word variables ?
  10. How can we view and pause the screen after the program ran ?
  11. How can we declare variables in Pascal ?
  12. What key should we press to run a program in Borland Pascal 7.0 ?
  13. How can we limit the fractional output to 3 places before and after the decimal point ?
  14. Explain how can the string be limited on display.
  15. Can we enter the value "1/4" to Real variables ?

Part II (number 1 scores 5, else scores 10 each)

  1. Make a program to write your name and your age on screen.
  2. Make a program to input user's comment and limit it to 20 characters.
  3. Make a program to calculate the area of a circle. Limit the fractional part 3 places before decimal point and 4 places after decimal.

That's all ! Good luck !


Where to go ?

Back to chapter 1
Advance to chapter 2, about extending simple program
To lesson 1 contents
My main tutorial homepage
My programming links
Contact me


By : Roby Joehanes, © 1996, 2000