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

Difference between bit rate and baud rate.?

Answer

Bit rate is the number of bits transmitted during one second whereas baud rate refers to the number of signal units per second that are required to represent those bits.


baud rate = bit rate / N


where N is no-of-bits represented by each signal shift.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 4773
Q:

A narrow strip of land connecting two large land masses is known as 

A) Strait B) Isthmus
C) Headland D) Bay
 
Answer & Explanation Answer: B) Isthmus

Explanation:

Isthmus of panama and Isthmus of Suez are well known examples

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 4772
Q:

Bhel commissions another 600Mw thermal unit in which state ?

A) Telangana B) Andhra Pradesh
C) Chattisgarh D) Karnataka
 
Answer & Explanation Answer: A) Telangana

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO , IT Trainer , Network Engineer

6 4772
Q:

Which of the following is not transferred by alveoli?

A) Gases B) Oxygen
C) Blood D) Carbondioxide
 
Answer & Explanation Answer: C) Blood

Explanation:

The main function of the pulmonary alveoli is to perform the transfer and exchange of gases. Here in the given options, blood is only one which is not gas.

 

Hence, blood is not transferred by alveoli.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

4 4771
Q:

What element is used in bright flashing advertising signs?

A) Neon B) Helium
C) Mercury D) Radon
 
Answer & Explanation Answer: A) Neon

Explanation:

Neon is the element that is used in bright flashing advertising signs as Neon particulary gives bright color.

Report Error

View Answer Report Error Discuss

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

6 4770
Q:

A, B and C start at the same time in the same direction to run around a circular stadium. A completes a round in 252 seconds, B in 308 seconds and c in 198 seconds, all starting at the same point. After what time will they again at the starting point ?

A) 26 minutes and 18 seconds B) 42 minutes and 36 seconds
C) 45 minutes D) 46 minutes and 12 seconds
 
Answer & Explanation Answer: D) 46 minutes and 12 seconds

Explanation:

L.C.M. of 252, 308 and 198 = 2772.

 

So, A, B and C will again meet at the starting point in 2772 sec. i.e., 46 min. 12 sec.

Report Error

View Answer Report Error Discuss

2 4768
Q:

Only For Geniuses

Solve this MathPuzzle if you can?

num11515666627.jpg image

Answer

Let the required number be 'X'


Condition 1 :  


XX = 2X  => 2X2 = X => X = 12


 


Condition 2 :


X × X = X2=> X = 12


 


Therefore, 12 is the number which becomes double when it is divided by itself and becomes half when it is multiplied by itself.


 

Report Error

View answer Workspace Report Error Discuss

17 4767