Questions

Q:

Which of the following is a secondary storage device?

A) ALU B) Disc
C) Projector D) All of the above
 
Answer & Explanation Answer: B) Disc

Explanation:
Report Error

View Answer Report Error Discuss

3 2680
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 2679
Q:

Which company was a monopoly during the gilded age?

A) Carnegie Steel B) Microsoft
C) Allegheny Steel D) AT&T
 
Answer & Explanation Answer: A) Carnegie Steel

Explanation:

Monopoly is an economic term that describes a single company or entity controlling one hundred percent of the supply of a particular product. Carnegie Steel is one of the argest monopoly of steel industry during the Gilded age.

Report Error

View Answer Report Error Discuss

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

6 2678
Q:

The persistence of learning over time most clearly depends on

A) memory B) visual encoding
C) chunking D) shallow processing
 
Answer & Explanation Answer: A) memory

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2678
Q:

What does microprocessor speed of a computer depends on?

A) bandwidth B) clock speed
C) number of instructions D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The computers microprocessor speed depends on all the factors like clock speed, bandwidth and the number of instructions it processes.

Report Error

View Answer Report Error Discuss

2 2678
Q:

Richest man in Asia 2018?

A) Mukesh Ambani B) Jack Ma
C) Prem Ji D) Lee
 
Answer & Explanation Answer: A) Mukesh Ambani

Explanation:

Indian business magnate Mukesh Ambani topples Jack Ma as Asia’s richest person as he positions Reliance Industries to disrupt the e-commerce space in India.

 

The chairman of India’s refining-to-telecoms conglomerate, Ambani was estimated to be worth US$44.3 billion in July 2018 with the share price of Reliance Industries rising 1.6 per cent to a record 1,099.8 rupees (US$16.05), according to Bloomberg Billionaires Index.

 

Jack Ma’s wealth stood at US$44 billion at the close of trading on the sameday in the US, where the company is listed.

Report Error

View Answer Report Error Discuss

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

5 2678
Q:

A locked file can be

A) modified by user with the correct password B) is used to hide sensative
C) accessed by only one user D) Both B & C
 
Answer & Explanation Answer: C) accessed by only one user

Explanation:

A locked file can be accessed by only one user.

Report Error

View Answer Report Error Discuss

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

2 2677
Q:

Which of the following civilization is associated with 'Achaemenid Empire'?

A) Chinese Civilization B) Iranian Civilization
C) Egyptian Civilization D) Arab Civilization
 
Answer & Explanation Answer: B) Iranian Civilization

Explanation:

In the middle of the 6th centuryB.C, a powerful empire was established in Iran this empire which lasted over two centuries is known as the Achaemenid Empire. The founder of this Empire was Cyrus with his capital at pasargadae. In 539 B.C, cyrus defeated the Babylonians and extended his empire over a vast territory up to Asia Miner. His successor was Darius I (522-486 B.C).

Report Error

View Answer Report Error Discuss

Filed Under: World History

0 2677