Programming Fundamentals

Student: Hamrah Kiggundu

Email: [email protected]

Instructor: Kimuli Shafiq

Contact: [email protected]

1. Understanding Programming Basics

Q1

What is programming?

0 words
Q2

List three examples of programming languages.

0 words

2. Input and Output

Q1

What is an input in programming? Give one example.

0 words
Q2

What is an output in programming? Give one example.

0 words

3. Algorithms

Q1

What is an algorithm?

0 words
Q2

Create a simple algorithm for making tea or coffee.

0 words

4. Variables

Q1

What is a variable in programming?

0 words
Q2

Write an example of how you can store your name in a variable.

0 words

5. Data Types

Q1

Name two types of data used in programming.

0 words
Q2

Write an example of a number data type and a text data type.

0 words

6. Decision Making (If Statements)

Q1

What is the purpose of an "if statement" in programming?

0 words
Q2

Write a simple "if statement" to check if a person is above 18 years old.

0 words

7. Loops

Q1

What is a loop in programming?

0 words
Q2

Write an example of a loop that counts from 1 to 5.

0 words

8. Functions

Q1

What is a function in programming?

0 words
Q2

Write a function that greets the user by saying, "Hello!"

0 words

9. Debugging

Q1

What is debugging?

0 words
Q2

Why is debugging important in programming?

0 words

10. Hands-on Practice

E1

Create a program that takes your name as input and displays, "Hello, [Your Name]!"

0 words
E2

Write a program to add two numbers and display the result.

0 words