Skip to main content

Trinity College Dublin, The University of Dublin

Trinity Menu Trinity Search

You are here Courses > Undergraduate > Courses & Modules

Module MAU11601: Introduction to programming

Credit weighting (ECTS)
5 credits
Semester/term taught
Michaelmas term 2021-22
Contact Hours
(Covid-19 arrangements) 11 weeks with equivalent of 3 hours' lectures per week, plus tutorials. Course web page, including lecture notes:
Prof. Colm Ó Dúnlaing
Learning Outcomes
On successful completion of this module students will have;
  • Ability to write simple C programs quickly.
  • Familiarity with computer representation of data.
  • Ability to simulate simple routines, recursive or otherwise.
  • Ability to formalise and verify the correctness of some simple programs.
Module Content (where time permits)
  • Hexadecimal numbers, machine code
  • Basic data types char, short, int, long, float, double, pointer, arrays.
  • Integer arithmetic.
  • Variables.
  • Assignment statements.
  • Arrays and initialisation.
  • For-loops and output.
  • While-loops.
  • Command-line arguments.
  • Input through scanf() and fgets() and >>.
  • If-statements.
  • Functions and subroutines.
  • Simulating functions and subroutines.
  • Formal verification using loop invariants.
  • 2-dimensional arrays.
  • Type conversion, unsigned types, sign extension.
  • C string library.
  • Pointers, Malloc() and Calloc()
  • Structured types
Module Prerequisite
Assessment Detail
Under Covid-19 arrangments, this module will be examined in a 3-hour take-home exam, plus coursework: each counts for 50% of the overall mark. Re-assessments (second attempt), if required, will be 100% exam.