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

If a customer is agitated, how would you handle that?

Answer

Answer this with confidence. Look straight into the eyes of the interviewer and tell them that the path we chose prohibits us from expressing our anger. Anger to anger isn’t a healthy response. Instead, calmness and composure is a must.

Report Error

View answer Workspace Report Error Discuss

0 2002
Q:

Which airport becomes as International Airport recently in 2017 ?

A) Chennai B) Kolkata
C) Vijayawada D) Patna
 
Answer & Explanation Answer: C) Vijayawada

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2002
Q:

What is the HELLO protocol used for?

Answer

The HELLO protocol uses time instead of distance to determine optimal routing. It is an alternative to the Routing


Information Protocol.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

2 2002
Q:

The Simlipal biosphere reserve is located in which Indian state?

 

A) Goa B) Chandigarh
C) Odisha D) Rajasthan
 
Answer & Explanation Answer: C) Odisha

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 2002
Q:

Which of the following can be used as lamp oil?

A) Lipids B) Carbohydrates
C) Proteins D) Nucleic acids
 
Answer & Explanation Answer: A) Lipids

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2001
Q:

Where was the first ODI match played in INDIA

A) Ahmedabad B) New Delhi
C) Kolkata D) Mumbai
 
Answer & Explanation Answer: A) Ahmedabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 2001
Q:

Leverage enables currency traders to do which of the following?

 

A) Reduce the risk of losing money   B) Force foreign governments to print more money
C) Make large currency trades using small amounts of money D)  Buy currencies before they are available to the public
 
Answer & Explanation Answer: C) Make large currency trades using small amounts of money

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 2000