Docsity

Computer Programming Methodology CAT: Mount Kenya University, Lecture notes of Programming Languages

Partial preview of the text

Download Computer Programming Methodology CAT: Mount Kenya University and more Lecture notes Programming Languages in PDF only on Docsity!

Programming (Mount Kenya University)

computer programming cat

MOUNT KENYA UNIVERSITY

BIT 2201 Programming Methodology CAT Virtual Mode Instructions: Attempt all the questions DATE: Oct 2021 TIME: 1HR Question One a)Outline four functions of a compiler. [2 marks] b)Explain the di昀昀erence between a constant and a variable in computer programming. [2 marks] c)Explain using examples the two main approaches or methodologies that can be used in computer programming. [2 marks] d)Name and explain three symbols that are used in 昀氀owcharts, when designing a solution to a given computer problem. [3 marks] e)Explain the term header 昀椀le and describe one type of a header 昀椀le. [2 marks] f)Discuss three main phases of program development life cycle. [3 marks] Question Two a)) Outline four factors that measure the popularity of a programming language.[4marks] b)) Explain the purpose of the main( ) function in a C program. [2 marks]