Questions

Q:

What will be output of following c code?

void main()
{
struct bitfield
{
unsigned a:5;
unsigned c:5;
unsigned b:6;

}bit;
char *p;
struct bitfield *ptr,bit1={1,3,3};
p=&bit1;
p++;
clrscr();
printf("%d",*p);
getch();
}

Answer

Output: 12

Explanation:
Binary value of a=1 is 00001 (in 5 bit)
Binary value of b=3 is 00011 (in 5 bit)
Binary value of c=3 is 000011 (in 6 bit)

In memory it is represented as:
Let address of bit1 is 500 which initialize to char pointer p. Since can is one byte data type so p++ will be 501. *p means content of memory location 501 which is (00001100) and its binary equivalent is 12. Hence output is 12.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3537
Q:

If a+b+c = 6 and ab+bc+ca = 1, then the value of bc(b+c) + ca(c+a) +ab(a+b) +3abc is

A) 33 B) 66
C) 55 D) 23
 
Answer & Explanation Answer: B) 66

Explanation:
Report Error

View Answer Report Error Discuss

10 3536
Q:

The word OPERA means what in Italian?

A) Word B) Work
C) Energy D) Force
 
Answer & Explanation Answer: B) Work

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 3536
Q:

Which of the following elements is a metalloid?

A) arsenic B) boron
C) antimony D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

A metalloid is any chemical element which has properties in between those of metals and nonmetals, or that has a mixture of them.

The six commonly recognised metalloids are

boron,

silicon,

germanium,

arsenic,

antimony, and

tellurium.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

3 3535
Q:

When more than 20% of the body weight is due to fat, the person is suffering from

A) Marasmus B) Kwashiorkor
C) Scurvy D) Obesity
 
Answer & Explanation Answer: D) Obesity

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

5 3535
Q:

Cortisol is secreted by

A) Thyroid gland B) Pituitary gland
C) Adrenal gland D) Parathyroid gland
 
Answer & Explanation Answer: C) Adrenal gland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3535
Q:

Borobudur Temple in Magelang is located in which country? 

A) Indonesia B) Iran
C) Bangladesh D) Laos
 
Answer & Explanation Answer: A) Indonesia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 3535
Q:

I am a 5 letter word.

I am normally below you. If you remove my 1st letter, you'll find me above you. If you remove my 1st & 2nd letters, you can't see me.

What am I?

Answer

Firstly, I focussed on "If you remove my 1st & 2nd letters, you can't see me". The first thing that comes to mind which we can’t see is the "AIR".


 


So now, what 4 letter words can be formed ending with "AIR"? Think of all the words from A to Z, considering which one lies above you. That is how we get to "HAIR".


 


Now, which 5 letter word can be formed ending with "HAIR"? Starting with A to Z, we reach "CHAIR" and also, it lies below us.


 


And the required answer is "CHAIR".

Report Error

View answer Workspace Report Error Discuss

4 3535