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 No correction required

D have been wide accepted

E widely acceptance

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 No error

B Error: invalid structure member in printf

C None of above

D Error in this float category:5; statement

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

A No Error

B None of above

C Error: in structure declaration

D Linker Error

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 No error

B None of above

C Error in this float category:5; statement

D Error: invalid structure member in printf

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 Error: invalid structure member

B No error

C Error: Floating point formats not linked

D None of above

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 No error

B None of above

C Error: in structure

D Error: in prototype declaration unknown struct emp

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 4

C 2

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 No error

B
Error: invalid union declaration

C
Error: in Initializing z2

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 No output

B Prints: The structure are equal

C None of above

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

  

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

A Incorrect code

B Differential nonlinearity

C Offset

D Missing code