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 would be giving

B had given

C has been given

D No correction required

E will have given

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

    printf('%d', v);

    return 0;
}

A None of these.

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

C Program terminates abnormally.

D No error.

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 No

B Yes

Q4: A pointer union CANNOT be created

A No

B Yes

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

A No

B Yes

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

A No

B Yes

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 No

B Yes

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

A Yes

B No

Q10: Can a structure can point to itself?

A Yes

B No