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

B are widely accepted

C have widely accepted

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

B No error

C None of above

D Error: invalid structure member in printf

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

A Error: in structure declaration

B Linker Error

C No Error

D None of above

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

C Error in this float category:5; statement

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: 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 prototype declaration unknown struct emp

D Error: in structure

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 Error: Invalid member access in structure

C 4

D 2

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: in Initializing z2

B No error

C
Error: invalid union declaration

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 Error: Structure cannot be compared using '=='

B No output

C None of above

D Prints: The structure are equal

  

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

A Offset

B Missing code

C Incorrect code

D Differential nonlinearity