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

Organisms that depend only on raw plant products are said to be 

A) herbivorous B) vegetarian
C) carnivorous D) omnivorous
 
Answer & Explanation Answer: A) herbivorous

Explanation:

Herbivorous organisms are those that take for their food, plant parts like leaves raw in contrast to vegetarian, which means that plant products are taken raw or after being cooked.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2891
Q:

Phage typing is based on the fact that

A) viruses cause disease B) bacteria and viruses are related
C) bacteria are destroyed by viruses D) bacterial viruses attack specific cells
 
Answer & Explanation Answer: D) bacterial viruses attack specific cells

Explanation:

Phage typing is based on the fact that bacterial viruses attack specific cells. Phage typing is a method used for detecting single strains of bacteria. It is used to trace the source of outbreaks of infections. 

Report Error

View Answer Report Error Discuss

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

1 2890
Q:

Pain controlling chemicals in the body are called

A) Endorphins B) Neural regulators
C) Androgens D) Histamines
 
Answer & Explanation Answer: A) Endorphins

Explanation:

Endorphins are called pain controlling chemicals in the body.

Report Error

View Answer Report Error Discuss

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

3 2890
Q:

The Ministry of Information & Broadcasting on 27 March 2017 launched an online film certification system that is expected to make the CBFC paperless and transparent. What is the name given to this ambitious system ?

A) E-Certify B) E-Cinepramaan
C) E-Cinema D) E-Cineboard
 
Answer & Explanation Answer: B) E-Cinepramaan

Explanation:

‘E-Cinepramaan’ is the name of the online film certification system (OFCS) that was launched by Union Information & Broadcasting Minister Venkaiah Naidu on 27 March 2017.

– This online system is being seen as a big step towards making the Central Board for Film Certification (CBFC) paperless and transparent, enabling effective monitoring and real-time progress tracking for applicants.

– E-Cinepramaan will enable producers to track the status of their application online and would be inform them through SMSes and e-mails about any required action. The system also has inbuilt alerts to ensure that time-limits are adhered to.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank Clerk

2 2890
Q:

Font size is measured in

A) pixels B) points
C) didos D) percents
 
Answer & Explanation Answer: B) points

Explanation:

In computers, generally Font size is measured in points (pt).

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 2889
Q:

The first female to take over the controls of a NASA spaceship is

A) Wilkie Collins B) Eileen Collins
C) Colette D) Kim Clijsters
 
Answer & Explanation Answer: B) Eileen Collins

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

0 2889
Q:

" World Water Day " is celebrated on _____

A) 23 rd March B) 24 th March
C) 22 nd March D) 21 st March
 
Answer & Explanation Answer: C) 22 nd March

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk

1 2888