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 3422
Q:

Man has...............pairs of salivary glands

A) 4 B) 6
C) 3 D) 8
 
Answer & Explanation Answer: C) 3

Explanation:

Salivary glands of man are 3 pairs = 6. They are one pair of parotid glands, one pair of submaxillary or submandibular glands and one pair of sublingual glands.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

9 3421
Q:

What is a process whereby an Ecosystem can renew itself? 

A) Succession B) Reconstruction
C) Cleansing D) Purification
 
Answer & Explanation Answer: A) Succession

Explanation:

The process which wherein an Ecosystem may renew itself is known as Ecological Succession.

The time scale may be decades or a million of years after a mass extinction. 

It may be achieve over a period of time.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

3 3419
Q:

Vehicle skids are most likely to be caused by

A) Air pressure in tires too high B) Driving too fast on slipping road
C) Too much ice or snow on the road D) Air pressure in tires too low
 
Answer & Explanation Answer: B) Driving too fast on slipping road

Explanation:

Vehicle_skids_are_most_likely_to_be_caused_by1543401076.jpg image

Vehicle skids are most likely to be caused by Driving too fast on slipping road.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank PO

0 3419
Q:

Point out which from the following is NOT a right enumerated in the Constitution of India but has been articulated by the Supreme Court to be a Fundamental Right

A) Right to privacy B) Certiorari
C) Abolition of untouchability D) Right to form association or Union
 
Answer & Explanation Answer: A) Right to privacy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

7 3417
Q:

Count function in SQL returns the number of

A) groups B) values or rows
C) columns D) distinct values
 
Answer & Explanation Answer: B) values or rows

Explanation:

Count function in SQL returns the number of values or rows.

Report Error

View Answer Report Error Discuss

3 3417
Q:

Which day is celebrated as United nations Day every year

A) 7th April B) 24th October
C) 14th November D) 27th December
 
Answer & Explanation Answer: B) 24th October

Explanation:
Report Error

View Answer Report Error Discuss

4 3417
Q:

If people sleep in closed rooms where charcoal fire is burning , they die due to 

A) carbon monoxide B) carbon dioxide
C) methane D) phosgene
 
Answer & Explanation Answer: A) carbon monoxide

Explanation:

A closed room is aplace where charcoal is burnt in limited supply of air. There is every chance for the formation of the deadly poisonous carbon monoxide, which when inhaled, reacts with the iron in haemoglobin of blood and prevents the supply of oxygen. It is said to be treacherous as there can be no previous warning of its presence because it is an odourless and colourless gas.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3416