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

Pearl Harbour is located in

Answer

Hawai

Report Error

View answer Workspace Report Error Discuss

Subject: World History

4 3193
Q:

Victoria Falls is located between which two countries?

A) Zambia & Zimbabwe B) Senegal-Botswana
C) Ethiopia-Kenya D) Tanzania-Kenya
 
Answer & Explanation Answer: A) Zambia & Zimbabwe

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

3 3192
Q:

Tirupati temple of Lord Venkateswara is situated in which state

Answer

Andhra Pradesh

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

39 3192
Q:

The shuddi movement to bring back to the Hindufold people converted to other religions from Hinduism was launched by

Answer

Arya Samajam

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

44 3191
Q:

Which of the following is not a function of saliva?

A) contains fluoride to harden the tooth enamel B) moistens food and helps stick it together to make it easier to swallow
C) begins the chemical breakdown of starches D) helps clean the mouth
 
Answer & Explanation Answer: A) contains fluoride to harden the tooth enamel

Explanation:

Saliva is produced by the salivary gland which helps in food digestion.

 

Option A) contains fluoride to harden the tooth enamel is not the function of saliva.

Report Error

View Answer Report Error Discuss

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

4 3191
Q:

What is an error in a program called

A) Power fail B) Crash
C) Virus D) Bug
 
Answer & Explanation Answer: D) Bug

Explanation:

In computer technology, a coding error in a computer program is called a bug.

Report Error

View Answer Report Error Discuss

2 3191
Q:

National Institute of Aeronautical Engineering is located at

A) Lucknow B) Dehradun
C) Kanpur D) Bangalore
 
Answer & Explanation Answer: B) Dehradun

Explanation:

National_Institute_of_Aeronautical_Engineering_is_located_at1552113412.jpg image

National Institute of Aeronautical Engineering is located at Dehradun, Uttaranchal, India.

Report Error

View Answer Report Error Discuss

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

2 3190