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

In which of the following state Bandipur National Park is located?

A) Karnataka B) Andhra Pradesh
C) Himachal Pradesh D) Madhya Pradesh
 
Answer & Explanation Answer: A) Karnataka

Explanation:

Bandipur National Park is located in the state of Karnataka.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank PO , Database Administration , IT Trainer

7 4629
Q:

The G-7 is a group consisting of  ?

A) the heads of the states of US, UK, France, Germany, Italy, Canada and Japan B) the heads of the states of US, UK, France, Germany, Russia, Italy and Japan
C) the finance ministers of US, UK, France, Germany, Italy, Canada and Japan D) the heads of the states of US, UK, France, Germany, Russia, Canada and Japan
 
Answer & Explanation Answer: C) the finance ministers of US, UK, France, Germany, Italy, Canada and Japan

Explanation:

The finance ministers of US, UK, France, Germany, Italy, Canada and Japan is called as G-7 group. 

Report Error

View Answer Report Error Discuss

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

7 4629
Q:

Which is a common first indicator of an approaching thunderstorm?

A) too hot B) heavy wind
C) a buildup of dark clouds D) lightning
 
Answer & Explanation Answer: C) a buildup of dark clouds

Explanation:

The first indicator of an approaching thunderstorm is a buildup of dark clouds.

A thunderstorm is a storm with lightning and thunder; it is usually produced by heavy rain, gusty wind, and the cumulonimbus cloud. The thunderstorm is made up of moisture, unstable air and lift.

Report Error

View Answer Report Error Discuss

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

2 4625
Q:

Identified with modern Tamluk in Bengal, Which was the main port on the east coast of india for sailing to South East Asia in the first millennium?

Answer

Tamralipti

Report Error

View answer Workspace Report Error Discuss

1 4624
Q:

Who has been appointed as new Chairman of Indian Railway Board in August 2017 ?

A) Ashwani Lohani B) S. K. Bhagat
C) Akhil Agarwal D) A. K. Mittal
 
Answer & Explanation Answer: A) Ashwani Lohani

Explanation:

Ashwani Lohani is IRSME officer, appointed as new Chairman of the Indian Railway Board soon after A.K. Mittal stepped down from the post. He is former Chairman & Managing Director of Air India.

Report Error

View Answer Report Error Discuss

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

3 4623
Q:

The Buckingham Canal, which has been declared a National Waterway of India recently, is a canal running from

A) Punjab to Haryana B) Mumbai to goa
C) Vijayawada to Villupuram D) Cochin to Kozhikode
 
Answer & Explanation Answer: C) Vijayawada to Villupuram

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

3 4621
Q:

Fiscal Policy is concerned with

A) Government Spending and Taxation B) Money Supply
C) Government Spending, Money Supply and Taxation D) Taxation
 
Answer & Explanation Answer: A) Government Spending and Taxation

Explanation:

The two most widely recognized tools used to influence a Nation's Economic activity are Monetary policy and Fiscal policy.

 

    • Monetary policy is primarily concerned with the management of interest rates and the total supply of money in circulation and is generally carried out by central banks

 

    • Fiscal policy is the collective term for the taxing and spending actions of governments.

 

Report Error

View Answer Report Error Discuss

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

13 4619