Department of Computer ScienceAssignment 1: Introduction to Programming
Course Code: CS101
Date Posted: June 4, 2024
Due Date: June 7, 2024
Instructions:
Dear Students,
Please find attached Assignment 1 for the Introduction to Programming course (CS101). Kindly
complete the assignment and submit it by the due date indicated above.
If you have any questions or concerns regarding the assignment, feel free to reach out to me via
email or during my office hours.
Best regards,
Assignment 1 Questions:
1. Explain the difference between syntax errors and logic errors in programming, and
provide an example of each.
2. Discuss the concept of time complexity in algorithm analysis, and provide an example of
an algorithm with a time complexity of O(n^2).
3. Write a Python function that takes a list of numbers as input and returns the sum of all
even numbers in the list.
1