Questions

Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

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

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

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2915
Q:

Iveco, Part of the Fiat group, holds 15 per cent stake in an Indian automobile company. The  company in the question is 

A) AShok Leyland B) Hindustan Motors
C) Tata Motors D) Eitcher
 
Answer & Explanation Answer: A) AShok Leyland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

7 2914
Q:

which of the following represents a set of properties that guarantee that database transactions are processed reliably in computer science ?

A) Buffer Cache B) ACID
C) Foreign Key D) None
 
Answer & Explanation Answer: B) ACID

Explanation:

ACID means (Atomicity, Consistency, Isolation, Durability) is a set of properties of database transactions intended to guarantee validity even in the event of errors, power failures, etc.

In the context of databases, a sequence of database operations that satisfies the ACID properties and, thus, can be perceived as single logical operation on the data, is called a transaction. For example, a transfer of funds from one bank account to another, even involving multiple changes such as debiting one account and crediting another, is a single transaction.

Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification
Job Role: Analyst , IT Trainer

13 2914
Q:

The two broad categories of software are

A) Drivers and MS office B) Application and Spreadsheets
C) System and Application D) Utility programs and System
 
Answer & Explanation Answer: C) System and Application

Explanation:

The two broad categories of software in a computer are

1. System software
2. Application software

 

the_two_broad_categories_of_software_are1560849803.jpg image

System software controls how the system works and enables user to access all of the system hardware and application software

The OS, utility programs and drivers come under system software.

 

Application software are software used by the user to perform specific task. They are installed according to the user's requirements.

The word processor, web browser, players, spreadsheets etc... come under this application software.

Report Error

View Answer Report Error Discuss

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

3 2914
Q:

Harshavardhan's Vallabhi conquest is found in which of the following inscriptions?

A) Aihole Pillar Inscription B) Junagadh Inscription
C) Navsari Copperplate Inscription D) Damodarpur copper plate Inscription
 
Answer & Explanation Answer: C) Navsari Copperplate Inscription

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2913
Q:

Quality of a musical note depends on

A) Fundamental frequency B) Amplitude of the wave
C) Harmonics present D) Velocity of sound in the medium
 
Answer & Explanation Answer: C) Harmonics present

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2913
Q:

What has 4 Eyes But cannot see?

Answer

What has 4 Eyes But cannot see is Mississippi.


The wording of Mississippi has 4 'i''s. But it can't see.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer , Project Manager

8 2913
Q:

A Big Draw meaning

A) a lovely spectacle B) a game without any result
C) a huge attraction D) a keen contest
 
Answer & Explanation Answer: C) a huge attraction

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2913