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

Which animal adaptation happened before the others?

A) Reproduction on land B) Development of a colelom
C) Tissue development D) Deuterostome development
 
Answer & Explanation Answer: C) Tissue development

Explanation:
Report Error

View Answer Report Error Discuss

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

10 2887
Q:

Most highly intelligent mammals are

A) Elephants B) Kangaroos
C) Whales D) Dolphins
 
Answer & Explanation Answer: D) Dolphins

Explanation:

Dolphins are the most highly intelligent mammals.

Report Error

View Answer Report Error Discuss

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

9 2887
Q:

Where is the Forest Reserve Institute of India located

A) Bhopal B) Dehradum
C) Lucknow D) Delhi
 
Answer & Explanation Answer: B) Dehradum

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

7 2887
Q:

How many posts are reserved for women at all levels in Panchayat Raj System in India?

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

Explanation:

1/3 of the posts are reserved for women at all levels in Panchayati Raj System in India.

 

Panchayat Raj System in India ::

 

>> Recommend by: Balwantrai Mehta Committee 

>> System: 3-tier

>> Established by: Jawahar Lal Nehru

>> Constitutional amendment: 73rd (1992)

>> Schedule: 11th

>> First state to adopt: Rajasthan

>> Article: 243

>> Direct election: Gram Panchayat

Report Error

View Answer Report Error Discuss

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

4 2886
Q:

The More You Have, The Less You See. What is it?

A) Light B) Darkness
C) Sight D) None
 
Answer & Explanation Answer: B) Darkness

Explanation:

The More You Have the Darkness, The Less You See i.e, visible less.

Report Error

View Answer Report Error Discuss

6 2885
Q:

In 1921,during which one of the following tours, Gandhiji shaved his head and began wearing loincloth in order to identity with the poor?

A) Ahmadabad B) Champaran
C) Chauri Chaura D) South India
 
Answer & Explanation Answer: D) South India

Explanation:

On 22nd September 1921, Gandhi made a momentous decision to change his attire. From the elaborate Gujarati attire, he decided on a simple dhoti and shawl. This epoch-making decision was taken by Gandhiji in Madurai after he decided that he has to work for and with the with the poor people of India and how can he identify with them if he wears different clothes from them.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

6 2885
Q:

The Indira Gandhi Zoological Park is located in which state?

A) Sikkim B) Manipur
C) Andhra Pradesh D) Mizoram
 
Answer & Explanation Answer: C) Andhra Pradesh

Explanation:

The Indira Gandhi Zoological Park is located in Vishakapatnam (Vizag) in the state of Andhra Pradesh.

Indira_Gandhi_Zoological_Park_is_located_in1549605716.jpg image

Report Error

View Answer Report Error Discuss

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

3 2885