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

IQTA system abolished by

A) Illtumish B) Bin Tughluq
C) Alauddin Khalji D) None of the above
 
Answer & Explanation Answer: C) Alauddin Khalji

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2247
Q:

A voltaic cell converts chemical energy to

A) Heat energy B) Electrical energy
C) Mechanical energy D) Light energy
 
Answer & Explanation Answer: B) Electrical energy

Explanation:

A galvanic cell is also known as voltaic cell provides electrical energy from the chemical energy.

 

a_voltaic_cell_converts_chemical_energy_to1558088421.png image

Report Error

View Answer Report Error Discuss

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

4 2247
Q:

Which material provides warmth even when wet?

A) Cotton B) Wool
C) Nylon D) Silk
 
Answer & Explanation Answer: B) Wool

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2246
Q:

A word i know, six letters it contains, subtract just one and twelve remains. What is it?

Answer

DOZENS.


If we remove 'S' from it, it is DOZEN which tells that 12.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

2 2246
Q:

When is international day for the Elimination of violence against women , recognized by the UN is observed?

A) December 11 B) July 11
C) November 25 D) August 9
 
Answer & Explanation Answer: C) November 25

Explanation:
Report Error

View Answer Report Error Discuss

2 2246
Q:

A conception of right and wrong is

Answer

A conception of right and wrong is the definition of Ethics.


ethics1532426546.jpg image


Ethics are societal norms adopted by a group which deals with the fundamental human relation ships.

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2245
Q:

Plants are photosynthetic autotrophs.

What does this mean?

Answer

Plants are photosynthetic autotrophs, which means that they are able to produce their own food through the process called photosynthesis.


 


In photosynthesis, plants use light, water, and carbon dioxide to create glucose, which they convert to cellulose and use to make new cells.


 


Hence, that is why, Plants are called photosynthetic autotrophs.

Report Error

View answer Workspace Report Error Discuss

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

0 2244