Page:8
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'ASSISTANT PROFESSOR MECHANICAL ENGINEERING TECHNICAL EDUCATION ENGINEERING DCOLLEGES' And exam conducted in the year 2016. And Question paper code was '122/2016'. Medium of question paper was in Malayalam or English . Booklet Alphacode was 'A'. Answer keys are given at the bottom, but we suggest you to try answering the questions yourself and compare the key along wih to check your performance. Because we would like you to do and practice by yourself.
48, What will be the output of the following program ?
void main()
inti=1;
ചത്
}
A) 0 B) 1 ©) 2 0) शाण
47. What will be the value of ‘' after the execution of the following program ?
void main()
char a;
floatf=10;
for(a=1; a<=5,a++)
(1-೬.2;)
printf("\nf=%g" f);
A) 5.0 B) 9 C) 9.0 D) error
48. What will be the output of the following program ?
#define abc(x.y) x"y
void main() .
{
inta=1, b=2;
printf(“%d",abc(a+1,b-2));
^) 0 8) 1 ©) 2 (8
49. Which statement is added to the following program such that address of 1" 915 81018
1೧ 12" ?
void main()
int*r2; |
void abc(int **);
abo(&r2);
printf(“%d", *r2);
)
void abe(int )
{
101125;
/*add statement here*/
6) "2 ೬1 8) “1 = &13 ©) "3 = &1 D) none of the above
50. The CPU can also be called as
A) Processor hub B) ISP
© Node | D) All the above
-10-