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

The two purines in DNA are

A) Adenine & Thymine B) Thymine & Uracil
C) Guanine & Uracil D) Adenine & Guanine
 
Answer & Explanation Answer: D) Adenine & Guanine

Explanation:

The purines are bases in the DNA. The two purines in DNA are Adenine and Guanine. These two purines forms hydrogen bonds with their complimentary pyrimidines such as Thymine and Cytosine to keep the two rails of the DNA molecule together.

Report Error

View Answer Report Error Discuss

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

3 2427
Q:

What was the strength of Indus economy?

A) Trading B) Agriculture
C) Electricity D) Mining
 
Answer & Explanation Answer: B) Agriculture

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2427
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 2426
Q:

How would you obtain segment and offset addresses from a far address of a memory location?

Answer

#include "dos.h"


main()


{


    Char far *scr = ( char far *) 0xB8000000;


    Char *seg, *off;


    Seg = (char *) FP_SEG ( scr );


    Off = ( char *) FP_OFF ( scr );


}


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2426
Q:

Is boiling water a chemical change?

Answer

No. Boiling water is not a chemical change. Because in this process it doesn't loss its properties. It just changes its state i.e, from liquid state to gaseous.


 


Hence, Boiling water is a Physiacl change and not a chemical change.

Report Error

View answer Workspace Report Error Discuss

0 2425
Q:

What is the name of the bridge between India and Sri Lanka?

A) Adam's Bridge B) Chenab Bridge
C) Tower Bridge D) Golden Gate Bridge
 
Answer & Explanation Answer: A) Adam's Bridge

Explanation:

Adam's Bridge is the name of the bridge between India and Sri Lanka. It is also called as Rama Setu or Rama's Bridge.

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

2 2425
Q:

Analog synthesis refers to a technology based on

A) placing brief digital recordings of live sounds under the control of a synthesizer keyboard. B) interfacing synthesizer equipment.
C) representing data in terms of measurable physical quantities. D) representing physical quantities as numbers.
 
Answer & Explanation Answer: C) representing data in terms of measurable physical quantities.

Explanation:

Analog synthesis uses a mixture of complex sounds that are shaped by filtering. It is based on representing data in terms of measurable physical quantities, in this case sound waves.

Report Error

View Answer Report Error Discuss

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

4 2425