Imperial · ELEC60015 · Electrical and Electronic Engineering
ELEC60015 High Level Programming: exam practice questions, marked
Practise for ELEC60015 High Level Programming at Imperial College London with 54 quick-recall questions, 27 exam-style questions and 18 first-class stretch questions, written from the module’s published description. Write an answer and get it marked against Imperial’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 ELEC60015 question
Consider the following F code. let x = 10 let f y = x + y let x = 20 let g = f 5 let h = let x = 3 in f x + x (a) State the values of g and h, showing your reasoning. [4] (b) Explain why the second binding of x does not affect f. [3] (c) Inside a function body, a student writes let mutable c = 0 followed by let inc () = c <- c + 1. State what the compiler does and give a correct alternative. [3] [10 marks]
Topics covered
- F# fundamentals: expressions, bindings and immutability
- Functions: currying, closures and composition
- Lists and recursion
- Higher-order functions and folds
- Algebraic data types and pattern matching
- Option, Result and error handling
- Collections, laziness and performance
- Type-driven design, generics and modules
- Functional architecture, testing and team development
Unizy is an independent revision tool and is not affiliated with or endorsed by Imperial College London. Marks are practice estimates, not official marks.