Functions may have several declarations, but only one definition.

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 Functions may have several declarations, but only one definition.
2.2 Sizes of short integer and long integer would vary from one platform to another.
2.3 Switch statements can also be used to switch on strings.
2.4 The expression on the right hand side of && and || operators does not get evaluated if the left hand side determines the outcome.
2.5 Two different operators would always have different associativity.
2.6 Functions can return a floating point number.
2.7 A preprocessor directive is a message from compiler to the linker.
2.8 NULL pointer is not same as an uninitialized pointer.
2.9 Structures cannot contain a pointer to itself.
2.10 In a function two return statements should never occur.

The && and | | operators

1.10 The && and | | operators
A) compare two numeric values
B) combine two numeric values
C) compare two boolean values
D) None of the above

If a file is opened in ‘write’ mode, then

1.8 If a file is opened in ‘write’ mode, then
A) If it does not exist, an error is returned
B) If it does not exist, it is created
C) If it exists, then data is written at the end
D) If it exists, error is returned

What will be the output of the following program?

1.7 What will be the output of the following program?
void main( )
{
struct emp
{
char name[20];
int age;
float sal;
};
struct emp e ={“Tiger”};
printf(“\n%d %f”,e.age,e.sal);
A) 0 0.000000
B) Garbage values
C) Error
D) None of the above

For the program given below, which of the following statement is correct?

1.3 For the program given below, which of the following statement is correct?
void main ( )
{
int i;
for(;scanf(“%d”.&i);printf(“%d”,i))
;
}
A) The for loop would not get executed at all.
B) The for loop would get executed only once.
C) The for loop would get executed 5 times.
D) The for loop would get executed infinite times.