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 has been given

B would be giving

C No correction required

D had given

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 Program terminates abnormally.

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

C No error.

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 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 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 Yes

B No

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 No

B Yes