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

Along the path of the vas deferens which glands add their secretions in the sperms?

 

I. Prostate

II. Seminal vesicles

III. Scrotum

 

A) Only I and III B) Only I and II
C) Only II and III   D) All I, II and III
 
Answer & Explanation Answer: B) Only I and II

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 3112
Q:

Select the synonym of

 

sentry

A) bandit B) competitor
C) sentinel D)  foe
 
Answer & Explanation Answer: C) sentinel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3111
Q:

The following equation is incorrect. Which two signs should be interchanged to correct the equation?

13 x 8 + 25 - 6 ÷ 10 = 20

A) ÷ and - B) x and -
C) + and ÷ D) - and +
 
Answer & Explanation Answer: B) x and -

Explanation:
Report Error

View Answer Report Error Discuss

0 3111
Q:

The compound interest accrued on an amount of Rs.25,500 at the end of three years is Rs.8,440.5. What would be the simple interest accrued on the same amount at the same rate in the same period?

A) Rs.4,650 B) Rs.5,650
C) Rs.6,650 D) Rs.7,650
 
Answer & Explanation Answer: D) Rs.7,650

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Verbal Reasoning - Mental Ability
Exam Prep: Bank Exams
Job Role: Bank PO

16 3110
Q:

A research team of 6 people is to be formed from 10 chemists,5 politicians, 8 economists and 15 biologists.How many teams have atleast 5 chemists?

A) 7350 B) 6400
C) 6379 D) 7266
 
Answer & Explanation Answer: D) 7266

Explanation:

10C5 x 28C1 x 10C6 = 7266

Report Error

View Answer Report Error Discuss

0 3110
Q:

The Governament of India has decided to declare which of the following rivers as ' national River '

A) Ganga B) Yamuna
C) Kaveri D) None of these
 
Answer & Explanation Answer: A) Ganga

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 3110
Q:

Every year " National Maritime Day of India " is observed on

A) 1st April B) 2nd Aril
C) 4th April D) 5th April
 
Answer & Explanation Answer: D) 5th April

Explanation:

National Maritime Day of India is observed every year on 5th April. On this day in 1919, S S Loyalty, the first ship of the Scindia Steam Navigation Company, journeyed to the United Kingdom.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams

5 3109