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

Molar mass of HNO3?

A) 63 g/mol B) 53 g/mol
C) 48 g/mol D) 52 g/mol
 
Answer & Explanation Answer: A) 63 g/mol

Explanation:

Calculation of molar mass of HNO3:

Atomic masses of H, N, O are 1, 14, 16 respectively

Now the molar mass of HNO3 is

HNO3 = 1X1 + 1X14 + 3X16

= 1 + 14 + 48

= 63 g/mol or amu.

Report Error

View Answer Report Error Discuss

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

1 3323
Q:

'New Horizons' spacecraft was launched by NASA to study which of the following planet ?

A) Earth B) Mercury
C) Pluto D) Venus
 
Answer & Explanation Answer: C) Pluto

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

4 3323
Q:

Reduction of oxygen which forms water occurs during

A) Respiration B) Photosynthesis
C) Both A & B D) Neither photosynthesis nor respiration
 
Answer & Explanation Answer: A) Respiration

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 3322
Q:

In which of the following activities silicon carbide is used

A) Disinfecting water of ponds B) Making casts for statues
C) Making cement and glass D) Cutting very hard substances
 
Answer & Explanation Answer: D) Cutting very hard substances

Explanation:

In_which_of_the_following_activities_silicon_carbide_is_used1553082795.jpg image

Silicon carbide is used in Cutting very hard substances.

Report Error

View Answer Report Error Discuss

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

3 3322
Q:

Man has _____ pairs of salivary glands

A) 3 B) 4
C) 6 D) 8
 
Answer & Explanation Answer: A) 3

Explanation:

Salivary glands of man are 3 pairs = 6. They are one pair of parotid glands, one pair of sub-maxillary or sub-mandibular glands and one pair of sub-lingual glands.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 3322
Q:

The soaps used in shaving cream are 

A) Calcium soaps B) lead soaps
C) soft soaps D) hard soaps
 
Answer & Explanation Answer: C) soft soaps

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3322
Q:

As per the Census of 2001, the least urbanised State of India is

A) Arunachal Pradesh B) Assam
C) Himachal Pradesh D) Uttar Pradesh
 
Answer & Explanation Answer: C) Himachal Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3321