The data structure with most of the entries as 0 (zero) is a(n)

A. actual B. 4 C. character
D. false E. self-referential structure F. formal
G. stream oriented H. heterogeneous I. declaration
J. 1 K. 5 L. text
M. unknown N. non linear O. union
P. pointer Q. 0 R. linear
S. sparse array T. true U. unformatted
V. definition W. Integer X. linked list
4.1 The data structure with most of the entries as 0 (zero) is a(n) ________.
4.2 A null terminated array of ________ is a string.
4.3 A constant can be valid ________ argument to a function.
4.4 The statement struct point { int x, y;}; is a structure ________.
4.5 Linked list is a ________ data structure.
4.6 The expression pv + 3 is valid but not pv *3 if pv is a(n) ________ variable.
4.7 A(n) ________ file can be created with specially written program only.
4.8 The size of an array defined as char color[] = “BLUE”; is ________.
4.9 In expression ((j + k > 10) || (n > -3)), (n > -3) will be evaluated if (j + k > 10) is ________.
4.10 The loop do { … } while (0); will be executed ________ times.

An escape sequence begins with a backward slash followed by an alphabetical character

Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the “tear-off” sheet attached to the question paper, following instructions therein

2.1 An escape sequence begins with a backward slash followed by an alphabetical character.
2.2 The for loop can be used only for the cases when the number of passes is known in
advance.
2.3 Let an array arr be a member of a structure s. If s is passed to a function, test as test(s), then the changes in arr, if any, by test will not be reflected in the calling function.
2.4 In a recursive function with local variables, a different set of local variables with the same name are created during each call.
2.5 Two enumeration constants defined in an enumeration definition can have same integral
value.
2.6 The sizeof operator can only be used with variables that are allocated space using malloc() function.
2.7 If u is a union variable, then using isalpha(u) it is possible to know whether u is storing an alphabet or not.
2.8 If a file is created with fwrite() function, then it is valid to read it using fscanf() function.
2.9 NULL is a keyword in C.
2.10 A function name can be passed as an argument to another function.

Consider the following code segment

1.10 Consider the following code segment:
for (odd_sum = 0, j = 1; *** ; j += 2)
odd_sum += j;
In order to sum all the odd numbers between 1 to 100; which of the following statements
cannot replace ***?
A) j <= 99
B) j < 99
C) j <= 100
D) j < 100

What will be the output of the following

1.9 What will be the output of the following?
main() {
int a = ‘A’;
printf(“%d”, a);
A) 65
B) A
C) a
D) the program will not compile as an integer variable is assigned a character constant.

Which of the following statement is false for the statement

1.8 Which of the following statement is false for the statement?
main(int ac, char *av[])
A) av is an array of pointers to strings.
B) av[0] represents the name of the program under execution.
C) the formal arguments names have to be argc and argv only.
D) the main function can return an integer to the calling function/program.

For the code segment

1.7 For the code segment
struct DOB { int date, month, year;};
struct person { char name[30];
struct DOB birthdate; } p, *ptr = &p;
Which of the following is not a valid expression to access year of birth date?
A) ptr -> birthdate.year
B) (*ptr). birthdate.year
C) ptr.birthdate.year
D) p.birthdate.year

Given the code segment

1.4 Given the code segment:
char a[] = “abc”, *p;
Which of the following assigns the starting address of the string “abc” to p?
A) p = a;
B) p = &a;
C) p = *a;
D) *p = a;

What will be the output of the following code segment, if the function is called as larger(10, 20)

1.3 What will be the output of the following code segment, if the function is called as
larger(10, 20) ?
int larger(int x, int y) {
int max = x;
if (max < y) {
max = y;
return y;
}
else
return x;
printf(“Larger of %d and %d is %d”, x, y, max);
}
A) Program will not compile as the function has two return statements.
B) Program will not compile as no statement is allowed after return statement.
C) Larger of 10 and 20 is 20.
D) No output.