CS 31 Final Exam Practice Questions & Answer Key | UCLA Introduction to Computer Science I (C++) – 100+ Questions
CS 31 finals are known for tricky code-tracing questions and C-string and pointer problems, so the best preparation is plenty of realistic practice. This pack gives you four full practice finals.
It contains four full practice versions of the UCLA CS 31 Introduction to Computer Science I final exam. Each version has 20 multiple-choice questions plus 4 C++ coding problems, so you practise both reading code carefully and writing your own functions.
Topics include pass-by-value versus pass-by-reference, pointers and dangling pointers, integer and floating-point arithmetic, loops with break and continue, const references, arrays, C strings and cctype, string processing, classes and constructors, and writing functions such as removeChar, rotateLeft, countWords, compress and isPalindrome.
The answer key covers every version, with correct, working C++ solutions for each coding problem.
What you get:
• 4 practice exam versions, 100+ questions
• Code-tracing multiple choice plus C++ coding problems
• Answer key for all versions
• 82-page PDF, instant download
Trace each program by hand before checking the answer. It's the single best habit for doing well on the CS 31 final.