Review Questions

Post date: 06-May-2015 08:46:54

Quiz

  1. State three reasons why high level languages are better than low level languages
  2. Explain why HTML is not a true programming language
  3. List three examples of forth generation programming languages
  4. Describe the features of fifth generation languages
  5. Define the term structured programming
    1. state two reasons for documenting all the stages of program development
    2. Give three types of program documentation in reference to programming
  6. Write HTML code that would display a green background , with the words 'hello' on the screen
  7. Draw a flowchart showing the general flow of the following:
    1. the nested IF selection
    2. the FOR loop
    3. REPEAT....UNTIL loop
  8. Write a program algorithm that would enable the user to enter student marks. The program should then determine whether the mark entered is a pass or fail given that the passmark is 50
  9. Draw a flowchart for a program that is to prompt for N numbers, accumulate the sum and then find the average. The output is the accumulated totals and the average.
  10. Write a pseudocode that reads temperature for each day in a week, in degrees Celsius, converts the Celsius into Fahrenheit and then calculate the average weekly temperatures. The program should output the calculated average in degrees Fahrenheit.
  11. A lady deposits 2000 shillings in a micro finance company at an interest rate of 20% per annum. At the end of each year, the interest earned is added to the deposit and the new amount becomes the deposit for that year. Write an algorithm for a program that would track the growth of the deposits over a period of seven years.
  12. Mukumu took a loan of Ksh 400 000 from a local bank at an interest rate of 10% payable in four years. Assuming you wish to develop a computer program that will keep track on monthly repayments;
    1. Identify the input, processing and output requirements for such a program
    2. Design the algorithm for the program using a simple flowchart and pseudocode.

ELEMENTARY PROGRAMMING PRINCIPLES