image not found

Oops! That page can't be found.


Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q1: We met him immediately after the session in which he had been given a nice speech.

A had given

B will have given

C has been given

D would be giving

E No correction required

Q2:
Point out the error in the following program.
#include<stdio.h>
int main()
{
    void v = 0;

    printf('%d', v);

    return 0;
}

A Error: Declaration syntax error 'v' (or) Size of v is unknown or zero.

B No error.

C Program terminates abnormally.

D None of these.

Q3: Will the following code work?
#include<stdio.h>
#include<malloc.h>

struct emp
{
    int len;
    char name[1];
};
int main()
{
    char newname[] = 'Rahul';
    struct emp *p = (struct emp *) malloc(sizeof(struct emp) -1 +
                    strlen(newname)+1);

    p->len = strlen(newname);
    strcpy(p -> name, newname);
    printf('%d %s\n', p->len, p->name);
    return 0;
}

A Yes

B No

Q4: A pointer union CANNOT be created

A No

B Yes

Q5: Is there easy way to print enumeration values symbolically?

A Yes

B No

Q6: By default structure variable will be of auto storage class

A Yes

B No

Q7: Is it necessary that the size of all elements in a union should be same?

A No

B Yes

Q8: Can we have an array of bit fields?

A Yes

B No

Q9: Will the following declaration work?
typedef struct s
{
    int a;
    float b;
}s;

A No

B Yes

Q10: Can a structure can point to itself?

A No

B Yes