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

When someone clicks your ad, the actual amount you’re charged will be

A) The minimum needed to hold your ad position, under the maximum cost-per-click limit B) The minimum needed to hold your ad position or 50% of your maximum cost-per-click bid, whichever is greater
C) The minimum needed to hold your ad position but never more than 120% of your maximum cost-per-click bid, whichever is greater D) The minimum needed to hold your ad position but never less than 50% of your maximum cost-per-click bid, whichever is greater
 
Answer & Explanation Answer: A) The minimum needed to hold your ad position, under the maximum cost-per-click limit

Explanation:

When_someone_clicks_your_ad,_the_actual_amount_you’re_charged_will_be1551856891.png image

When someone clicks your ad, the actual amount you’re charged will be " The minimum needed to hold your ad position, under the maximum cost-per-click limit ".

Report Error

View Answer Report Error Discuss

4 2447
Q:

The process of bones increasing in width is known as

A) appositional growth B) concentric growth
C) closing of the epiphyseal plate D) long bones reaching adult length and width
 
Answer & Explanation Answer: A) appositional growth

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2446
Q:

Stress is a factor that contributes to heart disease risk.

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

Explanation:

True, poorly controlled stress and anger can lead to heart attacks and strokes.

Report Error

View Answer Workspace Report Error Discuss

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

2 2446
Q:

Which type of weathering creates karst topography?

A) Chemical B) Physical
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) Chemical

Explanation:

Karst topography is created by the chemical weathering of the rocks such as limestone, dolomite etc...

Report Error

View Answer Report Error Discuss

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

7 2446
Q:

When you need me, you throw me away. But when you're done with me, you bring me back. What am I ?

Answer

An Anchor.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams
Job Role: Bank PO , Bank Clerk

10 2445
Q:

What is meant by Maskable interrupts?

Answer

An interrupt that can be turned off by the programmer is known as Maskable interrupt.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2444
Q:

Fiords abound the coast of

A) Sweden B) France
C) Norway D) German
 
Answer & Explanation Answer: C) Norway

Explanation:

Fiords are along narrow inlets into the sea-coast with steep sides. It usually occurs along the coast of a mountainous region.It has been formed by glacial action.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2444