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

Which organization created a shared economy?

A) North American Free Trade Agreements B) Association of Southeast Asian Nations
C) World Trade Organization D) European Union
 
Answer & Explanation Answer: D) European Union

Explanation:

The organization that created the shared economy is European Union.

Report Error

View Answer Report Error Discuss

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

3 2733
Q:

How many districts that telangana have?

A) 9 B) 10
C) 11 D) 12
 
Answer & Explanation Answer: B) 10

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

3 2733
Q:

What is the strength of the signal transmitted by powerful cell phones?

Answer

the powerful cell phones can transmit a signal of 3 watts.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2732
Q:

Select the synonym of

 

initiative

 

A) apathy B) cowardice
C) dynamism D) lethargy
 
Answer & Explanation Answer: C) dynamism

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2732
Q:

Which of the following harmone is called the emergency harmone ?

A) Insulin B) Adrenaline
C) Estrogen D) Oxytocin
 
Answer & Explanation Answer: B) Adrenaline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

5 2731
Q:

A Caste system is defined as

Answer

A_Caste_system_is_defined_as1553059578.jpg image


The caste system in India divides Hindus into four main categories - Brahmins, Kshatriyas, Vaishyas and the Shudras. The main castes were further divided into about 3,000 castes and 25,000 sub-castes, each based on their specific occupation.

Report Error

View answer Workspace Report Error Discuss

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

3 2731
Q:

What is the currency of Mexico ?

A) Krones B) Lira
C) Peso D) Mexican dollars
 
Answer & Explanation Answer: C) Peso

Explanation:
Report Error

View Answer Report Error Discuss

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

9 2731