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

Which of the following governs and regulates telecommunication in India?

A) TRAI B) BHEL
C) HAL D) NMDC
 
Answer & Explanation Answer: A) TRAI

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3274
Q:

Who has become the first person to cross the Atlantic Ocean on standup paddle ?

A) Jack Alberta B) Henary Christpher
C) Christopher Bernard D) Chris Bertish
 
Answer & Explanation Answer: D) Chris Bertish

Explanation:

South African Chris Bertish has become the first person to cross the Atlantic Ocean on standup paddle. He made the epic 4,050-mile voyage alone at sea aboard his custom-built craft.

Report Error

View Answer Report Error Discuss

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

3 3274
Q:

In which layer is the temperature the lowest?

A) Troposphere B) Ionosphere
C) Mesosphere D) Stratosphere
 
Answer & Explanation Answer: C) Mesosphere

Explanation:

The mesosphere lies above the stratosphere and extends to an altitude of about 85 km. This is layer is often referred to as the cold layer, as the lowest readings in the atmosphere are found here.

 

Temperature decreases with height, reaching a minimum average value of -90 ºC at the top of the layer.

Report Error

View Answer Report Error Discuss

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

5 3273
Q:

The article of the Constitution of India which deal with Directive Principles of state Policy are

A) 26 to 41 B) 30 to 45
C) 36 to 51 D) 40 to 55
 
Answer & Explanation Answer: C) 36 to 51

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

2 3273
Q:

The largest herbarium of India is located at

A) Kolkata B) Lucknow
C) Mumbai D) Coimbatore
 
Answer & Explanation Answer: A) Kolkata

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

1 3273
Q:

The atoms of the elements which have same number of neutrons are called

A) Isobars B) Isotopes
C) Isotones D) None
 
Answer & Explanation Answer: C) Isotones

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

4 3272
Q:

Which state announced the shift of financial year from March - April to Jan - December  ?

A) Assam B) Goa
C) Kerala D) Madhya Pradesh
 
Answer & Explanation Answer: D) Madhya Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3272