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

How do you get more retailers / customers for your business? What are the steps you would take?

Answer

Applicant should answer that being in a wholesale market, he/she would plan and direct advertising and promotional activities to attract more retailer suppliers. Promotional activities like posters, contests, coupons, give-away to create extra interest in the purchase of a product or services from customers or retailers.

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

1 2822
Q:

During which process is water produced?

A) Acetyl COA formation B) Electron transport chain
C) Alcohol fermentation D) citric acid cycle
 
Answer & Explanation Answer: B) Electron transport chain

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2822
Q:

Which of the following terms is used to describe as computer  Malware ?

A) Spartan B) Persian
C) Roman D) Trojan
 
Answer & Explanation Answer: D) Trojan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 2822
Q:

How do we now Know the company founded as the Battlecreek Toasted Cornflake Company in 1906?

Answer

Kellogg's

Report Error

View answer Workspace Report Error Discuss

0 2822
Q:

Which one of the following river valleys of India is under the influence of intensive gully erosion?

A) Kosi B) Chambal
C) Damodar D) Brahmaputra
 
Answer & Explanation Answer: B) Chambal

Explanation:

The Chambal's lower course is lined by belt of badland gullies resulting from accelerated soil erosion and is the site of a major projectin soil conservation.Chambal Project is a joint project from both Madhya Pradesh and Rajasthan government, which aims at harvesting the Chambal River for irrigation, power prevention and control of soil erosion in the valley

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

5 2821
Q:

I come in different colors and shapes. Some parts of me are curvy some are straight. You can put me anywhere you like but there is only one right place for me. What am I?

Answer

A Jig saw puzzle pieces are in different colors which have different shapes. 


You can put it anywhere you like but there is only one right place for it to be fit in it.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: TOEFL , GRE , CAT , Bank Exams , AIEEE
Job Role: IT Trainer , Bank PO , Bank Clerk , Analyst

4 2821
Q:

Which organelle is the control center of a cell?

A) Nucleus B) Cytoplasm
C) Cell membrane D) endoplasmic reticulum
 
Answer & Explanation Answer: A) Nucleus

Explanation:

Nucleus serves as the control center for cell metabolism and reproduction.

Report Error

View Answer Report Error Discuss

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

2 2821