Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

GHANA COMMUNICATION TECHNOLOGY UNIVERSITY

FACULTY OF COMPUTING AND INFORMATION SYSTEMS


DEPARTMENT OF COMPUTER SCIENCE
[BSc Computer Science] [BSc Software Engineering]
Level 100
CSSD 101: Programming and Problem Solving
Mid semester examination
----------------------------------------------------------------------------------------------------------------
ANSWER ALL QUESTIONS
DEADLINE FOR SUBMISSION: 26TH APRIL 2022 11:59PM

1. Write a solution to the problem of finding the smallest number out of three numbers.
2. List the specific steps that would enable another person to find the largest among
three numbers presented.
3. What are the differentt ypes of problems according to the course Programming and
problem solving?
4. State a reason why each of the six problem-solving steps is important in developing
the best solution for a problem.
5. Explain the concept of an algorithm.
6. What is a heuristic solution to a problem?
7. Why is it important to maintain a naming convention within the company that is
developing computer programs?
8. What is the difference between an expression and an equation?
9. Consider the statements given below and answer 9i, 9ii

a) Client-name referencing a client name.


b) City/State referencing a city and state
c) LN referencing a last name. e. Street address
d) Q for a quantity of books
e) Street_Address_for_Joe’s_Hardware_Supply_Incorporated_Client
f) City Name referencing the name of a city.

9i. What is wrong with these variable names?

9ii. Write the correct form of all that are wrong?

10. What is wrong with the following expressions?


a. “L” < 5
b. “D” * “5”
c. True < “F”
d. False >= 5
e. 5.9\2
f. 3 mod 5.2
g. As an equation: 5 = TotalTime - 40

You might also like