Questions

Q:

What is hard disk and what is its purpose?

Answer

Hard disk is the secondary storage device, which holds the data in bulk, and it holds the data on the magnetic medium of the disk.Hard disks have a hard platter that holds the magnetic medium, the magnetic medium can be easily erased and rewritten, and a typical desktop machine will have a hard disk with a capacity of between 10 and 40 gigabytes. Data is stored onto the disk in the form of files.

Report Error

View answer Workspace Report Error Discuss

0 2851
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 2850
Q:

The chemical name of common salt is

A) Sodium Chloride B) Potassium Nitrate
C) Sodium Nitrate D) Potassium Chloride
 
Answer & Explanation Answer: A) Sodium Chloride

Explanation:

The chemical name of common salt is Sodium Chloride with a chemical formula NaCl.

Report Error

View Answer Report Error Discuss

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

2 2850
Q:

What was the motto of the organization BSF?

A) Duty unto Death B) Service Before Self
C) Protection & Security D) Service and Loyalty
 
Answer & Explanation Answer: A) Duty unto Death

Explanation:

BSF - Border Security Force

 

The motto of the organization BSF is "Duty unto Death."

Report Error

View Answer Report Error Discuss

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

2 2850
Q:

Who is the new president and CEO of Nokia?

Answer

Rajeev Suri

Report Error

View answer Workspace Report Error Discuss

2 2849
Q:

For which one of the following items Tiruppur is well known as a huge exporter to many parts of the world?

 

A) Gems and Jewellery B) Leather goods
C) Knitted garments D) Handicrafts
 
Answer & Explanation Answer: C) Knitted garments

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

19 2848
Q:

Support staff in the office of the president include

A) Repoters B) Cabinet members
C) Administrators D) All of the above
 
Answer & Explanation Answer: C) Administrators

Explanation:

Support staff in the office of the president include Administrators.

Support_staff_in_the_office_of_the_president_include1539257220.jpg image

Report Error

View Answer Report Error Discuss

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

1 2848
Q:

The term central nervous system refers to the

A) brain and spinal cord B) autonomic and peripheral nervous systems
C) brain and cranial nerves D) brain, spinal cord, and cranial nerves
 
Answer & Explanation Answer: A) brain and spinal cord

Explanation:

The central nervous system is that part of the nervous system that consists of the brain and spinal cord. The central nervous system (CNS) is one of the two major divisions of the nervous system. The other is the peripheral nervous system (PNS) which is outside the brain and spinal cord.

central_nervous_system1533036656.jpg image

Report Error

View Answer Report Error Discuss

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

4 2847