Questions

Q:

Write a c program for selection sort.

Answer

include<stdio.h>
int main(){

  int s,i,j,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=0;i<s;i++){
      for(j=i+1;j<s;j++){
           if(a[i]>a[j]){
               temp=a[i];
              a[i]=a[j];
              a[j]=temp;
           }
      }
  }

  printf("After sorting is: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 4 5 0 21 7
The array after sorting is:  0 4 5 7 21

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2468
Q:

The latitude which passes through Sikkim also passes through _____.

A) Haryana B) Rajasthan
C) Uttarakhand D) Himachal Pradesh
 
Answer & Explanation Answer: B) Rajasthan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 2468
Q:

In India, some of the Fundamental Rights can be suspended during of

A) Festivals B) Elections
C) Wars D) Floods
 
Answer & Explanation Answer: C) Wars

Explanation:

During any emergency of wars, some of the Fundamental Rights can be suspended that is what mentioned in constitution of India.

Report Error

View Answer Report Error Discuss

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

7 2468
Q:

Acceleration is the rate of change of

A) Speed B) Velocity
C) Jerk D) Jounce
 
Answer & Explanation Answer: B) Velocity

Explanation:

The rate of change of velocity is called as Acceleration.

Report Error

View Answer Report Error Discuss

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

10 2468
Q:

Which is not true about the Cabinet?

A) It came about to fill a need. B) It is not mentioned in the Constitution.
C) It is mentioned in Article II of the Constitution. D) It has grown over time.
 
Answer & Explanation Answer: C) It is mentioned in Article II of the Constitution.

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2467
Q:

Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Prefix Notation

Answer

Prefix Notation:


^ - * +ABC - DE + FG

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2467
Q:

What is cache-coherency?

Answer

In a multiprocessor system there exist several caches each may containing a copy of same variable A. Then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cache-coherency.

Report Error

View answer Workspace Report Error Discuss

1 2467
Q:

Select the antonym of
frazzle

A) prostration B) vigour
C) enervation D) lassitude
 
Answer & Explanation Answer: B) vigour

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2467