A, B and C are three 3×3 matrices containing real elements.

A, B and C are three 3×3 matrices containing real elements.

a) Write a ‘C’ function to input from user appropriate values into matrices A and B. Use
suitable loops. Make use of pointers if necessary.
b) Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary
c) Write a ‘C’ program to call the above two functions and print Matrix C suitably. Write suitable prototype etc. Use suitable loops. Make use of pointers if necessary

Logical AND operator is denoted by ________.

A. \b B. alloc.h C. 1 byte
D. stdio.h E. CPU Registers F. &&
G. fclose() H. 65 I. An Error
J. Array of characters K. \a L. &
M. ==

4.1 Logical AND operator is denoted by ________.
4.2 Size of char data type is ________.
4.3 The variables of storage class register are stored in ________.
4.4 If you try to multiply or add two pointers, it will result in ________.
4.5 In ‘C’, strings are stored in the form of ________.
4.6 Escape sequence for backspace is ________.
4.7 Function used to close a file is _________.
4.8 The header file which must be included, if you want to use malloc() or calloc() is
________.
4.9 The macro FILE is defined in header file ________.
4.10 The ASCII value, in decimal, of character ‘A’ is ________.

Size of all elements in a union should be same.

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 A structure can contain pointer to itself.
2.2 Size of all elements in a union should be same.
2.3 Size of a pointer is equal to the data type it points to.
2.4 In ‘C’, the compiler does not check if the subscript used for an array exceeds size of the array.
2.5 A ‘for’ loop in ‘C’ has three statements, namely, assignment, test and increment statements.
2.6 cout and cin can be used for output and input respectively in ‘C’ language.
2.7 The default initial value of a static int variable is zero.
2.8 Binary search can be easily performed on a linked list.
2.9 A function name can be passed as an argument to another function.
2.10 A ‘C’ function can contain many return statements.

In the following ‘C’ code

1.9 In the following ‘C’ code
{
FILE *f = fopen( fileName, "r");
fread(f);
if(????)
puts(“End of file reached”);
}
Which one of the following can replace the ???? in the code above to determine if the end of
a file has been reached?
A) f == EOF
B) feof( f )
C) eof( f )
D) f == NULL

Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:

1.7 Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is
true about function ‘fun’:
A) It takes two inputs, one integer type and the other float type but returns nothing
B) It takes two inputs, one integer type and the other float type but returns 0
C) It takes two inputs, one integer type and the other float type but returns an integer
D) It takes two inputs, one integer type and the other integer type but returns float