Searching for "insertion"

Q:

A duster is of dimension 5x5x7 all in cms,  is sinked into a cylindrical vessel of radius 5 cm and height 10 cm. After insertion the level of the water is inccresed by 2.14 cm. Then by what percentage the part of the duster is above the layer ?

A) 96 % B) 4 %
C) 97 % D) 3 %
 
Answer & Explanation Answer: B) 4 %

Explanation:

Imension of the duster is assumed as 5x5x7 cm3

Volume of the duster below the water layer
= volume of water increased
= πxrxrxh = 3.14×52×2.14 ≈ 168 cm3

Total volume of the duster = 5×5×7 = 175 cm3

Percentage of the duster part below the layer = 168×100/175 = 96%

Percentage of the duster part above the layer = 4%

Report Error

View Answer Report Error Discuss

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

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