This document contains a sample exam for a Computer Science class. It is divided into three sections. Section 1 contains multiple choice and short answer questions about programming concepts like control structures, functions, files, and databases. Section 2 asks students to describe database models and components. Section 3 contains longer programming questions, like writing a function to calculate the sum of squares or appending to a text file. The exam tests students on their understanding of fundamental CS topics through different question formats.