Technical preparation

CSE MCQ

41. Choose the correct statements

42. Choose the statement that best defines an array

43. If n has the value 3, then the statement a [++n] = n++ ;

44. C does no automatic array bound checking. This is

45. The following program main() { static char a[3][4] = {"abcd", "mnop", "fghi"}; putchar(**a); }

46. If a two dimensional array is used as a formal parameter, then

47. Under which of the following conditions, the size of an one-dimensional array need not be specified?

48. The maximum number of dimension an array can have in C is

49. Consider the statement int val[2] [4] = { 1, 2, 3, 4, 5, 6, 7, 8} ; 4 will be the value of

50. The parameter passing mechanism for an array is

51. The following program main( ) { static int a[ ] = { 7, 8, 9 } ; printf( "%d", 2[ a ] + a[ 2 ] ) ; }

52. While passing an array as an actual argument, the function call must have the array name

53. Consider the following type definition. typedef char x[10]; x myArray[5]; What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

54. Consider the array definition int num [10] = {3, 3, 3}; Pick the Correct answers

55. If storage class is missing in the array definition, by default it will be taken to be

56. In which of the following cases, linked list implementation of sparse matrices consumes the same memory space as the conventional way of storing the entire array?

57. The information about an array used in a program will be sorted in

58. Minimun number of comparison required to compute the largest and second largest element in array is

59. Which of the following is an illegal array definition?

60. Minimum number of interchange needed to convert the array 89,19,40,14,17,12,10,2,5,7,11,6,9,70, into a heap with the maximum element at the root is