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

What is name of capital of MARSHALL ISLANDS ?

A) Tunis B) Accra
C) Tripoli D) Majuro
 
Answer & Explanation Answer: B) Accra

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2593
Q:

The energy of a photon, whose momentum is 10 MeV/c, where c is the speed of light, is given by

A) 10 MeV B) 100 MeV
C) 1 MeV D) 0.1 MeV
 
Answer & Explanation Answer: A) 10 MeV

Explanation:

A photon’s relativistic momentum is given by the equation,E = pc where p is the momentum.

P = 10 MeV/c

So, E = 10 MeV

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 2591
Q:

Which of the following Schemes was launched to promote basic education in India and attract children in School going age to attend the classes?

A) Pulse Polio Abhiyan B) Operation Flood
C) Mid-Day Meal Schema D) Operation Black Board
 
Answer & Explanation Answer: C) Mid-Day Meal Schema

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 2591
Q:

Environmental Science is the study of

A) Geography B) Physics
C) Biology D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

environmental_science_is_the_study_of1549343122.png image

Environmental science is a field that integrates physical, biological and information sciences to the study of the environment, and the solution of environmental problems. This emerged from the fields of natural history and medicine during the Enlightenment.

 

In brief, it is a scientific study of the natural world and how it is influenced by people.

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

3 2591
Q:

Finger like ends of the fallopian tubes are called

A) Fimbriae B) Cysts
C) Papillae D) Labia
 
Answer & Explanation Answer: A) Fimbriae

Explanation:

The fimbriae of the uterine tube, also known as fimbriae tubae, are small, fingerlike projections at the end of the fallopian tubes, through which eggs move from the ovaries to the uterus.

The fimbriae are connected to the ovary.

Report Error

View Answer Report Error Discuss

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

4 2591
Q:

What is the gram formula mass of K2CO3?

A) 147 B) 138
C) 129 D) 116
 
Answer & Explanation Answer: B) 138

Explanation:

The gram formula mass of a compound is nothing but the molar mass.

The molar mass of K2CO3 (Potassium Carbonate) is given by

Atomic weights of individual elements are

 

K (Potassium) = 39 g

C (Carbon) = 12 g

O (Oxygen) = 16 g

 

Hence, that of K2CO3 = 39(2) + 12 + 16(3)

= 78 + 12 + 48

= 138.

Report Error

View Answer Report Error Discuss

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

2 2591