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

Which day is celebrated as United nations Day every year

A) 7th April B) 24th October
C) 14th November D) 27th December
 
Answer & Explanation Answer: B) 24th October

Explanation:
Report Error

View Answer Report Error Discuss

4 3463
Q:

Which one of the following is an abiotic and renewable resource

A) Iron ore B) Livestock
C) Water D) Forests
 
Answer & Explanation Answer: C) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3463
Q:

The Study of Blood is called as

Answer

The Study of Blood is called as Hematology which involves treating diseases that affect the production of blood and its components, such as bloodcells, hemoglobin, blood proteins, bone marrow, platelets, blood vessels, spleen, and the mechanism of coagulation.

Report Error

View answer Workspace Report Error Discuss

Subject: General Science Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Analyst

9 3462
Q:

Which state government started the distribution of kits for new borns and mothers across the State  ?

A) Uttar Pradesh B) Haryana
C) Madhya Pradesh D) Telangana
 
Answer & Explanation Answer: D) Telangana

Explanation:

The Telangana government started the distribution of kits for new borns and mothers across the State with Chief Minister K.Chandrashekar Rao gave them at the Government Maternity Hospital. Six women, who gave birth to children recently, received them.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3462
Q:

Friction can be reduced by changing from

A) Static to Dynamic B) Rolling to Sliding
C) Dynamic to Static D) Sliding to Rolling
 
Answer & Explanation Answer: D) Sliding to Rolling

Explanation:

Any object rolls when there is no friction. So, Sliding to Rolling is correct.

Report Error

View Answer Report Error Discuss

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

9 3461
Q:

The popular Access Method for computer network is

A) Ethernet B) Token Ring
C) Bus Token D) None
 
Answer & Explanation Answer: B) Token Ring

Explanation:
Report Error

View Answer Report Error Discuss

14 3461
Q:

Corporation Tax is imposed by

A) Central Government B) State Government
C) Local Government D) None
 
Answer & Explanation Answer: A) Central Government

Explanation:

Corporation tax is a tax imposed on the net income of the company. Companies, both private and public which are registered in India under the Companies Act 1956, are liable to pay corporate tax.

Taxes in India are levied by the Central Government and the state governments. Some minor taxes are also levied by the local authorities such as the Municipality. The authority to levy a tax is derived from the Constitution of India which allocates the power to levy various taxes between the Central and the State.

 

Hence, Corporate Tax is imposed by Central Government.

Report Error

View Answer Report Error Discuss

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

1 3460