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 are widely accepted

B have widely accepted

C widely acceptance

D No correction required

E have been wide accepted

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

D Error in this float category:5; statement

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

A Linker Error

B No Error

C None of above

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 Error in this float category:5; statement

B Error: invalid structure member in printf

C None of above

D No error

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: Floating point formats not linked

B No error

C Error: invalid structure member

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
Error: invalid union declaration

B No error

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 None of above

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

C Prints: The structure are equal

D No output

  

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

A Missing code

B Offset

C Incorrect code

D Differential nonlinearity