PPL QP
PPL QP
:
PA-3399 [Total No. of Pages : 3
[5919]-11
M.Sc. (Computer Science)
CSUT - 111 : PARADIGM OF PROGRAMMING LANGUAGE
(2019 Pattern) (Semester - I)
[5919]-11 1 P.T.O.
Q3) Attempt the following:
a) i) Explain different types of operators available in C. [5]
ii) Define Semaphore. [2]
b) Give Syntax and use of following functions: [5]
i) getchar( )
ii) putchar( )
iii) puts( )
iv) printf( )
v) scanf( )
[5919]-11 2
Q6) Attempt the following:
a) i) Find out the output of following code. Justify. [5]
main( )
{ int a = 10, b = 20;
{int c = 30;
printf (“%d %d %d”, a, b, c);
}
printf (“%d %d %d”, a, b, c);
}
ii) Give difference between Enum and Union. [2]
b) What will be output of following code. Justify. [5]
main( )
{ auto int i = 10;
{ auto int i = 20;
printf (“%d \n”, i);
}
printf (“%d \n”, i);
}
[5919]-11 3