You are on page 1of 35

Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

1. [A]

A) Compile time error B) 20 C) 30 D) 40

2. [C]

A) 1001 B) 1002 C) Compiler time error D) 1003

3. What is the value of an array element which is not initialized.? [C]

A) 0 B) 1 C) depends on the storage class D) None of the mentioned

4. What happens when you try to access an Array variable outside its Size.? [C]

A) Compile time error B) 1 is retuned C) some garbage value is thrown D) 0 is retuned

Page No.: 1
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

5. [A]

A) 0,8 B) 1,9 C) 2,7 D) compile time error

6. Can we change the starting index of an array from 0 to 1 in any way.? [C]

A) yes by help of pointers B) yes by help of call by values C) no D) None of the mentioned

7. what is the need in using the concept of arrays? [D]

A) You need not create so many separate B) Using a single Array variable, you can C) Code maintainability is easy for D) all of the mentioned
variables and get confused while using. access all elements of the array easily. programmers and maintainers.

8. [A]

A) Compile time error B) 0 C) 1 D) 2

Page No.: 2
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

9. [C]

A) 0 B) 2 C) garbage value D) 1

10. what is multidimensioal array in c? [D]

A) To access 3rd Row 2nd element use B) its an array of arrays C) its llike a matrix with rows and D) all of the mentioned
ary[2][1] as the index starts from 0 row or columns
column

11. If an integer array pointer is incremented, how many bytes will be skipped to reach next element location.? [D]

A) 1 B) 2 C) 4 D) either b or c

12. [C]

Page No.: 3
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

A) 10 10 10 B) 20 20 10 C) 10 20 30 D) 30 20 10

13. What is the function used to allocate memory to an array at run time with Zero initial value to each.? [A]

A) calloc() B) palloc() C) kalloc() D) malloc()

14. What is the function used to allocate memory to an array at run time without initializing array elements.? [D]

A) calloc() B) palloc() C) kalloc() D) malloc()

15. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array? [A]

A) The program may crash if some B) The array size would appropriately C) The element will be set to 0. D) The compiler would report an error.
important data gets overwritten. grow.

16. What does the following declaration mean? [B]


int (*ptr)[10];
A) ptr is array of pointers to 10 integers B) ptr is a pointer to an array of 10 integers C) ptr is an array of 10 integers D) ptr is a pointer to an array

17. [B]

A) str1 is Quiz, str2 is Geeks B) str1 is Geeks, str2 is Quiz C) str1 is Geeks, str2 is Geeks D) str1 is Quiz, str2 is Quiz

Page No.: 4
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

18. [C]

A) 2001 B) GATE2011 C) 2011 D) E2011

19. [A]

A) geeksquiz B) run time error C) compile time error D) geeksquiz followed by garbage
characters

20. [B]

A) Compile time error B) nothing will be printed C) Run time Error D) gnirt

Page No.: 5
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

21. [C]

A) ABDCADBC B) DCBADCBA C) DCBA D) ABCD

22. [A]

A) GeeksQuiz B) GeeksQuizGeeksQuiz C) Quiz D) Geeks

23. If the two strings are identical, then strcmp() function returns [C]

A) 1 B) 2 C) 0 D) 3

24. The library function used to find the last occurrence of a character in a string is [C]

A) strnstr() B) laststr() C) strrchr() D) strstr()

25. Which of the following function is more appropriate for reading in a multi-word string? [B]

Page No.: 6
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

A) puts(); B) gets(); C) printf(); D) scanf();

26. Choose a correct statement about C String. [A]

char ary[]="Hello..!";
A) Character array, ary is a string. B) ary has no Null character at the end C) string size is undefined D) string should not contain special
characters

27. What is the Format specifier used to print a String or Character array in C Printf or Scanf function.? [C]

A) %c B) %d C) %s D) %w

28. what is the maximum length of a C string? [D]

A) 32 characters B) 64 characters C) 256 characters D) None of the mentioned

29. An integer array of dimension 10 is declared in a C program. The memory location of the first byte of the array is 1000. What will be the [B]
location of the 9th element of the array? (Assume integer takes 4 bytes of memory and the element stored at 1000 is i
A) 1028 B) 1032 C) 1024 D) 1036

30. What actually gets passed when you pass an array as an argument to a function? [C]

A) value of elements in array B) first element of the array C) base address of the array D) address of the last element of the
array

31. An array of the void datatype [D]

A) can store any datatype B) only stores element of the similar C) acquires the datatype with the D) it is not possible to have an array of
datatype to first element highest precision in it void datatype

32. [C]

Page No.: 7
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

A) 10 B) 20 C) 40 D) 60

33. __________ bytes are required to encode 2000 bits of data. [B]

A) 8 B) 2 C) 4 D) 6

34. The variable listed in function call are called [B]

A) formal parameter B) actual parameter C) A and B D) None of the mentioned

35. To make larger program into the smaller ones these are called ------------------- [B]

A) Functions can return any type B) Functions C) values D) None of the mentioned

36. the variable declared inside the block is called [D]

A) Local path B) laststr() C) Logical operator D) Local Variable

37. The standard C program STDLIB is used for [C]

A) funcrtion B) Library C) Library Function D) Operator

38. Which of the following have their changes in their declaration related to constness of parameter? [A]

A) strchr B) strchar C) mkdir D) str

39. How many elements does a floating point number is composed of? [B]

A) 3 B) 4 C) 1 D) 2

Page No.: 8
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

40. [A]

A) 12.37 B) 12.3547 C) 3.12 D) 37.12

41. [A]

Page No.: 9
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

A) 40 B) 32 C) 30 D) 20

42. [A]

A) 2311 B) 1123 C) 3211 D) 12341

43. [D]

A) 2 B) 5 C) 4 D) 3

44. Advantages of functions [D]

A) Helps to avoid repeated Program across B) Enhance the logical clarity of the C) Helps to avoid repeating set of D) all of the mentioned
Programs Program statements many times

Page No.: 10
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

45. A C Program [A]

A) Must contain atleast one Function B) Should not contain any function C) Needs input Data D) None of the mentioned

46. what is a function [A]

A) (b) (c ) and (d) are correct B) Function is a block of statement that C) function is a fundamental modular D) function has a name and its Reuse
performs specific task unit which performs specific task

47. The default parameter passing method is [A]

A) Call by value B) Call by result C) Call by reference D) None of the mentioned

48. which of the following is a complex function? [A]

A) int funct(int x) { return x= x+1;} B) int funct(int x) C) float funct(x) { wait x= x+1;} D) None of the mentioned

49. [D]

A) Compile time error B) run time error C) 30 D) 20

Page No.: 11
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

50. [A]

A) Number of elements between two pointer B) Number of elements between two C) Number of elements between two D) run time error
are: 5. Number of bytes between two pointer are: 20. Number of bytes pointer are: 5. Number of bytes
pointers are: 20 between two pointers are: 20 between two pointers are: 5

51. [C]

A) srinivas B) run time error C) S D) compile time error

52. The reason for using pointers in a Cprogram is [D]

A) Pointers allow different functions to B) To pass large structures so that C) Pointers enable complex “linked" D) all of the mentioned
share and modify their local variables. complete copy of the structure can be data structures like linked lists and
avoided. binary trees.

53. What is (void*)0? [C]

A) Representation of void pointer B) Error C) Representation of NULL pointer D) None of the mentioned
Page No.: 12
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

54. A pointer is [A]

A) A variable that stores address of other B) A variable that stores address of an C) A keyword used to create variables D) all of the mentioned
variable instruction

55. The operator used to get value at address stored in a pointer variable is [C]

A) % B) && C) * D) #

56. How can you write a[i][j][k][l] in equivalent pointer expression? [D]

A) (((***(a+i)+j)+k)+l) B) ((**(*(a+i)+j)+k)+l) C) (*(*(*(a+i)+j)+k)+l) D) *(*(*(*(a+i)+j)+k)+l)

57. Address stored in the pointer variable is of type __________. [B]

A) char B) int C) float D) double

58. [A]

A) 11,11 B) 10,11 C) 11,10 D) 10,10

59. Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0)? [A]

A) int *ptr = &a; B) int *ptr = &a – &a; C) int *ptr = a – a; D) None of the mentioned

60. Pointer is special kind of variable which is used to stored __________ of the variable. [B]

A) value B) address C) datatype D) variable name

61. In order to fetch the address of the variable we write preceding _________ sign before variable name. [C]

A) Asteriks B) comma C) Ampresand D) percentage

Page No.: 13
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

62. "&" is called as ___________ in pointer concept. [D]

A) relational operator B) conditional operator C) Logical operator D) Address operator

63. In which header file is the NULL macro defined ? [C]

A) stdio.h B) conio.h C) stdio.h and stddef.h D) math.h

64. [A]

A) 0,0,0 B) 2,1,0 C) 3,2,1 D) 1,1,1

65. What do the following declaration signify? [D]


char **argv;
A) argv is a pointer to pointer. B) argv is a function to a pointer. C) argv is a member of function pointer. D) argv is a pointer to a char pointer

66. [B]

A) 0xbfd605e8 0xbfd605e8 B) compiler time error C) 0xbfd605e8 0xbfd605ec D) 0 0

67. Which of the following are correct syntaxes to send an array as a parameter to function: [B]

A) func(string); B) func(array); C) func(int); D) func(float);

Page No.: 14
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

68. [C]

A) 5 5 5 B) 5 5 Junk value C) compile time error D) 5 junk value

69. How many number of pointer (*) does C have against a pointer variable declaration? [B]

A) 7 B) no limits C) 127 D) 248

70. What is the limit for number of functions in a C Program.? [D]

A) 16 B) 32 C) 256 D) No limit

71. What is the minimum number of functions to be present in a C Program.? [C]

A) 10 B) 0 C) 1 D) 100

72. [A]

A) ROCKET STATIC B) ROCKET C) STATIC D) compile time error

Page No.: 15
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

73. What characters are allowed in a C function name identifier.? [C]

A) Alphabets, Numbers, %,$ B) Alphabets, Numbers, dollar$ C) Alphabets, Numbers, Underscore ( _ D) Alphabets, Numbers, Special
) Symbols

74. [A]

A) 25 25 B) 0 25 C) 25 0 D) compile time error

75. [B]

A) * = ADDRESS OF operator, & = B) * = VALUE AT operator, & = ADDRESS C) * = ADDRESS OF operator, & = D) * = VALUE AT operator, & = VALUE
ADDRESS OF operator OF operator VALUE AT operator AT operator

Page No.: 16
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

76. [D]

A) SUM=30 SUM=15 B) SUM=15 SUM=15 C) SUM=30 SUM=30 D) SUM=15 SUM=30

77. Arguments passed to a function in C language are called ___ arguments. [A]

A) Actual Arguments B) Formal Arguments C) Definite Arguments D) Ideal Arguments

78. Choose a non Library C function below. [D]

A) printf() B) scanf() C) fprintf() D) printf2()

79. What is the default return value of a C function if not specified explicitly.? [C]

A) -1 B) 0 C) 1 D) 2

Page No.: 17
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

80. [B]

A) 68 66 66, B) 68 68 66, C) 68 68 66, D) 68 68 66,


68 66 66, 68 66 68, 68 66 68, 68 66 66,
68 66 66 68 68 66 68 68 68 68 68 66

81. [A]

A) 3 3 1, B) 3 3 1, C) 3 1 1, D) 3 3 1,
3 1 3, 3 1 3, 3 1 3, 3 3 3,
331 311 331 331

Page No.: 18
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

82. [C]

A) 1 1 3 B) 1 3 3 C) 3 1 3 D) 3 3 3

83. [B]

A) ANT B) compiler time error C) Integer D) Viod

Page No.: 19
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

84. [C]

A) 20 0 0 B) 40 30 20 C) 20 30 40 D) 40 20 30

85. [A]

A) 20 1234 20 B) 20 20 20 C) 20 1234 1234 D) 20 0 20

Page No.: 20
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

86. [C]

A) DINOSAUR B) CINEMA DINOSAUR C) CINEMA D) compile time error

87. Prior to using a pointer variable it should be [D]

A) Declared B) Initalized C) Including the values D) Both declared and initalized

88. [B]

A) Different B) will be the same C) Not Related D) Error

89. In C a pointer variable to an integer can be created by the decalaration [D]

A) int $p; B) int +p; C) int p*; D) int *p;

90. what are the operations that we cannot perform in pointers concept? [C]

A) Allocation of memory B) Deallocation of memory C) (A) and (B) D) None of the mentioned

91. A pointer variable can be [A]

A) Returned by a function B) Passed to a function C) Changed to a function D) Can be assigned an integer value

92. a->b is syntactically correct if [D]

A) A is structure and B is pointer B) A and B are structures C) a is a pointer to a structure and b is D) None of the mentioned
a structure

Page No.: 21
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

93. [D]

A) if(myPtr) *myPtr = NULL; B) *myPtr = NULL; C) if(!myPtr) *myPtr = NULL; D) all of the mentioned
else *myPtr = NULL; else *myPtr = NULL;

94. [C]

A) prints t B) prints u C) prints e D) prints b

95. The operators > and < are meaningful when used with pointers, if [A]

A) the pointers point to elements of the B) the pointers point to structure of similar C) the pointers point to data of similar D) None of the mentioned
same array data type type

96. [B]

A) charPtr = voidPtr B) voidPtr = charPtr C) *voidPtr =*charPtr D) *charPtr=*voidPtr

97. Which of the following operators can be applied to pointer variable(s)? [A]

A) Casting B) Division C) Multiplication D) None of the mentioned

Page No.: 22
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

98. [C]

A) fga B) def C) efg D) abc

99. Pick the correct answers. [D]


If x is an one dimensional array, then
A) &x [i] is same as x + i - 1 B) * (x + i ) is same as * (&x [i] ) C) * (x + i) is same as x[i] D) (B) and (c )

100. Let x be an array. Which of the following cannot be present in the left hand side of an assignment statement? [D]

A) x B) &x[i] C) x+i D) all of the mentioned

101. [A]

A) first (second); B) first (&second); C) second (first); D) None of the mentioned

102. Let x be an array. Which of the following operations are illegal? [A]

A) ++x B) X * 2 C) X + + D) all of the mentioned

103. If func is a function needing three arguments a1, a2, a3 then func can be invoked by [D]

A) func(a1, a2, a3) ; B) (*func)(a1, a2, a3); C) *func(a1, a2, a3); D) (a) & (b)

Page No.: 23
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

104. [B]

A) p is a one dimensional array of size 5, of B) p is a pointer to a 5 element integer C) the same as int *p[5]; D) all of the mentioned
pointers to integers array

105. [A]

A) An error message B) 5 x address of b C) garbage value D) 25

106. [C]

A) a = b; and b = c; B) Error message C) c = d; and d = a; D) a = b; and d = a;

107. calloc(m, n); is equivalent to [B]

A) ptr = malloc(m*n); strcpy(p, u); B) ptr = malloc (m*n); memset (p, 0, m*n); C) memset(0, m*n); D) malloc (m*n, 0);

108. If p is a pointer to an integer and t is a pointer to a character then sizeof (p) will be [C]

A) greater than that of sizeof (t) B) lesser than that of sizeof (t) C) same as that of sizeof ( t ) D) None of the mentioned

109. Which of the following comments about arrays and pointers is/are not true? [D]

A) Both are exactly same B) Array is a constant pointer C) Pointer is an one-dimensional and D) all of the mentioned
dynamic array

Page No.: 24
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

110. Local variables are stored in an area called ___________ [B]

A) Heap B) Stack C) Permanent storage data D) Free memory

111. The size of both stack and heap remains the same during run time. [B]

A) TRUE B) FALSE C) Either true or false D) both True and False

112. Which of the following header files must necessarily be included to use dynamic memory allocation functions? [A]

A) stdlib.h B) stdio.h C) conio.h D) math.h

113. Memory allocation using malloc() is done in? [B]

A) Memory area B) Heap area C) Stack area D) Queue area

114. Why do we write (int *) before malloc? [C]


int *ip = (int *)malloc(sizeof(int));
A) It is for the syntax correctness B) It is to inform malloc function about the C) It is for the type-casting D) None of the mentioned
data-type expected

115. Which one is used during memory deallocation in C? [D]

A) delete(p); B) terminate(p); C) remove(p); D) free(p);

116. On freeing a dynamic memory, if the pointer value is not modified, then the pointer points to? [C]

A) Null B) Other dynamically allocated memory C) The same deallocated memory D) It points back to location it was
location initialized with

117. calloc initialises memory with all bits set to zero. [A]

A) TRUE B) FALSE C) Depends on the compiler D) Depends on the memory

118. Which header file should be included to use functions like malloc() and calloc()? [B]

A) stdio.h B) stdlib.h C) math.h D) dosh.h

119. What function should be used to free the memory allocated by calloc() ? [B]

A) malloc(variable_name, 0) B) free(); C) memalloc(variable_name, 0) D) dealloc();


Page No.: 25
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

120. [A]

A) free(p); B) memfree(int p); C) dealloc(p); D) malloc(p);

121. Specify the 2 library functions to dynamically allocate memory? [C]

A) malloc() and memalloc() B) alloc() and memalloc() C) malloc() and calloc() D) memalloc() and faralloc()

122. According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments? [A]

A) int main(int argc, char *argv[]) B) int main(argc, argv) C) int main() D) None of the mentioned
int argc; char *argv; {
int argc; char *argv;
}

123. What do the 'c' and 'v' in argv stands for? [D]

A) 'c' means argument control 'v' means B) 'c' means argument count 'v' means C) 'c' means argument configuration 'v' D) 'c' means argument count 'v' means
argument vector argument vertex means argument visibility argument vector

Page No.: 26
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

124. [B]

A) 4 B) 2 C) 8 D) Garbage value

125. [C]

A) 0xffee B) 0xffff C) garbage value D) Error

Page No.: 27
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

126. [A]

A) 10.1 B) 10 C) garbage value D) Error

127. [C]

A) 56 bytes B) 128 bytes C) 24bytes D) 62 bytes


Page No.: 28
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

128. [D]

A) 128256 B) 64128 C) 12,14 D) 2,8

129. [C]

A) Segmentation fault B) 10 C) compile time error D) Some garbage value

130. Which of the following is the correct syntax to send an array as a parameter to function? [C]

A) func(&&array); B) func(&*array); C) func(array); D) func(-array);

Page No.: 29
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

131. Prior in using pointer variable [D]

A) should keep in mind B) should be follow rules C) should be declared D) should be declared and initlized

132. comment on the following declaration int *ptr, p; [A]

A) ptr is a pointer to the integer ,p is not B) p is a pointer to the integer ,ptr is not C) p is a pointer to the integer ,p is not D) Ptr is not a pointer to the integer ,Ptr
is pointer to integer

133. The address operator &, cannot act on [C]

A) Arithematic Expressions B) R Value C) Both the Above D) Local Variable

134. The statement **a; [C]

A) is synthetically correct B) is semantically correct C) is synthetically and symantically D) None of the mentioned
correct

135. The operator < and > is meaningful when [A]

A) the pointer points to the elements of the B) The pointer points to the data of same C) the pointer points to the structure of D) None of the mentioned
same array type the same type

136. The Declaration int(*p) [5]; means [A]

A) P is apointer to a 5 element of the B) P is a array to a 5 element of the float C) P is apointer to a 5 element of the D) None of the mentioned
integer array array ireal array

137. comment the following? const int *ptr; [B]

A) we can change the value pointed by ptr B) we cannot change the value pointed by C) we can replace the value pointed by D) None of the mentioned
ptr ptr

138. Which of the following are correctly formed #define statements? [B]

A) #define INCH PER FEET 12 B) #define SQR(X) (X*X) C) #define SQR OF(X) (X*X) D) None of the mentioned

139. which of the following is the correct way for declaring the float pointer? [A]

A) float *ptr; B) int *ptr; C) double *ptr; D) boolean *ptr;

140. what is the best data type of a pointer variable by which the memory would be allocated to it? [C]

Page No.: 30
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

A) int B) signed int C) Unsigned int D) float

141. [B]

A) char *p = (char*)calloc(100); B) char *p = (char*)malloc(100); C) int *p = (char*)malloc(100); D) float *p = (char*)malloc(100);

142. [C]
In which header file is the NULL macro defined?
A) stdio.h B) stddef.h C) stdio.h and stddef.h D) stdio.

143. [D]
How many bytes are occupied by near, far and huge pointers (DOS)?
A) near=2 far=4 huge=8 B) near=2 far=4 huge=10 C) near=2 far=8 huge=4 D) near=2 far=4 huge=4

144. [C]
If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the
pointer variable?
A) / B) * C) -> D) !

145. What would be the equivalent pointer expression for referring the array element a[i][j][k][l] [D]

A) (a+i) B) (a+i)+j)+k)+l) C) *(*(*(*(a+i)+j)+k) D) *(*(*(*(a+i)+j)+k)+l)

146. [A]
The operator used to get value at address stored in a pointer variable is
A) * B) & C) && D) !

Page No.: 31
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

147. [D]

A) Error R value is Required B) Error : Declaration Syntax C) Error: Value Required D) Error:Lvalue Required

148. A user defined data type, which is used to assign names to integral constants is called ____________ [D]

A) Union B) Array C) Structure D) Enum

149. [B]

A) 1 B) 2 C) 0 D) Error

Page No.: 32
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

150. [B]

A) No error B) Error in the statement: a,b,c; C) Error in the statement: enum hello D) Error in the statement:
m; printf(“%d”,m);

151. Pick the incorrect statement with respect to enums. [A]

A) Two enum symbols cannot have the B) Only integer constants are allowed in C) It is not possible to change the value D) Enum variables are automatically
same value enums of enum symbols assigned values if no value is
specified

152. Which of the following are themselves a collection of different data types? [B]

A) string B) structures C) char D) arrays

153. User-defined data type can be derived by___________ [D]

A) struct B) enum C) typedef D) all of the mentioned

154. Which operator connects the structure name to its member name? [C]

A) - B) -> C) . D) Both -> and .

155. Which of the following cannot be a structure member? [B]

A) Another structure B) Function C) Array D) None of the mentioned

Page No.: 33
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

156. [A]

A) Compile time error B) Nothing C) hello D) Varies

157. [B]

A) Nothing B) Compile time error C) hello D) Varies

Page No.: 34
Subject Name & Code : Introduction to Programming ( 23ES104A ) Exam Name : Q2

158. [C]

A) Nothing B) hello C) Compile time error D) Varies

159. [D]

A) Nothing B) Compile time error C) Junk D) 8

160. Which of the following keywords is used to define an alternate name for an already existing data type? [C]

A) default B) volatile C) typedef D) static

Page No.: 35

You might also like