Questions

Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

  int i,j,s,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=1;i<s;i++){
      temp=a[i];
      j=i-1;
      while((temp<a[j])&&(j>=0)){
      a[j+1]=a[j];
          j=j-1;
      }
      a[j+1]=temp;
  }

  printf("After sorting: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2909
Q:

A person who pretends to be what he is not?

A) Posthumous B) Glutton
C) Imposter D) Rogue
 
Answer & Explanation Answer: C) Imposter

Explanation:

A person who pretends to be what he is not is an Imposter.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 2909
Q:

Alcohol is a stimulant. true or false

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

Alcohol is a drug.

Report Error

View Answer Workspace Report Error Discuss

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

2 2908
Q:

Who Built The Suez Canal?

A) Theodore Roosevelt B) Ferdinand de Lesseps
C) Robert Mills D) James Hoban
 
Answer & Explanation Answer: B) Ferdinand de Lesseps

Explanation:

The Suez Canal in Egypt, is a 101 mile long canal that connects the Mediterranean Sea with the Gulf of Suez, a northern branch of the Red Sea. It was built in 1869 by Ferdinand de Lesseps.

Report Error

View Answer Report Error Discuss

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

6 2907
Q:

Which of the following CANNOT be considered a single phase?

A) a heterogeneous mixture B) a pure solid
C) a pure liquid D) a homogeneous mixture
 
Answer & Explanation Answer: A) a heterogeneous mixture

Explanation:

A pure solid and a pure liquid are definitely a single phase because they are so united, or homogeneous. This leads to a homogeneous mixture also being a single phase.

 

Hence, the option that cannot be considered a single phase is A. a heterogeneous mixture.

Report Error

View Answer Report Error Discuss

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

5 2907
Q:

Iveco, Part of the Fiat group, holds 15 per cent stake in an Indian automobile company. The  company in the question is 

A) AShok Leyland B) Hindustan Motors
C) Tata Motors D) Eitcher
 
Answer & Explanation Answer: A) AShok Leyland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

7 2907
Q:

When is cladistics more useful than linnaean taxonomy?

A) nomenclature B) classification
C) identification D) evolutionary relationship
 
Answer & Explanation Answer: D) evolutionary relationship

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2906
Q:

Which is the longest National Highway in India?

A) NH - 47 B) NH - 4
C) NH - 7 D) NH - 44
 
Answer & Explanation Answer: D) NH - 44

Explanation:

NH - 44 covering Srinagar to Kanyakumari is the longest National Highway in India by the NHDP. It covers a distance of 3,745 Kms. It was previously known as NH - 7.

Report Error

View Answer Report Error Discuss

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

1 2906