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 3132
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 3131
Q:

I can grow quickly and I can die slowly, I can be a terrible pain or a comfort and joy. You never find me all by myself. What am I?

Answer

A relationship.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: Bank Exams
Job Role: Bank Clerk

7 3131
Q:

Which day is celebrated as United Nations day every year

A) 7th April B) 25th August
C) 24th October D) 27th December
 
Answer & Explanation Answer: A) 7th April

Explanation:
Report Error

View Answer Report Error Discuss

0 3131
Q:

Project Procurement Management - Processes

Describe the Inputs, Tools and Techniques , Outputs included in the Contract Administration?

Answer

I. Inputs



  • Contract

  • Contract management plan

  • Selected sellers

  • Performance reports

  • Approved change requests

  • Work performance information


II. Tools and Techniques



  • Contract change control system

  • Buyer-conducted performance review

  • Inspections and audits

  • Performance reporting

  • Payment system

  • Claims administration

  • Records management system

  • Information technology


III. Outputs



  • Contract documentation 

  • Requested changes

  • Recommended corrective actions

  • Organizational process assets (updates)

  • Project management plan (updates)


                 - Procurement management plan


                 - Contract management plan

Report Error

View answer Workspace Report Error Discuss

0 3131
Q:

What is name of capital of MARSHALL ISLANDS ?

A) Tunis B) Accra
C) Tripoli D) Majuro
 
Answer & Explanation Answer: B) Accra

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3131
Q:

What is unit of Viscosity ?

A) coulomb B) newton second per square meter
C) watt per meter per degree celcius D) joule per kilogram per Kelvin
 
Answer & Explanation Answer: B) newton second per square meter

Explanation:

coulomb is unit of Electric Charge,

watt per meter per degree celcius is unit of Thermal Conductivity,

joule per kilogram per Kelvin is unit of Specific Heat capacity.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 3131
Q:

India's largest digital bank _____________ is the only bank providing zero balance accounts and zero charges on digital transactions.

A) Paytm Payments Bank B) India Post Payments Bank
C) Airtel Payments Bank D) All the above
 
Answer & Explanation Answer: A) Paytm Payments Bank

Explanation:

Paytm Payments Bank is the India's largest digital bank providing zero balance accounts and zero charges on digital transactions.

Report Error

View Answer Report Error Discuss

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

8 3130