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

Compounds are formed as a result of chemica change.

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

Explanation:

TRUE, the compounds are formed as a result of chemical change.

Report Error

View Answer Workspace Report Error Discuss

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

0 3000
Q:

Which of the following is true about compounds?

A) They are substances B) They have properties similar to those of their component elements
C) They can be physically separated into their component elements D) They have compositions that vary
 
Answer & Explanation Answer: A) They are substances

Explanation:

Compounds are substances is true about them.

Report Error

View Answer Report Error Discuss

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

1 2999
Q:

Who was appointed as NASSCOM chairman in April 2017 ?

A) C P. Gurnani B) Raman Roy
C) Smt. Singha D) None
 
Answer & Explanation Answer: B) Raman Roy

Explanation:

The National Association of Software and Services Companies (Nasscom) appointed Raman Roy (Managing Director of Quatrro Global Services) as its chairman for 2017-2018.

 Rishad Premji (Chief Strategy Officer (CSO), Wipro Limited) has been appointed Vice Chairman. Raman Roy has replaced Mr. CP Gurnani.

Report Error

View Answer Report Error Discuss

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

3 2999
Q:

Teens who drink are at risk of

A) HIV and other STDs B) becoming an alcoholic
C) date rape D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

teens_drinking_are_at_risk_of1539257520.jpg image

Teens drinking are at risk of date rape, becoming an alcoholic, HIV and other STDs.

Report Error

View Answer Report Error Discuss

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

1 2999
Q:

UNIVAC is

A) Universal Automatic Computer B) Universal Array Computer
C) Unvalued Automatic Computer D) Unique Automatic Computer
 
Answer & Explanation Answer: A) Universal Automatic Computer

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2999
Q:

Which statement best describes the electronegativity of an element?

A) Electronegativity of an atom is it's ability to produce energy while losing an electron. B) Electronegativity of an atom is it's ability to attract electrons during bond formation.
C) Electronegativity of an atom is it's ability to lose electrons during cation formation. D) Electronegativity of an atom is it's ability to share electrons during a covalent bond formation.
 
Answer & Explanation Answer: B) Electronegativity of an atom is it's ability to attract electrons during bond formation.

Explanation:

Electronegativity, is a chemical property that describes the tendency of an atom to attract a shared pair of electrons (or electron density) towards itself.

Report Error

View Answer Report Error Discuss

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

1 2998
Q:

Cricket is the national game of which country?

A) Australia B) India
C) Canada D) Spain
 
Answer & Explanation Answer: A) Australia

Explanation:

Cricket is the national game of Australia.

Report Error

View Answer Report Error Discuss

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

8 2998