Questions

Q:

Can I increase the size of a dynamically allocated array? < Yes / No> if yes, how?

Answer

Yes, using the realloc() function as shown below:


main()


{


        int *p;


        p = ( int *) malloc (20) ;


        t = p;


        t = (int *) realloc ( p, 40);


        if ( t == NULL )


        Printf (" Cannot reallocate, leaves previous allocated region unchanged ");


       else


       {


              if ( p ==t )


              ;  / * the array expanded at the same region */


             else


            { 


                 free ( p ); / * deallocate the original array */


                 p = t;  /* set p to newly allocated region */


             }


      }


}  

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 4875
Q:

Where will the Olympic Games in 2012 be held

A) Italy B) Germany
C) France D) England
 
Answer & Explanation Answer: D) England

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 4874
Q:

Which Indian city is the most polluted city in the world as per a study recently released by WHO?

A) Delhi B) Mumbai
C) Pune D) Chennai
 
Answer & Explanation Answer: A) Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

5 4874
Q:

First woman to win olympic medal for India

A) Mary Kom B) Saina Nehwal
C) Karnam Malleshwari D) P.V. Sindhu
 
Answer & Explanation Answer: C) Karnam Malleshwari

Explanation:

The first Indian woman to ever win an Olympic medal for India was Karnam Malleswari who won a bronze medal at the Sydney Olympics 2000 in the Women's 69 kg category in Weightlifting.

 

Karnam Malleswari is a retired Indian weightlifter. In 1995 she received the Rajiv Gandhi Khel Ratna, India's highest sporting honour, and in 1999 the civilian Padma Shri award.

 

After that Indian women who won Olymic medals to India was : 

 

1. Mary Kom at the London 2012 Summer Olympics won bronze medal in women's boxing.

 

2. Saina Nehwal was the first Indian to win a medal in Badminton at the Olympics, by winning the Bronze medal at the London Olympics 2012.

 

3. Sakshi Malik became the first Indian woman to win a medal in Wrestling. She won the Bronze medal in Women's 58 kg freestyle wrestling in 2016 Summer Olympics held in Rio.

 

4. P.V. Sindhu became the first ever Indian woman to win the Silver medal at the Olympics, by reaching the Badminton final at Rio Olympics 2016.

 

Report Error

View Answer Report Error Discuss

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

3 4872
Q:

Which state tourism department's motto is 'A living heritage of heroism'?

A) Madhya Pradesh B) Gujarat
C) Rajasthan D) Himachal Pradesh
 
Answer & Explanation Answer: C) Rajasthan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

13 4870
Q:

Daydreaming, Meditation, Intoxication, Sleep and Hypnosis are all types of

A) waking consciousness B) self-absorption
C) altered states of consciousness D) self-awareness
 
Answer & Explanation Answer: C) altered states of consciousness

Explanation:

Consciousness is the state or quality of awareness, or, of being aware of an external object or something within oneself.

  

Day dreaming, Meditation, Intoxication, Sleep and Hypnosis are all types of altered states of consciousness . In al these states, a person's state of conscious is altered but he has consciousness.

 

altered_states_of_consciousness1532501889.jpg image

Report Error

View Answer Report Error Discuss

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

2 4870
Q:

Which is the first metro rail in India?

A) Kolkata B) Hyderabad
C) Delhi D) Mumbai
 
Answer & Explanation Answer: A) Kolkata

Explanation:

Kolkata Metro Rail is the first metro rail operating since 1984 in India.

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

17 4869
Q:

 When an entity instance may be a member of multiple subtypes or it does not have to be a member of a subtype, it is which of the following?

A) Disjoint with total specialization B) Disjoint with partial specialization
C) Overlap with total specialization D) Overlap with partial specialization
 
Answer & Explanation Answer: C) Overlap with total specialization

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

2 4869