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

The first female to take over the controls of a NASA spaceship is

A) Wilkie Collins B) Eileen Collins
C) Colette D) Kim Clijsters
 
Answer & Explanation Answer: B) Eileen Collins

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

0 2903
Q:

In the below puzzle, a word starts and ends with the same letter. Can you figure out what the word is?

_otato_

Answer

rotator

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles

18 2902
Q:

Most highly intelligent mammals are

A) Elephants B) Kangaroos
C) Whales D) Dolphins
 
Answer & Explanation Answer: D) Dolphins

Explanation:

Dolphins are the most highly intelligent mammals.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

9 2902
Q:

What is Autosys?

Answer

AutoSys is an automated job control system for scheduling, monitoring, and reporting. These jobs can reside on any AutoSys-configured machine that is attached to a network.


 


However, in real business, you need to fire jobs not just based on scheduled time, but also based on events (like an arrival of a file), and, based on the success or failure of other jobs. Autosys is a total job scheduling solution that allows you to define these events, dependencies, time schedules, alerts, etc, making it a complete data center automation tool.

Report Error

View answer Workspace Report Error Discuss

12 2902
Q:

A dynamometer wattmeter can be used for

A) Only Direct Current B) Only Active Current
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

A dynamometer wattmeter can be used for measuring both A.C and D.C currents.

a_dynamometer_wattmeter_can_be_used_for1553690092.jpg image

Report Error

View Answer Report Error Discuss

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

7 2902
Q:

Which of the following planets is known as Earth's twin?

A) Mars B) Saturn
C) Uranus D) Venus
 
Answer & Explanation Answer: D) Venus

Explanation:

Venus is known as earth's twin because of its closeness to the earth with respect to size, mass(weight) and density.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2901
Q:

Which IT giant has launched learning app 'InfyTQ' for engineering students?

A) GOOGLE B) TCS
C) Infosys D) Cognizant
 
Answer & Explanation Answer: C) Infosys

Explanation:

Infosys has announced the launch of a digital platform offering learning and engagement experiences for engineering students.

InfyTQ is a free platform open to all engineering students in their third and fourth year. The platform encourages holistic development by imparting technical as well as professional skills and helps them become industry ready.

Report Error

View Answer Report Error Discuss

1 2900