Questions

Q:

If the following structure is written to a file using fwrite(), can fread() read it back successfully?

struct emp

{

    char *n;

    int age;

};

struct emp e = { "Sujay",15};

FILE *fp;

fwrite (&e, sizeof (e), 1, fp);

Answer

No, since the structure contains a char pointer while writing the structure to the disk using fwrite() only the value stored in the pointer n would get written. When this structure is read back the address would be read back but it is quite unlikely that the desired string would be present at this address in memory

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3238
Q:

Warts are contagious.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Yes. Warts are contagious.


You can get warts from touching a wart on someone else's body or by coming in contact with surfaces that touched someone's warts, such as towels or bathmats.


warts_are_contagious1532510865.jpg image


 


Hence, the given statement that, 'Warts are contagious' is TRUE.

Report Error

View Answer Workspace Report Error Discuss

Subject: General Science
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 3238
Q:

The insects do not have blood pigments because 

A) there is no blood B) tissues have pigments
C) blood does not have a respiratory function D) pigments are elsewhere
 
Answer & Explanation Answer: C) blood does not have a respiratory function

Explanation:

The blood of some invertebrate animals like the earthworm is red due to haemoglobin pigment, but the pigment is dissolved in the plasma. In vertebrates the same pigment is found in the red corpuscles and not in the plasma.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 3238
Q:

Suppose you have a computional circuit between two registers driven by a clock. What will you do if the delay of the combinational circuit is greater than your clock signal?

Answer

Use the concept of register-retiming.


divide the totla combinatorial delay in two segments such that individually the delay is less the clock period.


this can be done by inserting a flip-flop in the combinational path.


e.g.,


clock period --- 5 ns


total cominational delay ---- 7


then divide the 7ns path in two path of 4 or 3 (best resutls are obtained if delays are  same for both path i.e 3.5ns) by inserting a flip-flop in between.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3236
Q:

Why was the 1955 UN General Assembly called "Menon Session" or "Menon Assembly"?

Answer

Because V K Krishna Menon spoke for 13hours continuously while representing india.

Report Error

View answer Workspace Report Error Discuss

3 3235
Q:

Which of the following does not influence haemoglobin saturation?

A) Nitric oxide B) Carbon dioxide
C) Temperature D) DPG
 
Answer & Explanation Answer: A) Nitric oxide

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3234
Q:

Shock resisting steels should have

A) toughness B) low wear resistance
C) low tensile strength D) low hardness
 
Answer & Explanation Answer: A) toughness

Explanation:

Shock resisting steels should have toughness.

S-5 is a silico-manganese shock resisting steel that offers good ductility.

Report Error

View Answer Report Error Discuss

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

0 3234
Q:

The function of nitrogen in air is 

A) to make air a moderate supporter of combustion B) to maintain the density of air constant
C) to prevent the hydrogen in air from exploding D) to reduce the poisonous nature of ozone in air
 
Answer & Explanation Answer: A) to make air a moderate supporter of combustion

Explanation:

If air contained all oxygen and no nitrogen, everything would have burnt off

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3233