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

The term 'Progeria' refers to which of the following ?

A) A natural satellite of planet jupiter B) A widely used Tuberculosis(TB) drug
C) A genetic disorder with symptoms of pre-mature aging D) None
 
Answer & Explanation Answer: C) A genetic disorder with symptoms of pre-mature aging

Explanation:

Progeria is a rare genetic disordr which involves symptoms resembloing aspects of aging, manifested at a very early age.
The term is often used in reference to Hutchinson - gilford progeria syndrome(HGPS).

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3484
Q:

Which agency publishes the food code?

A) FDA B) FOI
C) FDO D) All of the above
 
Answer & Explanation Answer: A) FDA

Explanation:

FDA - Food and Drug Administration publishes the food code, a model that assists food control jurisdictions at all levels of government by providing them with a scientifically sound technical and legal basis for regulating the retail and food service segment of the industry which includes restaurents, grocerry stores, ...

Report Error

View Answer Report Error Discuss

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

0 3484
Q:

Government regulation is intended to

A) discourage producers from taking harmful actions. B) encourage producers to follow the Constitution.
C) discourage producers from making a profit. D) encourage producers to take negative actions.
 
Answer & Explanation Answer: A) discourage producers from taking harmful actions.

Explanation:

Government regulation protects constitutional rights, safety, and fairness.

 

Hence, Government regulation is intended to discourage producers from taking harmful actions.

Report Error

View Answer Report Error Discuss

3 3484
Q:

The Number of officially recognised languages in india is

A) 12 B) 15
C) 18 D) 21
 
Answer & Explanation Answer: C) 18

Explanation:

India has 18 officially recognised languages - Konkani, Manipur and Nepali were added to the official list of 15 in 1992. The other 15 languages are Assamese, Bengali, Gujarati, Hindi, Kannada, Kashmiri, Malayalam, Marathi, Oriya, Punjabi, Sanskrit , Tamil, Telugu , Urdu and sindhi.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 3483
Q:

Who gave the slogan 'Back to the Vedas (Vedo ki aur lauto)'?

A) Guru Nanank Dev Ji B) Dayanand Saraswati
C) Swami Vivekananda D) Raja Ram Mohan Roy
 
Answer & Explanation Answer: B) Dayanand Saraswati

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 3483
Q:

Iodex, a pain relief balm, has the smell of __________ .

A) Methyl salicylate B) Ethyl salicylate
C) Propyl salicylate D) Butyl salicylate
 
Answer & Explanation Answer: A) Methyl salicylate

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3482
Q:

Which of the following is not soluble in water?

A) copper(II) hydroxide B) sodium chloride
C) silver nitrate D) potassium sulfate
 
Answer & Explanation Answer: A) copper(II) hydroxide

Explanation:

Sodium chloride:

The solubility rules tell you that all halides are soluble with the exception of those formed with siver, mercury, and lead ions. Since this is not the case here, sodium chloride will be soluble.

 

Silver nitrate:

It is soluble because all nitrates are soluble, without exception.

 

Potassium sulfate:

It is soluble because all sulfates are soluble with the exception of those formed with silver, calcium, barium, mercury, lead, and strontium ions.

 

Copper (II) hydroxyde:

It is insoluble because all hydroxides are insoluble with the exception of those formed with alkali metal ions and barium.

Report Error

View Answer Report Error Discuss

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

2 3481