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

What is the major source of dietary sulfur?

A) Proteins B) Carbohydrates
C) Mineral salts D) All of the above
 
Answer & Explanation Answer: A) Proteins

Explanation:

 Protein cantaining foods are the major source of dietary sulfur. Foods like eggs are rich in sulfur content.

Report Error

View Answer Report Error Discuss

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

4 2439
Q:

The light of distant stars is affected by

A) Interstellar Dust B) The Earth's Atmosphere
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2439
Q:

Which becomes the first country to Recognise 'Orphanage Trafficking' as Slavery?

A) Mexico B) Australia
C) Afghanistan D) India
 
Answer & Explanation Answer: B) Australia

Explanation:

the first country to Recognise 'Orphanage Trafficking' as Slavery is Australia.

Report Error

View Answer Report Error Discuss

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

1 2438
Q:

Improve the bracketed part of the sentence.
He jumped off the train while it (had been running).

A) has been running B) ran
C) was running D) No improvement
 
Answer & Explanation Answer: C) was running

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2438
Q:

Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Prefix Notation

Answer

Prefix Notation:


^ - * +ABC - DE + FG

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2438
Q:

The former cricketer/cricketers who was/were inducted into the ICC Cricket Hall of Fame 2018 in Dublin, Ireland

A) Claire Taylor B) Ricky Ponting
C) Rahul Dravid D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Former captains Rahul Dravid of India, Ricky Ponting of Australia and retired England Women wicketkeeper-batter Claire Taylor were inducted into the ICC Cricket Hall of Fame 2018 during a glittering ceremony in Dublin, Ireland.

 

Former Team India captain Rahul Dravid has become the fifth Indian cricketer after Anil Kumble, Sunil Gavaskar, Bishan Singh Bedi and Kapil Dev to be inducted into the ICC Hall of Fame.

Report Error

View Answer Report Error Discuss

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

5 2438
Q:

The place where the river meets the sea is called

A) Delta B) Sediment
C) Tributary D) Estuary
 
Answer & Explanation Answer: D) Estuary

Explanation:

The place where the river meets the sea or ocean is called as Estuary.

Report Error

View Answer Report Error Discuss

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

5 2437