Questions

Q:

Which of these following missiles is made by together India and Russia?

A) Agni B) Prudhvi
C) Brahmas D) Akash
 
Answer & Explanation Answer: C) Brahmas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 2755
Q:

Write a c program for quick sort.

Answer

#include<stdio.h>

void quicksort(int [10],int,int);

int main(){
  int x[20],size,i;

  printf("Enter size of the array: ");
  scanf("%d",&size);

  printf("Enter %d elements: ",size);
  for(i=0;i<size;i++)
    scanf("%d",&x[i]);

  quicksort(x,0,size-1);

  printf("Sorted elements: ");
  for(i=0;i<size;i++)
    printf(" %d",x[i]);

  return 0;
}

void quicksort(int x[10],int first,int last){
    int pivot,j,temp,i;

     if(first<last){
         pivot=first;
         i=first;
         j=last;

         while(i<j){
             while(x[i]<=x[pivot]&&i<last)
                 i++;
             while(x[j]>x[pivot])
                 j--;
             if(i<j){
                 temp=x[i];
                  x[i]=x[j];
                  x[j]=temp;
             }
         }

         temp=x[pivot];
         x[pivot]=x[j];
         x[j]=temp;
         quicksort(x,first,j-1);
         quicksort(x,j+1,last);

    }
}

Output:
Enter size of the array: 5
Enter 5 elements: 3 8 0 1 2
Sorted elements: 0 1 2 3 8

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2755
Q:

Which country won the Cricket World cup in 2011

A) Sri Lanka B) Australia
C) Pakistan D) India
 
Answer & Explanation Answer: D) India

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 2754
Q:

If there is a lock on an adjacent key, an insert will fail if the isolation level is set to what?

A) committed read B) repeatable read
C) share read D) indexed read
 
Answer & Explanation Answer: B) repeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2754
Q:

Select the correct statement about the ureters.

A) The ureter is innervated by parasympathetic nerve endings only. B) Ureters contain sphincters at the entrance to the bladder to prevent the backflow of urine.
C) The epithelium is stratified squamous like the skin, which allows a great deal of stretch. D) The ureters are capable of peristalsis like that of the gastrointestinal tract.
 
Answer & Explanation Answer: D) The ureters are capable of peristalsis like that of the gastrointestinal tract.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

2 2754
Q:

Which chemical bond most likely stores the most energy?

A) Single bond B) Double bond
C) Both A & B D) None of the above
 
Answer & Explanation Answer: B) Double bond

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2753
Q:

The U-shaped skyscraper ‘The Big Bend’ will be build in which city ?

A) New York B) Florida
C) Texas D) California
 
Answer & Explanation Answer: A) New York

Explanation:

The design plans for the U-shaped skyscraper ‘The Big Bend’ in New York, hailed as the world’s longest building, have been revealed. The 4,000-foot long building will feature an elevator system that can travel in curves, horizontally and in loops.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

3 2753
Q:

What is one example of a closed economy?

A) Brazil B) China
C) Pakistan D) India
 
Answer & Explanation Answer: A) Brazil

Explanation:

Brazil is one example of a closed economy in the given options. 

A closed economy is one that has no trade activity with outside economies. A closed economy is self-sufficient, which means no imports come into the country and no exports leave the country. A closed economy's intent is to provide domestic consumers with everything they need from within the country's borders.

Report Error

View Answer Report Error Discuss

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

1 2753