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

Which of these princely states integrated with the Indian union in 1947 without initially refusing to do so ?

 

A) Hyderabad B) Junaghad
C) Jaipur D) Travancore
 
Answer & Explanation Answer: C) Jaipur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3269
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 3269
Q:

What is the highest number of satellites that have been launched by the ISRO in 2017 on a single rocket ?

A) 22 B) 37
C) 83 D) 104
 
Answer & Explanation Answer: D) 104

Explanation:

India’s space agency on Feb 15th, 2017 launched a record 104 satellites from a single rocket as it crossed another milestone in its low-cost space-exploration program. The satellites from seven countries were carried by the Indian Space Research Organization’s Polar Satellite Launch Vehicle on its 38th consecutive successful flight. On board was a 714kg satellite for earth observation and more than 100 smaller satellites weighing less than 10kg each. Three were Indian-owned, 96 were from US companies, and the rest belonged to companies based in Israel, Kazakhstan, the Netherlands, Switzerland and the United Arab Emirates. Most were owned by Planet Labs Inc, a US-based Earth-imaging company. 

Report Error

View Answer Report Error Discuss

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

3 3268
Q:

I go around and in the house but never touches the house. What am I?

Answer

Te Sun.


From the time rising it goes around the house upto sunset, but never touches the house.

Report Error

View answer Workspace Report Error Discuss

7 3268
Q:

What was the first book ever written?

Answer

The first written story that has come down to us is The Epic of Gilgamesh.


It is a mythologized account of a historical figure, Gilgamesh, a ruler of the Sumerian city-state of Uruk, believed to have ruled sometime between 2700-2500 BC.

Report Error

View answer Workspace Report Error Discuss

Subject: Indian History Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

19 3267
Q:

Trip planning helps reduce

A) Stress B) Driving distance
C) Both A & B D) Insurance costs
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Trip planning helps reduce Driving distance and stress. We can preplan the trip how to go, where to go first, from where the spot is near and what the places to be seen there and the total estimation for the trip.

Report Error

View Answer Report Error Discuss

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

2 3267
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 3267