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

What charge card, developed in 1950, was the first to be approved nationally in the US?

A) Discover B) MasterCharge
C) Visa D) Diner's Club
 
Answer & Explanation Answer: D) Diner's Club

Explanation:

 

The card was established by Frank McNamara and Ralph Schneider.

Report Error

View Answer Report Error Discuss

Filed Under: Inventions

4 3245
Q:

Which of the following elements has the lowest electronegativity

A) Bromine B) Fluorine
C) Carbon D) Lithium
 
Answer & Explanation Answer: D) Lithium

Explanation:

Electronegativity is the tendency for an atom to attract electrons. There are general trends on the periodic table which you can use to determine the relative electronegativity for different elements, but otherwise you can also look at their valence shell and effective nuclear charge to determine their relative electronegativity.

 

Here from the given options, Lithium has least tendency to attract electrons and thus has a lower electronegativity.

Report Error

View Answer Report Error Discuss

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

1 3245
Q:

What George Westinghouse invented?

A) Electric razor B) Light bulb
C) Railway air brakes D) Refrigerator
 
Answer & Explanation Answer: C) Railway air brakes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

1 3244
Q:

Which, among the following industries , consumes the maximum power?

A) aluminium B) coal
C) steel D) petroleum refining
 
Answer & Explanation Answer: A) aluminium

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3244
Q:

Which sector of Indian Economy has shown remarkable expansion during the last decade

A) Primary sector B) Secondary sector
C) Terrrtiary sector D) Mining sector
 
Answer & Explanation Answer: C) Terrrtiary sector

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3243
Q:

How much time for the total distance?

time_and_distance1561111256.jpg image

A) 85 min B) 1 hr 15 min
C) 90 min D) 1 hr 08 min
 
Answer & Explanation Answer: B) 1 hr 15 min

Explanation:

From the given data, 

if 60% = 45 minutes


100% =  ?

=> 45 × 100/60

= 75 min


i.e, = 1hr 15 min.

Report Error

View Answer Report Error Discuss

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

17 3243
Q:

Which of the following is a war-related dance?

 

A) Kathakali of Kerala B) Bamboo dance of Meghalaya
C) Chhau of Mayurbhanj D) Bhangra of Panjab
 
Answer & Explanation Answer: C) Chhau of Mayurbhanj

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 3242