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: Because of his mastery in this field, his suggestions are wide accepted.

A have widely accepted

B are widely accepted

C widely acceptance

D have been wide accepted

E No correction required

Q2:
Point out the error in the program?
#include<stdio.h>

int main()
{
    struct a
    {
        float category:5;
        char scheme:4;
    };
    printf("size=%d", sizeof(struct a));
    return 0;
}

A Error: invalid structure member in printf

B None of above

C Error in this float category:5; statement

D No error

Q3: Point out the error in the program?
struct emp
{
    int ecode;
    struct emp e;
};

A None of above

B Linker Error

C No Error

D Error: in structure declaration

Q4:
Point out the error in the program?
#include<stdio.h>

int main()
{
    struct a
    {
        float category:5;
        char scheme:4;
    };
    printf("size=%d", sizeof(struct a));
    return 0;
}

A None of above

B No error

C Error: invalid structure member in printf

D Error in this float category:5; statement

Q5: Point out the error in the program?
#include<stdio.h>

int main()
{
    struct emp
    {
        char name[20];
        float sal;
    };
    struct emp e[10];
    int i;
    for(i=0; i<=9; i++)
        scanf('%s %f', e[i].name, &e[i].sal);
    return 0;
}

A None of above

B Error: Floating point formats not linked

C No error

D Error: invalid structure member

Q6: Point out the error in the program?
#include<stdio.h>
#include<string.h>
void modify(struct emp*);
struct emp
{
    char name[20];
    int age;
};
int main()
{
    struct emp e = {'Sanjay', 35};
    modify(&e);
    printf('%s %d', e.name, e.age);
    return 0;
}
void modify(struct emp *p)
{
     p ->age=p->age+2;
}

A None of above

B Error: in prototype declaration unknown struct emp

C Error: in structure

D No error

Q7: Point out the error in the program in 16-bit platform?
#include<stdio.h>

int main()
{
    struct bits
    {
        int i:40;
    }bit;

    printf('%d\n', sizeof(bit));
    return 0;
}

A Error: Bit field too large

B 2

C 4

D Error: Invalid member access in structure

Q8: Point out the error in the program?
#include<stdio.h>

int main()
{
    union a
    {
        int i;
        char ch[2];
    };
    union a z1 = {512};
    union a z2 = {0, 2};
    return 0;
}

A
Error: invalid union declaration

B
Error: in Initializing z2

C No error

D None of above

Q9: Point out the error in the program?
#include<stdio.h>

int main()
{
    struct emp
    {
        char n[20];
        int age;
    };
    struct emp e1 = {'Dravid', 23};
    struct emp e2 = e1;
    if(e1 == e2)
        printf('The structure are equal');
    return 0;
}

A None of above

B Prints: The structure are equal

C Error: Structure cannot be compared using '=='

D No output

  

Q10: Which is not an A/D conversion error?

A Differential nonlinearity

B Missing code

C Incorrect code

D Offset