Questions

Q:

What value does read() return when it has reached the end of a file?

A) 1 B) -1
C) 0 D) None
 
Answer & Explanation Answer: B) -1

Explanation:

It returns -1

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 3143
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 3142
Q:

Who has won the men's shot put world title with a stunning series of throws climaxing with a best of 22.03 meters ?

A) Randy Matson B) Tomas Walsh
C) Ryan Crouser D) Randy Barnes
 
Answer & Explanation Answer: B) Tomas Walsh

Explanation:
Report Error

View Answer Report Error Discuss

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

9 3142
Q:

'The Scented Isle' in the Mediterranean Sea is 

A) Sardinia B) Corsica
C) Sicily D) Crete
 
Answer & Explanation Answer: B) Corsica

Explanation:

There are plenty of sweet-smelling herbs found on this island along with low trees and shrubs. This dense vegetation is termed as 'Maquis'. Similar vegetaion in California is known as 'Chaparral'.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3142
Q:

The AIADMK IT Wing has launched the first-of-its-kind women safety application in Tamil Nadu. The app is called ___________.

A) Jayanit Rama B) Lalitan Linga
C) Ammanita Vihu D) Ammavin Aran
 
Answer & Explanation Answer: D) Ammavin Aran

Explanation:

The AIADMK IT Wing has launched the first-of-its-kind women safety application in Tamil Nadu. The app is called 'Ammavin Aran' meaning 'mother's fortress'.

Report Error

View Answer Report Error Discuss

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

3 3142
Q:

Which of the following is a secondary air pollutant?

A) Acid rain B) SO2
C) CO2 D) Dust particles
 
Answer & Explanation Answer: A) Acid rain

Explanation:

Secondary pollutants include ozone, which is formed when hydrocarbons (HC) and nitrogen oxides (NOx) combine in the presence of sunlight.

 

Whereas Primary pollutant are those pollutants that are directly emitted from their sources, like CO2, CO, SO2 as these gases are directly emitted form burning of fossil fuels.

 

Acid rain, which is formed when sulfur dioxide or nitrogen oxides react with water, sulfuric acid etc.

 

Hence, Acidrain is a secondary air pollutant.

 

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 , IT Trainer

5 3140
Q:

The motif of Hampi with Chariot is printed on the reverse of which currency note?

A) Rs. 100 Note B) Rs. 1000 Note
C) Rs. 50 Note D) Rs. 500 Note
 
Answer & Explanation Answer: C) Rs. 50 Note

Explanation:

The_motif_of_Hampi_with_Chariot_is_printed_on_the_reverse_of_which_currency_note1559552269.jpg image

 

The motif of Hampi with Chariot is printed on the reverse of New Rs. 50 currency note in India.

Report Error

View Answer Report Error Discuss

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

4 3140
Q:

Where is a hub specified in the OSI model?

A) Physical Layer B) Data Link Layer
C) Application Layer D) Session Layer
 
Answer & Explanation Answer: A) Physical Layer

Explanation:

Hubs regenerate electrical signals, which are specified at the Physical layer.

Report Error

View Answer Report Error Discuss

Filed Under: Networking
Exam Prep: CAT
Job Role: Analyst , Network Engineer

1 3140