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

Which of these statements is true of the kingdom protista?

A) All are unicellular B) All are hetertrophic
C) All are autotrophic D) All are eukaryotic
 
Answer & Explanation Answer: D) All are eukaryotic

Explanation:

Protists are eukaryotic organisms that cannot be classified as a plant, animal, or fungus. They are mostly unicellular, but some, like algae, are multicellular.

which_of_these_statements_is_true_of_the_kingdom_protista1536211148.jpg image

Kelp, or 'seaweed,' is a large multicellular protist that provides food, shelter, and oxygen for numerous underwater ecosystems.

Report Error

View Answer Report Error Discuss

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

1 2994
Q:

A cappella refers to

A) Literature B) Music
C) Arts D) War
 
Answer & Explanation Answer: B) Music

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2994
Q:

What was one outcome of laissez faire economic policies?

A) Poverty traps that cannot be escaped through free choice B) Monopoly power that emerges naturally in the market and allows businesses to exploit consumers
C) Businesses pay workers low D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Laissez-faire is simply a way to describe a government's hands-off approach to economic policies. This approach was particularly prevalent in the United States at the turn of the 20th century, which led to numerous issues within American manufacturing.

 

There are many outcomes of laissez-faire economic policies. Some of the outcomes of laissez-faire economics were:

* Businesses pay workers low.

* Pollution of air and water.

* Poverty traps that cannot be escaped through free choice. 

* General glut that results from overproduction or underconsumption

* Monopoly power that emerges naturally in the market and allows businesses to exploit consumers. 

* Exploitation of the working class that pushes wages down to subsistence and compels laborers to work in harsh and unsafe conditions. 

* External economies that generate situations where desirable goods are underproduced on the market, and undesirable goods are overproduced on the market. 

* Public goods that are not supplied by the market due to free-rider problems.

Report Error

View Answer Report Error Discuss

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

1 2993
Q:

Select the antonym of
horrify

A) affright B) petrify
C) appall D) soothe
 
Answer & Explanation Answer: D) soothe

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT

0 2993
Q:

What animals eat both producers and consumers?

A) Herbivores B) Omnivores
C) Carnivores D) Tertiary consumers
 
Answer & Explanation Answer: B) Omnivores

Explanation:

Animals and people who eat both animals and plants i.e, both producers and consumers are called omnivores.

Report Error

View Answer Report Error Discuss

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

12 2993
Q:

What is the only chain we can eat ?

Answer

A food chain is the only chain we can eat.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: Bank Exams

3 2993
Q:

A basic concept in economics is that all resources are

A) Valuable B) Limited
C) Renewable D) Allocated
 
Answer & Explanation Answer: B) Limited

Explanation:

The basic concept in economics is that all resources are limited.

Report Error

View Answer Report Error Discuss

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

1 2992