Questions

Q:

Write a c program for selection sort.

Answer

include<stdio.h>
int main(){

  int s,i,j,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  for(i=0;i<s;i++){
      for(j=i+1;j<s;j++){
           if(a[i]>a[j]){
               temp=a[i];
              a[i]=a[j];
              a[j]=temp;
           }
      }
  }

  printf("After sorting is: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 4 5 0 21 7
The array after sorting is:  0 4 5 7 21

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2444
Q:

What is Executive in Windows NT?

Answer

In Windows NT, executive refers to the operating system code that runs in kernel mode.

Report Error

View answer Workspace Report Error Discuss

1 2444
Q:

Amazon Rainforest Forests are located in which continent?

A) South America B) Australia
C) North America D) Antarctica
 
Answer & Explanation Answer: A) South America

Explanation:

Amazon Rainforest Forests are located in South America.

Report Error

View Answer Report Error Discuss

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

7 2443
Q:

Which of these instruments is used to measure the wind speed?

A) Anemometer B) Inclinometer
C) Fathometer D) Calorimeter
 
Answer & Explanation Answer: A) Anemometer

Explanation:

Anemometer is the instrument that is used for measuring the speed of wind or any gas currents.

Which_of_these_instruments_is_used_to_measure_the_wind_speed1560165843.jpg image

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

In India, country's 1st Owl Festival held in

A) Hyderabad B) Pune
C) Kolkata D) Bangalore
 
Answer & Explanation Answer: B) Pune

Explanation:

In India, country's 1st Owl Festival held in Pune, for two days i.e, on Nov 29 and Nov 30. It is a first-of-its-kind festival in the country that is being organised with the intention of creating awareness about owl as a bird and debunking numerous superstitions associated with it.

Report Error

View Answer Report Error Discuss

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

3 2442
Q:

Evergreen trees lose their leaves steadily all year.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Trees that lose all of their leaves for part of the year are known as deciduous trees. Those that don't are called evergreen trees.

Report Error

View Answer Workspace Report Error Discuss

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

1 2442
Q:

Which is the least populated state in India as per Census 2011?

A) Bihar B) Kerala
C) Sikkim D) Maharashtra
 
Answer & Explanation Answer: C) Sikkim

Explanation:

the least populated state in India as per Census 2011 is Sikkim.

Report Error

View Answer Report Error Discuss

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

0 2442
Q:

St Andreas Fault passes close to the US city of

A) Los Angeles B) New Orleans
C) Hollywood D) San Francisco
 
Answer & Explanation Answer: D) San Francisco

Explanation:

A devastating  series of earthquakes in 1906 ruined the city completely and its presence is a constant remainder of the past and a threat of repetition in future.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2442