Ie1005-W2t1 ZX
Ie1005-W2t1 ZX
Note to students:
1) Please sign your attendance
2) Please sit according to the S/N on attendance sheet
corresponding to the PC number, and sit on the same
seat throughout the course
3) Attend your registered class only (not other classes)
4) Understand the goal of learning the C programming
language, and appreciate various “balances” [knowledge/
skills vs. marks/CAs; given tutorials vs. extra reading/practice]
5) Learn the language capabilities and programming skills
6) Practice, practice, and practice – make best use of lab
time, and adjust your own pace [balance with class pace]
7) Come prepared before lab, and test your ideas/doubts
by asking “what-if” and practicing “trial-and-error”
8) It is extremely important to follow the lecture video
watching schedule
9) You will be given my Notes (but not tutorial slides)
I won’t set any office hours but you can see me any time
as long as I’m in office. Email me when you have any
questions/doubts.
1
2023_24(S1) – IE1005 – Week2/Tut-1
2
2023_24(S1) – IE1005 – Week2/Tut-1
Assessment Components
1) Class Participation (10%)
Answer tutorial questions in class, pro-active participation
Work on practical exercises in class, raising questions & extending ideas
2) Continuous Assessment [CA] (20%): Two continuous assessments in
class (10% each)
First continuous assessment [CA-1] planned for Week 5 (30min)
Second continuous assessment [CA-2] planned for Week 9 (30min)
Format: 1 question, programming-based, OPEN-book, you may discuss
and access internet but no copying from each other
Submission on time: between 30min and 40min (10 to 0 mark)
3) Practical Test [PT] (40%): Two practical tests in class (20% each)
First practical test [PT-1] occurs in Week 7 (45min)
Second practical test [PT-2] occurs in Week 11 (45min)
Format: 1 question, programming-based, restricted OPEN-book, no
access to internet except for NTULearn and softcopies of course
materials/notes; independent, i.e., no discussion, but you can consult
the tutor for assistance (10 to 0 mark)
Submission on time: between 45min and 60min (10 to 0 mark)
Coverage [PT-2]: Lecture lessons 1 to 9 (up to Modular Programming;
Tutorial/Practical lessons 1 to 9, excluding Pointers)
4) Common Quiz (30%): in week 14, CLOSED-book, Multiple-choice
questions, cover ALL contents including Arrays (weeks 12–13 topics). More
details from course coordinator
Tips:
Concentrate on learning objectives, and reward (‘marks’) would come
along as a result
Learn examples in the lab session and try to extend similar ideas in future
labs (and future career)
Test your ideas by trial-and-error - test run C programs whenever in doubt
Make a note of the mistakes so that you won’t repeat them
3
2023_24(S1) – IE1005 – Week2/Tut-1
4
2023_24(S1) – IE1005 – Week2/Tut-1
The compiler also links any library (object files) used in the C
source code.
An executable file with a default name ‘a.out’ will be generated if
no syntax errors.
Run (execute) the C program by typing:
a.out
Hands-on programming:
#include <stdio.h>
void main()
{
printf("hello, world\n");
//printf("hello, world");
//printf("hello, ");
//printf("world");
//printf("\n");
// printf("hello, world
// ");
}
6
2023_24(S1) – IE1005 – Week2/Tut-1
7
2023_24(S1) – IE1005 – Week2/Tut-1
#include <stdio.h>
int main()
{
int a;
return 0;
}
And, to be generalized…
8