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

Largest district in Bangladesh?

A) Narayangunj B) Chittagong
C) Khagrachari D) Rangamati
 
Answer & Explanation Answer: D) Rangamati

Explanation:

The largest district in Bangladesh is Rangamati. And smallest district is Narayangunj.

Largest_district_in_Bangladesh1554457968.png image

Report Error

View Answer Report Error Discuss

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

5 2909
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 2908
Q:

Which one of the following National Highways is the longest

A) NH-2 B) NH-7
C) NH-8 D) NH-15
 
Answer & Explanation Answer: B) NH-7

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 2908
Q:

Which of the following Indian Universities has topped the list of country's official higher education rankings, recently announced by the HRD Ministry ? 

A) Jawaharlal Nehru University B) Banaras Hindu University
C) IISc-Bengaluru D) Delhi University
 
Answer & Explanation Answer: C) IISc-Bengaluru

Explanation:

The Indian Institute of Sciences (IISc)- Bengaluru has topped the list of best universities of country's official higher education rankings, recently announced by the HRD Ministry.

Report Error

View Answer Report Error Discuss

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

1 2908
Q:

What is the function of an antagonist in a story?

Answer

The antagonist is the negative or opposing force in a story.


It could be a human enemy, or it could be non-human, like an animal or something less tangible, like fear.


 


The antagonist plays an important role in story development.

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , GATE , GRE
Job Role: Analyst , Bank Clerk , IT Trainer

3 2907
Q:

Harshavardhan's Vallabhi conquest is found in which of the following inscriptions?

A) Aihole Pillar Inscription B) Junagadh Inscription
C) Navsari Copperplate Inscription D) Damodarpur copper plate Inscription
 
Answer & Explanation Answer: C) Navsari Copperplate Inscription

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2907
Q:

which of the following has the longest wavelength

A) Infrared radiation B) γ-radiation
C) Ultraviolet radiation D) Visible radiation
 
Answer & Explanation Answer: A) Infrared radiation

Explanation:

Infrared radiation

Report Error

View Answer Report Error Discuss

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

4 2907