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

Which of the following is not an enzyme?

A) Oxytocin B) Trypsin
C) Pepsin D) Ptyalin
 
Answer & Explanation Answer: A) Oxytocin

Explanation:

Oxytocin is a mamallian hormone and also acts as neuro transmitter in the brain.

Report Error

View Answer Report Error Discuss

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

7 2896
Q:

The meristem which occurs between mature tissues is known as _________meristem.

A) Intercalary B) Primary
C) Lateral D) Apical
 
Answer & Explanation Answer: A) Intercalary

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 2895
Q:

Who was called the ' Flying Sikh '

A) Ajmer Singh B) Makhan Singh
C) Shamsher Singh D) Milkhan Singh
 
Answer & Explanation Answer: D) Milkhan Singh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 2895
Q:

Which of the following awards is Sachin Tendulkar NOT awarded with?

 

A) Bharat Ratna B) Dhyan Chand Award
C) Padma Vibhushan D) Rajiv Gandhi Khel Ratna
 
Answer & Explanation Answer: B) Dhyan Chand Award

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

1 2895
Q:

Government regulation is intended to

A) discourage producers from taking harmful actions. B) encourage producers to follow the Constitution.
C) discourage producers from making a profit. D) encourage producers to take negative actions.
 
Answer & Explanation Answer: A) discourage producers from taking harmful actions.

Explanation:

Government regulation protects constitutional rights, safety, and fairness.

 

Hence, Government regulation is intended to discourage producers from taking harmful actions.

Report Error

View Answer Report Error Discuss

3 2895
Q:

_______ has hailed ARJUN as "among the best three Main Battle Tanks" in the world 

A) Gen Shankar Roy Chowdhury B) VS Arunachalam
C) Dr APJ Abdul Kalam D) Dr MGK Menon
 
Answer & Explanation Answer: C) Dr APJ Abdul Kalam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 2895
Q:

Operating system functions may include

A) multiprogramming B) input/output control
C) virtual storage D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

An operating system has three main functions:

(1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers,

(2) establish a user interface, and

(3) execute and provide services for applications software.

Report Error

View Answer Report Error Discuss

5 2894