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 2439
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 2438
Q:

If the current flowing through a circuit is 0.6 A for 6 mins, the amount of electric charge flowing through it is .......

A) 360C B) 216 C
C) 60 C D) 36 C
 
Answer & Explanation Answer: B) 216 C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams

0 2438
Q:

How would you obtain segment and offset addresses from a far address of a memory location?

Answer

#include "dos.h"


main()


{


    Char far *scr = ( char far *) 0xB8000000;


    Char *seg, *off;


    Seg = (char *) FP_SEG ( scr );


    Off = ( char *) FP_OFF ( scr );


}


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2437
Q:

The UNESCO World Heritage Site, Victoria Memorial Hall is located in which Indian city?

A) Mumbai B) Chennai
C) Kolkata D) Delhi
 
Answer & Explanation Answer: C) Kolkata

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

6 2437
Q:

 Which isolation level does a database without logging default to?

A) committed read B) dirty read
C) mode ANSI D) repeatable read
 
Answer & Explanation Answer: B) dirty read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2436
Q:

Project Procurement Management - Processes

Describe the Inputs, Tools and Techniques , Outputs included in the Select Sellers?

Answer

I. Inputs



  • Organizational process assets

  • Procurement management plan

  • Evaluation criteria

  • Procurement document package

  • Proposals

  • Qualified sellers list

  • Project management plan


                 - Risk register


                 - Risk related contractual agreements


II. Tools and Techniques



  • Weighting system

  • Independent estimates

  • Screening system

  • Contract negotiation

  • Seller rating systems

  • Expert judgment

  • Proposal evaluation techniques


III. Outputs



  • Selected sellers

  • Contract

  • Contract management plan

  • Resource availability

  • Procurement management plan (updates)

  • Requested changes

Report Error

View answer Workspace Report Error Discuss

0 2436
Q:

Every hot object emits _________________

A) X -­ rays B) Visible light
C) Infrared rays D) Ultraviolet rays
 
Answer & Explanation Answer: C) Infrared rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

4 2436