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

Which of the following commands will allow a Linux on iSeries administrator to quickly scan backup tapes for files saved via a tar command on a Linux system?

A) The Linux command mt B) The Linux command cpio
C) The OS/400 command RST option(*print) D) The OS/400 command DSPTAP option(*savrst)
 
Answer & Explanation Answer: B) The Linux command cpio

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2916
Q:

The two broad categories of software are

A) Drivers and MS office B) Application and Spreadsheets
C) System and Application D) Utility programs and System
 
Answer & Explanation Answer: C) System and Application

Explanation:

The two broad categories of software in a computer are

1. System software
2. Application software

 

the_two_broad_categories_of_software_are1560849803.jpg image

System software controls how the system works and enables user to access all of the system hardware and application software

The OS, utility programs and drivers come under system software.

 

Application software are software used by the user to perform specific task. They are installed according to the user's requirements.

The word processor, web browser, players, spreadsheets etc... come under this application software.

Report Error

View Answer Report Error Discuss

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

3 2916
Q:

Quality of a musical note depends on

A) Fundamental frequency B) Amplitude of the wave
C) Harmonics present D) Velocity of sound in the medium
 
Answer & Explanation Answer: C) Harmonics present

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2916
Q:

Another name for the activated complex is

A) Transmission state B) Energy barrier
C) Collision group D) Transition state
 
Answer & Explanation Answer: D) Transition state

Explanation:

The minimum amount of energy required for a particular reactants to convert into products and is called as Activation Energy.

 

Another_name_for_the_activated_complex_is1559538681.jpg image

 

This activation complex is also termed as Transition State because according to Transition State Theory at transition state the existing bonds tend to increase in length and become weaken while, the new forming bonds tend to decrease in length and start becoming stronger.

Hence, the activated complex is in transition between reactants and products.

Report Error

View Answer Report Error Discuss

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

3 2915
Q:

Which of the following is an instance of informative speaking?

A) a student sharing ideas about leadership based on a book she has read B) a student on stage telling jokes during the intermission of a play
C) a student urging an instructor to reconsider the due date for an assignment D) All of the above
 
Answer & Explanation Answer: A) a student sharing ideas about leadership based on a book she has read

Explanation:

Informative Speaking is a 10-minute presentation written and performed by the student. Informative requires students to balance that content with delivery and style.

Here in the given options, option A) a student sharing ideas about leadership based on a book she has read, is an instance of informative speaking.

 

Students in Informative must be articulate, engaging, and smooth with their delivery at both a vocal and physical level.

Report Error

View Answer Report Error Discuss

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

2 2914
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 2914
Q:

Which poet first popularized the sonnet form?

A) Edmund Spencer B) Francesco Petrarch
C) Shakespeare D) None of the above
 
Answer & Explanation Answer: B) Francesco Petrarch

Explanation:

The sonnet is a fourteen-line poem written in iambic pentameter, which employ one of several rhyme schemes and adhere to a tightly structured thematic organization. Francesco Petrarch first popularized the sonnet form and after that many others like Shakespeare, Edmund Spencer and many other started that.

Report Error

View Answer Report Error Discuss

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

2 2914