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

Point out which from the following is NOT a right enumerated in the Constitution of India but has been articulated by the Supreme Court to be a Fundamental Right

A) Right to privacy B) Certiorari
C) Abolition of untouchability D) Right to form association or Union
 
Answer & Explanation Answer: A) Right to privacy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

7 3445
Q:

Operating system functions may include

A) multiprogramming B) input/output control
C) virtual storage D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

An operating system has three main functions:

(1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers,

(2) establish a user interface, and

(3) execute and provide services for applications software.

Report Error

View Answer Report Error Discuss

5 3444
Q:

Which of the following terms follows the trend of the given list?

YXXXXXXY, YXXXXXYX, YXXXXYXX, YXXXYXXX, YXXYXXXX, _______________

A) YYXXXXXX B) YXXXXXXY
C) YXXXXXYX D) YXYXXXXX
 
Answer & Explanation Answer: D) YXYXXXXX

Explanation:
Report Error

View Answer Report Error Discuss

1 3444
Q:

Nitrogen Fixation is carried out primarily by

A) Plants B) Humans
C) Consumers D) Bacteria
 
Answer & Explanation Answer: D) Bacteria

Explanation:

The process by which bacteria convert nitrogen gas (N2) into ammonia (NH3) is called Nitrogen Fixation.

 

The conversion of nitrogen from one form to another in the nitrogen cycle is carried out primarily by Nitrogen Fixing Bacteria such as Azotobacter.

Report Error

View Answer Report Error Discuss

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

6 3444
Q:

India’s first contactless business credit card has been launched by __________in association with Jet Airways, India premier international airline.

A) Axis Bank B) ICICI Bank
C) HDFC Bank D) YES Bank
 
Answer & Explanation Answer: B) ICICI Bank

Explanation:

India’s first contactless business credit card has been launched by ICICI bank in association with Jet Airways, India premier international airline, for Small and Mid-sized Enterprises (SMEs) and their employees. The card has been christened as the ‘Jet Airways ICICI Bank Business Advantage Card’, which helps customers to save on their business expenses. The card is powered by the ‘VISA payWave’ contactless technology that enables the cardholder to make payments by simply tapping the card at contactless enabled terminals in more than 48 countries, including India. The card can also be used by dipping or swiping at non-contactless merchants.

Report Error

View Answer Report Error Discuss

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

3 3443
Q:

India was elected as a President of General Assembly of the United Nations in 1953. Who occupied this office on behalf of India?

A) S. Radha Krishnan B) Gopalswamy Iyyengar
C) V.K. Krishna Menon D) Vijayalakshmi Pandit
 
Answer & Explanation Answer: D) Vijayalakshmi Pandit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

9 3443
Q:

The United Nation declared 2005-2015 as the International Decade for

A) Water for Life Decade B) Bone and Joint Decade
C) Second International Decade for the Eradication of colonialism D) International Decade for Natural Disaster Rreduction
 
Answer & Explanation Answer: A) Water for Life Decade

Explanation:
Report Error

View Answer Report Error Discuss

0 3442