Questions

Q:

How would you dynamically allocate a 2-D array of integers?

Answer

#include "alloc.h"


#define MAXROW 3


#define MAXcol 4


main()


{


        int *p, i, J;


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


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


         {


                for (j=0; j < MAXCOL ; j++)


                { 


                      p [ i * MAXCOL + j] = i;


                       printf ( "%d", p [i * MAXCOL + j] );


                 }


                  printf ("\n");


          }


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3478
Q:

Which of these relationships is true of an uncharged atom?

A) The atomic mass is equal to the atomic number. B) The number of electrons is equal to the number of neutrons.
C) The number of protons is equal to the number of electrons. D) The atomic mass is equal to the number of electrons.
 
Answer & Explanation Answer: C) The number of protons is equal to the number of electrons.

Explanation:

The number of protons is equal to the number of electrons. That is the number of positive charges is equal to the number of negative charges.

Report Error

View Answer Report Error Discuss

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

4 3477
Q:

A song always has

A) Musician B) Tymbal
C) Word D) Chorus
 
Answer & Explanation Answer: C) Word

Explanation:

Without a word in it, it can't be called as song.

Report Error

View Answer Report Error Discuss

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

0 3477
Q:

What can run but never walks, has a mouth but never talks, has a head but never weeps, has a bed but never sleeps?

What_can_run_but_never_walks1533298429.jpg image

Answer

A river which can run but never walks, has a mouth but never talks, has a head but never weeps, has a bed but never sleeps.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

6 3476
Q:

When was Barb Wire patented

A) 1898 B) 1868
C) 1874 D) 1866
 
Answer & Explanation Answer: C) 1874

Explanation:

Joseph F. Glidden - Father of Barbed Wire.

      • Glidden was born in New York in 1812. He invented Barbed Wire in 1873 and was granted the patent on Nov. 24, 1874. After a three year battle over the patent, which he eventually won received a patent for the modern invention in 1874 after he made his own modifications to previous versions.
Report Error

View Answer Report Error Discuss

Filed Under: Inventions
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Database Administration , Bank PO , Analyst

10 3476
Q:

_______ has hailed ARJUN as "among the best three Main Battle Tanks" in the world 

A) Gen Shankar Roy Chowdhury B) VS Arunachalam
C) Dr APJ Abdul Kalam D) Dr MGK Menon
 
Answer & Explanation Answer: C) Dr APJ Abdul Kalam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 3476
Q:

Is air homogeneous or heterogeneous?

A) homogeneous B) heterogeneous
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) homogeneous

Explanation:

A Mixture is a material made up of two or more different substances which are mixed.

 

Mixtures can be either homogeneous or heterogeneous.

 

* A homogeneous mixture is a type of mixture in which the composition is uniform and every part of the solution has the same properties.

* A heterogeneous mixture is a type of mixture in which the components can be seen, as there are two or more phases present.

 

Air is a homogeneous mixture of the gaseous substances nitrogen, oxygen, and smaller amounts of other substances.

Report Error

View Answer Report Error Discuss

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

2 3476
Q:

What is the unique about the film ' Adi Shankaracharya '

A) It is the first Sanskrit Film B) It has no female actress
C) It is the first film of the director G.V.Iyer D) It has won the National Award
 
Answer & Explanation Answer: A) It is the first Sanskrit Film

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 3475