INTRO TO COMPUTER SCIENCE AND PROGRAMMING TUTORIAL
1. DEFINE COMPUTER SCIENCE
2. Differentiate computers from the first generation to the fourth generation.
3. Explain the new technologies in the fifth generation
4. Give the difference between the following:
i. Hardware and software
ii. System software and application software
iii. Address bus and control bus
iv. ROM and RAM
v. CU and ALU
vi. Primary storage and secondary storage
5. Define an Operating System and give examples
6. Explain the functions of an operating system
7. Define Utility program and give examples
8. List any characteristics of an effective data communication system
9. With an aid of a diagram explain the key elements of a communication model
10. List the advantages and disadvantages of networking
11. Explain the difference between the following types of networks
LAN, WAN PAN, MAN
12. Differentiate between the following topologies
STAR, RING, BUS, MESH
13. Calculate the computer representation in ASCII for the following word: (make use of the
table attached for the decimal equivalent values)
i. ‘This is interesting’
ii. ‘ Done’
14. Use radix representation to convert the binary number (101.01) into decimal
15. Convert (0.625)10 to binary
16. Convert 61.6875)10 to binary
17. Convert the decimal number (107.00390625)10 into hexadecimal number
18. Convert 3A9F16 to binary
19. Write an algorithm to determine a student’s final grade and indicate whether it is passing or
failing. The final grade is calculated as the average of four marks.
20. What is the output of the following code?
21. Develop a program that prints all the odd numbers from a given range (1 to N) using a while
loop. The program should prompt the user for an input of N.
22. Write a program that calculates mileage reimbursement for a salesperson at a rate of $.35
per mile. Your program should interact with the user in this manner: MILEAGE
REIMBURSEMENT CALCULATOR Enter beginning odometer reading=> 13505.2 Enter ending
odometer reading=> 13810.6 You travelled 305.4 miles. At $0.35 per mile,your
reimbursement is $106.89.
23. Write a program that calculates the user’s body mass index (BMI) and categorises it as
underweight, normal overweight or obese, based on the following table from the united
states centers for Disease control:
BMI Weight Status
Below 18,5 underweight
18.5 – 24.9 normal
25.5 – 29.9 overweight
30.0 and above obese
To calculate BMI based on weight in pounds (wt_lb) and height in inches (ht_in) use this
formula (rounded to tenths):
(703 * wt_lb)/(ht_in)2
Prompt the user to enter weight in pounds and height in inches.
24. What is the output of the following code?
25. What is the output of the following code?
26. Define database, database security and cloud computing
27. List advantages and disadvantages of databases
28. Discuss problems associated with cloud computing