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:

The word OPERA means what in Italian?

A) Word B) Work
C) Energy D) Force
 
Answer & Explanation Answer: B) Work

Explanation:
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:

The standard English sentence order does which of the following?

A) Verb-Subject-Object B) Subject-Verb-Object
C) Verb-Object-Subject D) Object-Verb-Subject
 
Answer & Explanation Answer: B) Subject-Verb-Object

Explanation:

The standard English sentence order is Subject-Verb-Object.

 

For example ::

In the sentence, Why did you (S) do (V) that (O)?

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 , Database Administration , IT Trainer

1 3477
Q:

How many periods in National Hockey League?

A) 2 B) 3
C) 4 D) 5
 
Answer & Explanation Answer: B) 3

Explanation:

National Hockey League game is divide into 3 Periods each of 20 minutes. During the regular season, if the game ends in a tie, a 5 minute, sudden death overtime is played. In the playoffs, the overtime is 20 minutes long.

Report Error

View Answer Report Error Discuss

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

12 3476
Q:

National Statistics day observed every year on

A) 20 October B) 20 July
C) 29 June D) 21 September
 
Answer & Explanation Answer: C) 29 June

Explanation:

National Statistics day is celebrated annually 29th June, on the occasion of Birth anniversary of India’s eminent statistician Late Prof Prasanta Chandra Mahalanobis.

It also commemorates the contributions made by PC Mahalanobis in the fields of statistics and economic planning.

 

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

2 3476
Q:

Given a principal of $12,000 with a compound amount of $17,631.94 and interest rate of 8% compounded anually,what is the time peroid in years?

A) 3years B) 4years
C) 5years D) 6years
 
Answer & Explanation Answer: C) 5years

Explanation:

M=P(1+i)^n

Report Error

View Answer Report Error Discuss

0 3475
Q:

'Grand Slam' in Tennis Consists of which of the following combinations?

A) Wimbledon, French Open, Italian Open, Australian Open B) Wimbledon, Australian Open, Japan Open, US Open
C) Australian Open, French Open, Wimbledon, US Open D) Wimbledon, South Africa Open, French Open
 
Answer & Explanation Answer: C) Australian Open, French Open, Wimbledon, US Open

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3475
Q:

Electromagnetic waves are transverse in nature is evident by

A) Reflection B) Polarisation
C) interference D) Diffraction
 
Answer & Explanation Answer: B) Polarisation

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3475