Questions

Q:

What would be the output of the following program?

main()

{

   struct emp

   {

        char *n;

        int age;

   };

   struct emp e1 = { "Dravid", 23};

   struct emp e2 = e1;

   strupr (e2.n);

   printf ("\n%s",e1.n);

}

Answer

DRAVID


When a structure is assigned, passed, or returned, the copying is done monolithically. This means that the copies of any pointer fields will point to the same place as the original. In other words, anything pointed to is not copied. Hence, on changing the name through e2.n it automatically changed e1.n

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2724
Q:

Expand and simplify (2x + 5)2 *(4x ­- 1) -­ (3x3 - 16x2 + 25x -­ 21)

A) 13x3 + 92x2 -­ 55x + 4 B) 13x3 -­ 92x2 -­ 55x -­ 4
C) 13x3 + 92x2 + 55x -­ 4 D) 13x3 -­ 92x2 + 55x + 4
 
Answer & Explanation Answer: C) 13x3 + 92x2 + 55x -­ 4

Explanation:
Report Error

View Answer Report Error Discuss

1 2723
Q:

Which one of the following pairs of animals is warm blooded?

A) Crocodile and Ostrich B) Hagfish and Dogfish
C) Tortoise and Ostrich D) Peacock and Camel
 
Answer & Explanation Answer: D) Peacock and Camel

Explanation:

Warm-blooded creatures, like mammals and birds, try to keep the inside of their bodies at a constant temperature. They do this by generating their own heat when they are in a cooler environment, and by cooling themselves when they are in a hotter environment. To generate heat, warm-blooded animals convert the food that they eat into energy. Peacock and camel are warm blooded animals.

 

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams

13 2723
Q:

Insert command falls in which sub-language of SQL ?

A) DCL B) DQL
C) DML D) DDL
 
Answer & Explanation Answer: C) DML

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification

5 2723
Q:

Which part of the brain is responsible for consciousness?

A) Brain stem B) Cerebrum
C) Cerebellum D) None of the above
 
Answer & Explanation Answer: B) Cerebrum

Explanation:

The brain has three main parts the cerebrum, cerebellum and brainstem. As cerebrum is the largest part of the brain it is divided into two hemispheres i.e, right and left. It performs many functions like vision, hearing, touch, learning, consciousness, emotions, etc...

which_part_of_the_brain_is_responsible_for_consciousness1563518225.png image

Report Error

View Answer Report Error Discuss

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

12 2723
Q:

Which city was adjudged as India's Cleanest City for the third consecutive year as per Swachh Survekshan 2019?

A) Indore B) Mysuru
C) Ambikapur D) Bhopal
 
Answer & Explanation Answer: A) Indore

Explanation:

Indore city was adjudged as India's Cleanest City for the third consecutive year as per Swachh Survekshan 2019.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2723
Q:

Which energy source generates radioactive waste?

A) Nuclear power B) Thermal power
C) Hydel power D) All of the above
 
Answer & Explanation Answer: A) Nuclear power

Explanation:

which_energy_source_generates_radioactive_waste1543400097.jpg image

Nuclear power energy source generates radioactive waste.

Report Error

View Answer Report Error Discuss

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

4 2723
Q:

On the PC side the printer port is a

A) 25 pin female parallel connector B) 25 pin female serial connector
C) 15 pin female parallel connector D) 25 pin male serial connector
 
Answer & Explanation Answer: A) 25 pin female parallel connector

Explanation:

Screenshot_(66)1593757209.jpg image

 

On the PC side the printer port is a 25 pin female parallel connector.

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

2 2723