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

During a Financial Emergency, all Money Bills passed by State Legislatures require the consent of the 

A) Prime Minister B) President
C) Lok Sabha D) Union Finance Minister
 
Answer & Explanation Answer: B) President

Explanation:

No Financial Emergency has been imposed on the country so far. Article 360 deals with Financial Emergency. (This article, however,shall not apply to the state of Jammu and Kashmir)

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

3 3589
Q:

Which of the following animals have teeth in their stomach?

A) Frogs B) Crabs
C) Snakes D) Cockroach
 
Answer & Explanation Answer: B) Crabs

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

21 3588
Q:

Pitot tube is used to measure

A) static pressure B) velocity at stagnation point
C) stagnation pressure D) dynamic pressure
 
Answer & Explanation Answer: C) stagnation pressure

Explanation:

pitot_tube_is_used_to_measure1547641298.jpg image

Pitot tube is used to measure stagnation pressure.

Report Error

View Answer Report Error Discuss

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

4 3588
Q:

Genes contain instructions for assembling what?

A) Amino acids B) Proteins
C) Nucleotides D) All of the above
 
Answer & Explanation Answer: B) Proteins

Explanation:

Genes which are segment of DNA of a cell contains instructions for assembling proteins.

Report Error

View Answer Report Error Discuss

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

5 3588
Q:

Which is the only gem of world made of a single element?

A) Platinum B) Diamond
C) Emerald D) Ruby
 
Answer & Explanation Answer: B) Diamond

Explanation:

The only gem of world made of a single element is Diamond.

the_only_gem_of_world_made_of_a_single_element1563602197.jpg image

Report Error

View Answer Report Error Discuss

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

6 3587
Q:

What is BRICS ? How is BRICS formed ?

Answer

BRICS is basically an association of 5 major emerging national economies: Brazil, Russia,China, India and South Africa.


BRIC was coined in Foreign Ministerial meeting of Brazil,Russia,China and India in Newyork in Sept 2006. BRIC officialy came in existance in 2009 at Yekaterinburg,Russia.


At start group was named as BRIC, but after being formally invited by the BRIC countries to join the group, South Africa officially became a member nation on 24 December 2010, and the group was renamed BRICS.

Report Error

View answer Workspace Report Error Discuss

3 3587
Q:

Who is author of the book 'Preparing for the Twenty First Century '

A) V.S.Naipaul B) John Ruskin
C) Paul Kennedy D) Henry Kissinger
 
Answer & Explanation Answer: C) Paul Kennedy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 3586