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

The first passenger train in India ran between

A) Kalyan and Pune B) Bombay and Thane
C) Howrah and Delhi D) New Delhi and Madras
 
Answer & Explanation Answer: B) Bombay and Thane

Explanation:

India's first passenger train run took place from Mumbai to Thane for around 34 kms on 16th April in the year 1853. 

That train was hauled by three steam locomotives : Sahib, Sindh and Sultan.

That train had 14 carriages, carrying around 400 passengers.

Report Error

View Answer Report Error Discuss

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

6 4978
Q:

What can be measured but not seen?

what_can_be_measured_but_not_seen1533301527.jpg image

Answer

TIME is what we can measure in Years, Months, Days, Hours, Minutes and Seconds but we cannot see.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

5 4972
Q:

The brain is covered by

A) meninges B) skin
C) bone D) all the above
 
Answer & Explanation Answer: D) all the above

Explanation:

The central nervous system ( brain and spinal card ) are invested with the meninges which nourish and protect the system .This again is enclosed inside a bony box which has the skin above it

Report Error

View Answer Report Error Discuss

Filed Under: Biology

14 4972
Q:

Losoong is a festival which is celebrated in 

A) Arunachal Pradesh B) Sikkim
C) Kerala D) Madhya Pradesh
 
Answer & Explanation Answer: B) Sikkim

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

77 4972
Q:

Which of the following is a nucleotide found in DNA?

A) Deoxyribose + Phosphate Group + Polymerase B) Adenine + Phosphate Group + Thymine
C) Deoxyribose + Phosphate Group + Thymine D) Cytosine + Phosphate Group + Uracil
 
Answer & Explanation Answer: C) Deoxyribose + Phosphate Group + Thymine

Explanation:

We know that, the nucleotide in DNA is of the form deoxyribose + phosphate group + polymerase.

 

Which_of_the_following_is_a_nucleotide_found_in_DNA1553496102.jpg image

 

Hence, Deoxyribose + Phosphate Group + Thymine is the only option in that form of nucleotide in DNA.

Report Error

View Answer Report Error Discuss

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

3 4971
Q:

With which Bank Amazon has signed an agreement to provide Micro-loans to sellers  ?

A) Union Bank B) SBI Bank
C) Bank of Baroda D) United Bank
 
Answer & Explanation Answer: C) Bank of Baroda

Explanation:
Report Error

View Answer Report Error Discuss

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

8 4971
Q:

A person who builds houses

A) Architect B) Builder
C) Bricklayer D) Contractor
 
Answer & Explanation Answer: B) Builder

Explanation:

A person who builds houses or buildings is known as builder.

Report Error

View Answer Report Error Discuss

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

1 4969