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

Chennai-based FMCG company, CavinKare has made an entry into homecare segment by launching a liquid  toilet cleaner. The brand name of the toilet cleaner is

A) Tavex B) Tex
C) Texco D) Domotex
 
Answer & Explanation Answer: B) Tex

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

4 3157
Q:

A constitutional convention was called in Philadelphia to frame a new Constitution of America, which came into effect in _________

A) 1776 B) 1789
C) 1781 D) 1780
 
Answer & Explanation Answer: B) 1789

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

1 3157
Q:

What type of lens is a magnifying glass?

A) Diverging B) Spherical
C) Converging D) Achromatic
 
Answer & Explanation Answer: C) Converging

Explanation:

A magnifying glass is a convex lens that is used to produce a magnified image of an object. It is also called a hand lens in laboratory contexts.

Report Error

View Answer Report Error Discuss

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

5 3156
Q:

The function of nitrogen in air is 

A) to make air a moderate supporter of combustion B) to maintain the density of air constant
C) to prevent the hydrogen in air from exploding D) to reduce the poisonous nature of ozone in air
 
Answer & Explanation Answer: A) to make air a moderate supporter of combustion

Explanation:

If air contained all oxygen and no nitrogen, everything would have burnt off

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3156
Q:

Where is a hub specified in the OSI model?

A) Physical Layer B) Data Link Layer
C) Application Layer D) Session Layer
 
Answer & Explanation Answer: A) Physical Layer

Explanation:

Hubs regenerate electrical signals, which are specified at the Physical layer.

Report Error

View Answer Report Error Discuss

Filed Under: Networking
Exam Prep: CAT
Job Role: Analyst , Network Engineer

1 3155
Q:

Which of the following is a secondary air pollutant?

A) Acid rain B) SO2
C) CO2 D) Dust particles
 
Answer & Explanation Answer: A) Acid rain

Explanation:

Secondary pollutants include ozone, which is formed when hydrocarbons (HC) and nitrogen oxides (NOx) combine in the presence of sunlight.

 

Whereas Primary pollutant are those pollutants that are directly emitted from their sources, like CO2, CO, SO2 as these gases are directly emitted form burning of fossil fuels.

 

Acid rain, which is formed when sulfur dioxide or nitrogen oxides react with water, sulfuric acid etc.

 

Hence, Acidrain is a secondary air pollutant.

 

Report Error

View Answer Report Error Discuss

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

5 3155
Q:

What is an error in a program called

A) Power fail B) Crash
C) Virus D) Bug
 
Answer & Explanation Answer: D) Bug

Explanation:

In computer technology, a coding error in a computer program is called a bug.

Report Error

View Answer Report Error Discuss

2 3155