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

A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can't contain Nulls

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Because a table can have only one primary key

Report Error

View Answer Workspace Report Error Discuss

1 4081
Q:

A particle which is four times in mass and two times in charge that of proton is

A) helium atom B) an alpha particle
C) deuteron D) tritium
 
Answer & Explanation Answer: B) an alpha particle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

7 4081
Q:

The substrate of photorespiration is

A) Glucose B) Pyruvic acid
C) Glycolate D) Sucrose
 
Answer & Explanation Answer: C) Glycolate

Explanation:
Report Error

View Answer Report Error Discuss

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

5 4078
Q:

Which of the statements given below are correct?

A) Viktor Axelsen won the Men's Singles Badminton 2017 BWF World Championships.

B) Max Verstappen won the Formula One 2017 United States Grand Prix.

C) In 2018 IPL auctions, Sunrisers Hyderabad retained David Warner.

 

A) B and C B) A and C
C) A and B D) A, B and C
 
Answer & Explanation Answer: B) A and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 4077
Q:

The Jigme Dorji National Park is located in which country  ?

A) Myanmar B) Bhutan
C) India D) Nepal
 
Answer & Explanation Answer: B) Bhutan

Explanation:

The Jigme Dorji National Park is the second-largest National Park of Bhutan. The park provides sanctuary for 37 known species of mammals including several endangered, threatened or vulnerable species, such as the takin, snow leopard, clouded leopard, Bengal tiger, bharal or Himalayan blue sheep, etc. It is also home to the Indian leopard, serow, sambar, barking deer, goral, marmot, pika and more than 300 species of birds. It is also the only park in Bhutan where the national animal (takin), flower (blue poppy), bird (raven) and tree (cypress) exist together.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk

5 4075
Q:

The medieval Indian Muslim poet, historian and musician who called himself a parrot of India was

A) Mulla Daud B) Malik Muhammad Jayasi
C) Tansen D) Amir Khusrau
 
Answer & Explanation Answer: D) Amir Khusrau

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 4074
Q:

One of the following companies was in the news over alleged charges of international trademark and copyright violation. Identify it?

A) Kingfisher Airlines B) Mumbai Dyeing
C) Derby D) Hutch
 
Answer & Explanation Answer: D) Hutch

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

14 4071