UUnizy

Imperial · ELEC40004 · Electrical and Electronic Engineering

ELEC40004 Programming for Engineers: exam practice questions, marked

Practise for ELEC40004 Programming for Engineers at Imperial College London with 48 quick-recall questions, 24 exam-style questions and 16 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 ELEC40004 question

(a) State the value of each expression, with int a=7, b=2: (i) a/b (ii) a%b (iii) (double)a/b (iv) a1. [4] (b) Write a C loop that sums the integers 1 to 100 that are divisible by 3 or 5, and state the result's type choice. [4] (c) Explain what happens if two signed 32-bit ints whose sum exceeds 2^31-1 are added. [2]

Topics covered

  1. C Fundamentals: Types, Operators, Control Flow
  2. Functions, Scope and Program Structure
  3. Pointers and Memory Management
  4. Arrays, Strings and Structured Data
  5. Algorithms and Data Structures
  6. File I/O, Libraries and the Build Process
  7. Python for Engineering Computation
  8. Software Engineering Practice: Testing, Debugging and Version Control

Unizy is an independent revision tool and is not affiliated with or endorsed by Imperial College London. Marks are practice estimates, not official marks.