Student: Hamrah Kiggundu
Email: [email protected]
Instructor: Kimuli Shafiq
Contact: [email protected]
What is programming?
List three examples of programming languages.
What is an input in programming? Give one example.
What is an output in programming? Give one example.
What is an algorithm?
Create a simple algorithm for making tea or coffee.
What is a variable in programming?
Write an example of how you can store your name in a variable.
Name two types of data used in programming.
Write an example of a number data type and a text data type.
What is the purpose of an "if statement" in programming?
Write a simple "if statement" to check if a person is above 18 years old.
What is a loop in programming?
Write an example of a loop that counts from 1 to 5.
What is a function in programming?
Write a function that greets the user by saying, "Hello!"
What is debugging?
Why is debugging important in programming?
Create a program that takes your name as input and displays, "Hello, [Your Name]!"
Write a program to add two numbers and display the result.