🎯 This practice test is designed to help you prepare for the upcoming midterm exam on October 23rd, 2025. By working through these problems, you'll review key Python concepts and practice the types of questions you'll encounter on the actual exam. This comprehensive practice test mirrors the format, difficulty, and scope of your actual midterm - think of this as your final training session before the big day!
Practice makes perfect! This practice test allows you to prepare for the midterm exam.
- Assigned: Thursday, 16th October 2025 at 2:35pm
- Due: Thursday 23rd October 2025 at 2:35pm
- Expiration: Thursday, 30th October 2025 at 2:35pm Note: the expiration date is the last date you can submit your work for a grade.
By the end of this assignment, you will have practiced the following skills:
- Loops and Control Flow - for loops, while loops, nested loops, range() function
- Functions and Algorithms - function definitions, return values, exhaustive enumeration
- Dictionaries and Sets - creation, manipulation, iteration, set operations
- Operators and Conditionals - boolean logic, if/elif/else, comparison operators
- Python Literals and Variables - data types, variable assignment, string formatting
- Lists and Data Structures - list methods, slicing, comprehensions, tuples
- Strings and Slicing - string operations, slicing notation, string methods
In addition to the written practice test, this assignment includes a hands-on coding challenge that will help you practice implementing the concepts you've learned.
Create various text patterns using:
- Nested loops for multiplication tables
- String slicing with different parameters
- List comprehensions for number sequences
- Range function with different step values
When you complete this assignment, you should submit:
-
Completed Practice Test: Source code added where necessary, TO-DOs completed
practice_test/practice_test.md
-
Completed Coding Challenge: Source code with TO-DOs completed
src/challenge_patterns.py- Text pattern generator producing expected output
Quality Standards:
- All code should run without syntax errors
- Practice test answers should be clearly written and complete
- Coding challenges should produce the expected output format
- Demonstrate genuine effort and understanding of concepts
🚀 As you are working on your lab, you are to commit and push regularly. The commands are the following.
git add -A
git commit -m ``Your notes about commit here''
git pushSuper Important Advice!
After you have pushed your work to your repository, please visit the repository at the GitHub website (you may have to log-in using your browser) to verify that your files were correctly sent.
The grade that a student receives on this assignment will have the following components.
-
GitHub Actions CI Build Status [up to 10%]:: For the lab01 repository associated with this assignment students will receive a checkmark grade if their last before-the-deadline build passes. This is only checking some baseline writing and commit requirements as well as correct running of the program. An additional reduction will given if the commit log shows a cluster of commits at the end clearly used just to pass this requirement. An addition reduction will also be given if there is no commit during lab work times. All other requirements are evaluated manually.
-
Mastery of Technical Knowledge and Skills [up to 90%]: Students will receive a portion of their assignment grade when their program implementation reveals that they have mastered all of the technical knowledge and skills developed during the completion of this assignment. As a part of this grade, the instructor will assess aspects of the programming including, but not limited to, the completeness and the correctness of the program and the use of effective source code comments.
Students who have questions about this project outside of the lab time are invited to ask them in the course's Discord channel or during instructor's or TL's office hours.