Questions

Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

  int i,j,s,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=1;i<s;i++){
      temp=a[i];
      j=i-1;
      while((temp<a[j])&&(j>=0)){
      a[j+1]=a[j];
          j=j-1;
      }
      a[j+1]=temp;
  }

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

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2944
Q:

The mass defect is the result of what action occurring?

A) mass being converted to energy when protons and neutrons bind together in a nucleus B) protons and electrons being attracted to each other
C) energy being converted into moles of atoms when neutrons break apart protons D) mass being converted to energy when protons and neutrons break apart in a nucleus
 
Answer & Explanation Answer: A) mass being converted to energy when protons and neutrons bind together in a nucleus

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2943
Q:

Which best describes somatic mutations?

A) transmitted to progeny B) not transmitted to progeny
C) Can't be identified D) None of the above
 
Answer & Explanation Answer: A) transmitted to progeny

Explanation:

The best example for somatic mutation would be cancer, familial cancer (which transmits through gametes to the next generation) are not so common while sporadic cancer is seen the most where body cells of a particular area goes through mutations for a number of years and becomes cancerous, but it is not transmitted to next generation.

Report Error

View Answer Report Error Discuss

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

4 2943
Q:

Which is the only snake that builds nests?

A) Python B) Anaconda
C) Viper D) King Cobra
 
Answer & Explanation Answer: D) King Cobra

Explanation:

Which_is_the_only_snake_that_builds_nests1537938937.jpg image

 

The longest venomous snake The King Cobra is the only snake that build nests for its eggs.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

4 2942
Q:

The book ' Redesigning the Aeroplane While Flying : Reforming Institutions' is written by

Answer

Arun Maira

Report Error

View answer Workspace Report Error Discuss

5 2941
Q:

Brazil-based bus body maker Marcopolo has entered into a Joint venture with which Indian Company to manufacture fully-built buses and coaches?

A) Swaraz Mazda B) Ashok Leyland
C) Eicher D) Tata Motors
 
Answer & Explanation Answer: D) Tata Motors

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

8 2941
Q:

Access to potable water is most heavily limited by

A) Raw water supplies B) Money
C) Climate D) Precipitation
 
Answer & Explanation Answer: B) Money

Explanation:

The potable water is the water, which is tested and safe for drinking purpose and cooking preparations. The water is tested and purified in industries. So, the potable water is costly.

Access_to_potable_water_is_most_heavily_limited_by1557724525.jpg image

Hence, Access to potable water is most heavily limited by money.

Report Error

View Answer Report Error Discuss

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

2 2941
Q:

Which of the following can be a cause of fratricide?

A) Clearance of Fires Error B) Fatal Navigation Error
C) Failures in the direct fire control plan D) All of the above
 
Answer & Explanation Answer: C) Failures in the direct fire control plan

Explanation:

Fratricide means the accidental killing of one's own forces in war.

 

Failures in the direct fire control plan can lead to be a cause of fratricide.

Report Error

View Answer Report Error Discuss

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

2 2940