Questions

Q:

How would you free the memory allocated by the following program?

#include "alloc.h"

#define MAXROW 3

#define MAXCOL 4

main()

{

     int **p, i;

     p = (int **) malloc (MAXROW * sizeof (int *));

      for ( i = 0; i < MAXROW ; i++)

            p[i] = (int *) malloc (MAXCOL * sizeof (int ));

}

Answer

for ( i=0; i < MAXROW ; i++)


free (p[i]);


free (p);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4019
Q:

Which formula represents a nonpolar molecule?

A) H2O B) CF4
C) HCl D) H2S
 
Answer & Explanation Answer: B) CF4

Explanation:

You have to consider three things.

1. First, are the bonds polar?

Look at differences in electronegativity and if  it is >0.5, bonds are polar.

 

2. Second, does the molecule have unshared electron pairs?

If so, they generally lead to a polar molecule.

 

3. Third, is the molecule symmetric?

If so, then although the bonds may be polar, the symmetry cancels out the individual bond polarity and the molecule is non polar.

CF4 follows all the rules above and has a symmetric distribution of charge, making it nonpolar. The others all have asymmetric charge distributions.

 

Hence, CF4 represents a Non-polar molecule.

Report Error

View Answer Report Error Discuss

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

1 4019
Q:

Name another word for friend?

A) playfellow B) enemy
C) rival D) foe
 
Answer & Explanation Answer: A) playfellow

Explanation:

Friend is a person with whom one has a bond of mutual affection, typically one exclusive of sexual or family relations.

 

Other names for friend are mate, bosom friend, classmate, buddy, ally,...

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

11 4019
Q:

 Stored procedures have which of the following advantages?

A) It takes a longer time to write them as compared to writing Visual Basic. B) Data integrity improves as multiple applications access the same stored procedure.
C) Network traffic increases D) Result in thicker client and thinner database server.
 
Answer & Explanation Answer: B) Data integrity improves as multiple applications access the same stored procedure.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 4018
Q:

Which among the following is the resting place of Morarji Desai?

A) Abhay Ghat B) Ekta Sthal
C) Shakti Sthal D) Vijay Ghat
 
Answer & Explanation Answer: A) Abhay Ghat

Explanation:

The resting place of Morarji Desai is Abhay Ghat.

Report Error

View Answer Report Error Discuss

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

9 4017
Q:

What was the name of India's first ever micro-drama festival that was held recently in New Delhi ?

A) Thanes Hare B) Taapsi
C) Thespis D) Ankulrama
 
Answer & Explanation Answer: C) Thespis

Explanation:

India's first ever micro-drama festival, named Thespis, was held recently in New Delhi. 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 4016
Q:

A linear-shaped lowland between highlands or mountain ranges created by the action of a geologic rift or fault is called?

Answer

rift valley

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

0 4015
Q:

Yisrael Kristal, who died recently was certified by Guinness World Records as the _________.

A) World's Tallest Man B) World's Oldest Man
C) World's Youngest Man D) World's Smallest Man
 
Answer & Explanation Answer: B) World's Oldest Man

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

6 4015