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

"Relief of the disabled and unemployable" is listed in the __________ list given in the Seventh Schedule in the Constitution of India.

A) Union B) State
C) Global D) Concurrent
 
Answer & Explanation Answer: B) State

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2426
Q:

During the process of protein synthesis, each trna carries one

A) amino acid B) nucleotide
C) fatty acid D) nucleic acis
 
Answer & Explanation Answer: A) amino acid

Explanation:

During protein synthesis process, each tRNA carries one aminoacid for protein synthesis to the ribosomes.

Report Error

View Answer Report Error Discuss

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

1 2425
Q:

The process of depositing a layer of zinc on iron is called ___________

A) Galvanisation B) Crystallisation
C) Rusting D) Baking
 
Answer & Explanation Answer: A) Galvanisation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

6 2425
Q:

Which one of the following climates is found in coastal areas of California in north America, Central Chile in South America and South-west tip of West Australia?

A) Tropical savanna B) Mediterranean
C) Humid continental D) Low-latitude steppe
 
Answer & Explanation Answer: B) Mediterranean

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 2425
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 2424
Q:

What is the Motto of Indian Army?

A) Service Before Self B) We Protect
C) Duty Unto Death D) Service & Loyalty
 
Answer & Explanation Answer: A) Service Before Self

Explanation:
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

3 2424
Q:

Which of the following pair is matched correctly?

A) Bharatanatyam - Andhra Pradesh B) Kuchipudi - Madhya Pradesh
C) Kathakali - Kerala D) Kathak - Tamil Nadu
 
Answer & Explanation Answer: C) Kathakali - Kerala

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture
Exam Prep: Bank Exams

15 2424