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

Who is the author of the book "The Alchemist"?

A) Agatha Christie B) Paulo Ceolho
C) Frankenstien D) None
 
Answer & Explanation Answer: B) Paulo Ceolho

Explanation:

Paulo Ceolho is the author of The Alchemist

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3503
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 3503
Q:

The average salinity of seawater is

A) 35% B) 3.5%
C) 3% D) 2.5%
 
Answer & Explanation Answer: B) 3.5%

Explanation:

Seawater or salt water is water from a sea or ocean.

On average, seawater in the world's oceans has a salinity of approximately 3.5% or 35 parts per thousand. This means that for every 1 litre (1000 mL) of seawater there are 35 grams of salts dissolved in it.

 

Hence, The average salinity of seawater is 3.5%.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

5 3503
Q:

Who has been appointed as the first woman Secretary General of the Lok Sabha?

A) Rama Devi B) Sumitra Mahajan
C) Anupama Kare D) Snehlata Shrivastava
 
Answer & Explanation Answer: D) Snehlata Shrivastava

Explanation:

Snehlata Shrivastava, appointed as the first woman Secretary General of the Lok Sabha. The appointment was made by Lok Sabha Speaker Sumitra Mahajan. Ms. Shrivastava will replace Anoop Mishra, who retired on November 30, 2017. 

Ms. Shrivastava, a senior civil servant with 35 years of rich and varied administrative experience is a 1982 batch IAS officer from the Madhya Pradesh cadre.

Rama Devi holds the distinction of the being the first woman secretary general of the Rajya Sabha.

Report Error

View Answer Report Error Discuss

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

12 3501
Q:

Nissil granules occur in

A) Eosinophil B) Glial cell
C) Neuron D) Lymphocyte
 
Answer & Explanation Answer: C) Neuron

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3501
Q:

In electro - magnetic radiation, which of the following has greater wave - length than visible light

A) Ultra -violet rays B) Infra - red rays
C) Cosmic rays D) x-rays
 
Answer & Explanation Answer: B) Infra - red rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 3501
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 3501