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

What is FtDisk?

Answer

It is a fault tolerance disk driver for Windows NT.

Report Error

View answer Workspace Report Error Discuss

1 2272
Q:

Which of the following causes adiabatic temperature changes in atmosphere?

A) Deflection and advection B) Latent heat of condensation
C) Expansion and compression of the air D) Partial absorption of solar radiation by the atmosphere
 
Answer & Explanation Answer: C) Expansion and compression of the air

Explanation:

Application of temperature changes in the atmosphere is in adiabatics, or temperature change which are caused by compressing or allowing air to expand.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 2272
Q:

Who has been appointed as an Executive Director in the World Bank in the US ?

A) S Aparna B) Ashok Lavasha
C) Rahul Verma D) S C Garg
 
Answer & Explanation Answer: A) S Aparna

Explanation:
Report Error

View Answer Report Error Discuss

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

5 2272
Q:

Fohn is a localwind of _____

A) Canada B) Switzerland
C) Northern Italy D) West Africa
 
Answer & Explanation Answer: B) Switzerland

Explanation:

In Europe, Fohn winds are prevalent in Swiss Valleys

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2271
Q:

Which cartoon characters were created by William Hanna and Joseph Barbara in 1940?

A) Oswald & Noddy B) Tom & Jerry
C) Mickey mouse & Sylvester D) Donald duck & Tweety
 
Answer & Explanation Answer: B) Tom & Jerry

Explanation:

Tom Cat and Jerry Mouse were the two cartoon characters created by William Hanna and Joseph Barbara in 1940.

Report Error

View Answer Report Error Discuss

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

3 2270
Q:

Which of the following does NOT describe a musical motive?

A) A melodic or rhythmic fragment. B) The reason for playing softly.
C) A short musical idea. D) The basis for development in a musical piece.
 
Answer & Explanation Answer: B) The reason for playing softly.

Explanation:

"The reason for playing softly" is not a motive. Motives are the building blocks for large forms composed during the common practice period and, for some, beyond. Composers who used motives would include Beethoven, Mozart, Schubert, Mendelssohn and Brahms.

Report Error

View Answer Report Error Discuss

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

1 2270
Q:

How many bit combination are there in a byte?

Answer

Byte contains 8 combinations of bits.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2270