These questions have not been updated this term. They may be useful for revision,
but will not be used as part of teaching.
Welcome to COMP1511
Introduce yourselves, get to know your tutor, get to know your classmates.
How do you make a peanut-butter sandwich?
How could you break that process into steps?
How could you break it down clearly enough that a computer could understand
it?
Maybe your tutor could do a live demonstration of a similar task following
your exact instructions...
If you are in an online class, your tutor will now take a few minutes to go over features of Blackboard
Collaborate (recordings, raising hands, doing polls, and sharing screen)
Do you have any questions about the course so far? eg course website,
structure, assessments, achievements?
Operating Systems
What is an operating system?
What operating system do you run? What about your classmates? The CSE lab
(and VLAB) computers?
What are the differences between graphical user interfaces and the command
line? When might one be better than the other?
Introduction to C programming
Discuss the following features of the sample program from lectures:
// Basic Hello World program// Marc Chee, September 2020#include<stdio.h>intmain(void){printf("Hello World\n");return0;}
the \n
Comments: What should go in a comment? What makes a good comment? How do
comments improve program style?
Indenting and whitespace: What is indented in the sample program? Suggest why.
Write a C program, face0.c, that behaves as follows:
./face0
~ ~
0 0
o
-
How would you compile this program?
How could we modify it to make a program, face1.c, look like this
instead?
./face1
~ ~
0 0
o
\_/
Debugging
This program 'won't work'. What's wrong with it? Split off into groups and discuss why. Line numbers are included for reference.