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

How many Months of the year have 28 Days?

A) 12 B) 7
C) 5 D) 6
 
Answer & Explanation Answer: A) 12

Explanation:

We have 12 months.

In every month we get 28 or more days. 

So that implies we get 28 days in each and every month.

 

Report Error

View Answer Report Error Discuss

Filed Under: Logic Puzzles
Exam Prep: TOEFL , GRE , GATE , CAT , Bank Exams , AIEEE
Job Role: IT Trainer , Database Administration , Bank PO , Analyst

8 4819
Q:

Dry ice is nothing but

A) Solid carbon dioxide B) Baking soda
C) Gaseous carbon dioxide D) Carbon monoxide
 
Answer & Explanation Answer: A) Solid carbon dioxide

Explanation:

dry-ice1531812120.jpg image

 

Dry ice is solid form of carbon dioxide, used as a cooling agent.

 

It lower temperature than that of water ice and not leave any residue.

Report Error

View Answer Report Error Discuss

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

5 4819
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 4818
Q:

Why address bus in unidirectional and data bus is bidirectional?

Answer

Because there is no need address traansaction between processor and peripheral device but data bus is needed because data has to be read and write

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

3 4818
Q:

Who has been appointed as the new Executive Director (ED) of RBI in place of US Paliwal ?

A) Anjali Singh B) Manish Tomar
C) Susheela Singh D) Surekha Marandi
 
Answer & Explanation Answer: D) Surekha Marandi

Explanation:

Surekha Marandi has been appointed as the new Executive Director (ED) of Reserve Bank of India (RBI). She succeeded U S Paliwal, who retired on December 31, 2016.

Report Error

View Answer Report Error Discuss

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

5 4818
Q:

Who governs the INTERNET ?

A) ISOC B) IETF
C) IAB D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer

9 4816
Q:

' The Nacked Face ', a very popular book is written by

A) John Milton B) Dominique Lapierre
C) Juan Benet D) Sidney Sheldon
 
Answer & Explanation Answer: D) Sidney Sheldon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

7 4815