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

The SQL keyword BETWEEN is used:

A) for ranges B) as a wildcard
C) to limit the columns displayed D) All the above
 
Answer & Explanation Answer: A) for ranges

Explanation:

In SQL, BETWEEN Keyword is used for ranges like Number Ranges, Date Ranges, etc...

Report Error

View Answer Report Error Discuss

0 2599
Q:

What is the basic foundation of neoclassical literature?

A) Artistic values of ancient Greece and Rome B) Puritan philosophy
C) Enlightenment theory D) Anti-Renaissance thought
 
Answer & Explanation Answer: A) Artistic values of ancient Greece and Rome

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2599
Q:

The act of formally approving something is known as Arbitration.

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

Explanation:

The act of formally approving something is known as Ratification.

Report Error

View Answer Workspace Report Error Discuss

2 2599
Q:

In which city Indian Railways has installed Asia’s largest Solid State Interlocking (SSI) system?

A) Kolkata B) Lucknow
C) Hyderabad D) Kharagpur
 
Answer & Explanation Answer: D) Kharagpur

Explanation:
Report Error

View Answer Report Error Discuss

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

7 2598
Q:

What Is EBIDTA?

Answer

EBITDA stands for earnings before interest, taxes, depreciation, and amortization. EBITDA came into wide use among private capital firms, wanting to calculate what they should pay for a business.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

0 2598
Q:

How many periods in National Hockey League?

A) 2 B) 3
C) 4 D) 5
 
Answer & Explanation Answer: B) 3

Explanation:

National Hockey League game is divide into 3 Periods each of 20 minutes. During the regular season, if the game ends in a tie, a 5 minute, sudden death overtime is played. In the playoffs, the overtime is 20 minutes long.

Report Error

View Answer Report Error Discuss

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

12 2598
Q:

Where does hair not grow on the human body?

A) sole of feet B) palms
C) lips D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Hair grows everywhere on the skin except palms, sole of feet and lips on the human body. Hair is modified type of skin.

where_does_hair_not_grow_on_the_human_body1544865865.jpg image

Report Error

View Answer Report Error Discuss

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

3 2597