UCL · COMP0002 · Computer Science
COMP0002 Principles of Programming: exam practice questions, marked
Practise for COMP0002 Principles of Programming at UCL with 45 quick-recall questions, 18 exam-style questions and 9 first-class stretch questions, written from the module’s published description. Write an answer and get it marked against UCL’s grade bands in about 30 seconds, with the exact sentences that lost marks and three changes to reach the next class.
Try one free, no sign-up Create a free account
Example COMP0002 question
(a) Describe the stages by which a C source file becomes a running program, naming the tool involved at each stage. [4] (b) Explain what a debugger lets you do that adding print statements does not. [3] (c) A program compiles without errors but outputs wrong results. Outline a systematic strategy for locating the fault. [3]
Topics covered
- Core Programming Concepts and Tools
- Imperative Programming: Control Flow and State
- Types, Functions, Scope and Lifetime
- Arrays, Files and Basic Algorithms
- Pointers, Memory and Data Representation
- Functional Programming: Recursion and Lists
- Higher-Order Functions and List Comprehensions
- Lazy Evaluation and Paradigm Comparison
- Program Design and Good Practice
About the module
Aims:This module provides an introduction to computer programming using two different programming styles, imperative and functional programming. Its primary...
Unizy is an independent revision tool and is not affiliated with or endorsed by UCL. Marks are practice estimates, not official marks.