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

During which process is water produced?

A) Acetyl COA formation B) Electron transport chain
C) Alcohol fermentation D) citric acid cycle
 
Answer & Explanation Answer: B) Electron transport chain

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3247
Q:

Why is February 28th celebrated as National Science Day ?

Answer

It was on February 28th, 1928 that CV Raman announced  his discovery of New radiation-subsequently named the Raman Effect- that won him the Noble prize.

Report Error

View answer Workspace Report Error Discuss

2 3247
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 3247
Q:

Which one of the following foreign agencies will assist the municipal agencies to improve quality of municipal schools through its School Excellence Programmes(SEP) ?

A) IMF B) UNDP
C) ADB D) UNICEF
 
Answer & Explanation Answer: C) ADB

Explanation:

Asian Development Bank (ADB) announced that it will assist the municipal agencies to improve quality of municipal schools through its School Excellence Programme (SEP).

Report Error

View Answer Report Error Discuss

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

2 3246
Q:

Which key is used for the last action?

A) Ctrl + D B) Alt + Z
C) Ctrl + Z D) Alt + D
 
Answer & Explanation Answer: C) Ctrl + Z

Explanation:

For undo the action or last action [Ctrl + Z] is used.

Report Error

View Answer Report Error Discuss

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

Find the compound amount if $1200 is deposited at 8% interest for 11 years if interest is compounded continuously

A) 1456 B) 1456
C) 1693.08 D) 1890
 
Answer & Explanation Answer: C) 1693.08

Explanation:

M=Pe^yr

 

2893.08

 

I=M-P

Report Error

View Answer Report Error Discuss

0 3246