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

In which year was the first solid state integrated circuit demonstrated?

A) 1970s B) 1960s
C) 1950s D) 1980s
 
Answer & Explanation Answer: C) 1950s

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

3 2707
Q:

Which day is observed as World Food Day?

A) September 10 B) August 16
C) November 4 D) October 16
 
Answer & Explanation Answer: D) October 16

Explanation:
Report Error

View Answer Report Error Discuss

3 2707
Q:

The RBI restricts withdrawals from banks under the provisions of which act?

 

 

A) Banking Regulation Act B) RBI Act
C) FEMA D) AML Act
 
Answer & Explanation Answer: A) Banking Regulation Act

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2707
Q:

Physical data models describe the details of how data is stored in the computers

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

They describe the details of how data is stored in the computers

Report Error

View Answer Workspace Report Error Discuss

Subject: Database
Job Role: Database Administration

0 2707
Q:

Which pair consists of negative symptoms of schizophrenia?

Which_pair_consists_of_negative_symptoms_of_schizophrenia1539324076.jpg image

A) blunted affect and delusions B) delusions and hallucinations
C) withdrawal and flat affect D) abolition and hallucinations
 
Answer & Explanation Answer: D) abolition and hallucinations

Explanation:

Abolition and hallucinations is the pair that consists of negative symptoms of schizophrenia.

Report Error

View Answer Report Error Discuss

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

1 2707
Q:

AIDS is caused by the organisms which are

A) bacteria B) fungi
C) viruses (HTLV III) D) ProtoZoa
 
Answer & Explanation Answer: C) viruses (HTLV III)

Explanation:

AIDS: The term means Acquired Immunity Deficiency Synodrome. The virus attacks the T cells of the (white corpuscle type) blood and destroys them.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

4 2706
Q:

Where is the Nandi hills located?

 

 

A) Bihar B) Gujarat  
C) Karnataka D) Rajasthan  
 
Answer & Explanation Answer: C) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 2704