ICS 2102 Introduction to Computer Programming (1)
ICS 2102 Introduction to Computer Programming (1)
QUESTION ONE
1) Algorithm
2) Pseudo code
3) Arithmetic operations
4) Syntax errors
5) Semantic errors
1) &
2) ;(period)
3) ‘ (apostrophe)
4) ,(comad)
5) ;(semicolon)
QUESTION TWO
QUESTION THREE
c) Find out errors in the following program component and justify the
same (5 marks)
float i ;
int P=0;
for (i=0; i=10; i+=2)
{
P=i*2;
Printf ( “%d”, I, P);
QUESTION FOUR
1) int*ptr, m=8;
2) *ptr =m;
3) ptr=$m;