Get premium membership and access revision papers, questions with answers as well as video lessons.
Bbm 200: Introduction To Programing Question Paper
Bbm 200: Introduction To Programing
Course:Bachelor Of Business Management
Institution: Moi University question papers
Exam Year:2013
MOI UNIVERSITY
OFFICE OF DEPUTY VICE CHANCELLOR, ACADEMIC AFFAIRS,
RESEARCH AND EXTENSION
UNIVERSITY EXAMINATIONS
2012/2013 ACADEMIC YEAR
END OF SEMESTER EXAMINATIONS
FOR THE DEGREE OF
BACHELOR OF BUSINESS MANAGEMENT
EXAM CODE: - BBM 200
COURSE TITLE: - INTRODUCTION TO PROGRAMMING
DATE: - 28TH MARCH, 2013 TIME:-9.00 P.M – 12.00 NOON
INSTRUCTION TO CANDIDATES
SEE INSIDE.
THIS PAPER CONSISTS OF (4) PRINTED PAGES PLEASE TURN OVER
INSTRUCTIONS: ATTEMPT QUESTION ONE AND ANY OTHER THREE QUESTIONS
QUESTION 1 (25 MARKS)
Discuss the class of problems that can be solved by computers ( 5 marks )
Discuss ways in which a programmer plans a logic program ( 4 marks )
List some of the tools that maybe used in program development process ( 4 marks )
Differentiate, with clear examples, between batch and interactive processing ( 4 marks )
Write a program, draw a flow chart and write a program to output the console: “ welcome to programming , it’s challenging but fun” ( 8 marks )
QUESTION 2 (15 MARKS)
Discuss the different programing methodologies applied by programmers in application development ( 6 marks )
You have been requested by your organization to write a program that will convert given temperatures from degrees Fahrenheit to centigrade. Using formula (f-32)/9=c/5
Write the algorithm, draw the flow chart and write the program (9 marks )
QUESTION 3 (15 MARKS)
Program control structures are used by programmers to regulate order of program execution.
With use of examples, and flow charts, explain the differences between the sequence, selection and iteration as used in programming. ( 9 marks )
Write a program that reads three integers, if the first three integers read negative the program should calculate & print the product of all the three integers. Otherwise, it should calculate and print the sum of all the three integers ( 6 marks )
QUESTION FOUR (15 MARKS)
In a company an employee is paid under:
If his basic salary is less than Kshs 1500, then HRA=10% of basic salary and DA=90% of the basic salary. If his salary is either equal to or above Kshs 1500, then the HRA=Kshs 500 and DA = 98% basic salary. If the employee’s salary is input through the keyboard write an algorithm, draw a flow chart and write the corresponding program to find his gross salary. (15 marks)
QUESTION FIVE
What will be the value of A, B and C printed after the following program is executed?
0010 LET D=2
0020 FOR A=1 TO 5 STEP 2
0030 LET E=D+A
0040 FOR F=E TO 5 STEP 2
0050 LET B=F+D-A
0060 LET C=E+B-A
0070 NEX F
0080 NEXT A
0090 PRINT A, B, C
0100 END (3 marks)
A program is required to calculate and print the square, square root and cube root of all odd numbers from 1 to 10
Required
Write an algorithm to above program( 2 marks)
Draw the flow chat for the above algorithm ( 3 marks )
Write a program using FOR/NEXT statement ( 7 marks )
QUESTION SIX
A manufacturing company has classified its executives into four levels for the benefits of certain perks. The levels and corresponding perks are shown below.
PERKS
Level Conveyance allowance Entertainment allowance
1 1000 500
2 750 200
3 5000 300
4 250
An executive gross salary includes basic pay, house rent allowance at 25% of basic pay and other perks. Income tax is withheld from salary on percentage basis as follows.
Gross salary Tax rate
Gross<=2000 No tax deduction
20004000Gross>5000 8%
Write a program that will read an executive job number, level number and basic pay and compute the net salary after withholding income tax. (15 marks)
More Question Papers