Unit-1-PPS Answers_SRM_UNIVERSITY
Unit-1-PPS Answers_SRM_UNIVERSITY
14.Int Main()
{
Extern Int I;
I = 20;
Printf("%d", Sizeof(I));
Return 0;
}
A. 20 B. 2 C. Undefined Reference to I D. Linking Error
17.If we have declared an array described int arr[6]; then which of the following array
index is considered as last array index ?
A. 6 B. 4 C. 0 D. 5
18.Which bitwise operator is suitable for turning off a particular bit in a number?
a) && b) & c) << d) !
25.#include<conio.h> includes
a) Console input/output b) character handing function
c) string function d) date and time functions
28.Names defined by programmers for variables, constants and functions are called as
a) identifiers b)keywords
c)data types d)form feed
42.int main()
{ int x=5, y=10;
printf(“%d”, (x>y) && (x+y));
return 0;}
a)0 c)1 b)5 d)10
45.Which of the following is the correct syntax for copying a string S1 into S2?
(a) strcpy(S2,S1); (b) strcpy(S1,S2);
(c) strcmp(S1.S2); (d) strcmp(S2,S1);
5. Explain C Tokens in detail with appropriate examples and different data types
handled in C.
6. Write a program for bitwise left shift and right shift operator
12.