What This Document Is
This document is a past midterm examination for COMSCI 31, Introduction to Computer Science I, at the University of California, Los Angeles. It represents a summative assessment used to evaluate student understanding of core concepts covered during a specific point in the course’s summer session in 2009. The exam is designed to test problem-solving skills and the application of fundamental programming principles.
Why This Document Matters
This resource is exceptionally valuable for students currently enrolled in or preparing for COMSCI 31. Reviewing prior exams is a proven strategy for understanding the course’s expectations, identifying key areas of focus, and familiarizing yourself with the types of questions asked. It’s particularly useful for self-assessment and pinpointing areas where further study may be needed. Accessing the full document allows for a realistic practice experience, helping to build confidence and reduce test-day anxiety.
Topics Covered
* Basic C++ Syntax and Control Flow
* Conditional Statements and Logical Operators
* Loops and Iteration
* Function Definition and Usage
* Array Manipulation
* Temperature Conversion Algorithms
* Geometric Shape Generation through Code
* Number Theory – Factor Identification
* Probability and Simulation (Birthday Problem)
What This Document Provides
* A complete, previously administered midterm exam.
* A variety of problem types, including code tracing, program writing, and algorithmic thinking.
* Questions requiring both conceptual understanding and practical application of C++ programming skills.
* An opportunity to assess your preparedness for similar assessments in COMSCI 31.
* Insight into the exam format and difficulty level expected in the course.