Interview Questions

Q:

Write SQL Query to find second highest salary of Employee.

Answer

There are many ways to find second highest salary of Employee in SQL, you can either use SQL Join or Subquery to solve this problem. Here is SQL query using Subquery :


SELECT MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) FROM Employee );

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

2 3813
Q:

Explain storage qualifiers in C++

Answer

i.) Const - This variable means that if the memory is initialised once, it should not be altered by a program. 


ii.) Volatile - This variable means that the value in the memory location can be altered even though nothing in the program code modifies the contents. 


iii.) Mutable - This variable means that a particular member of a structure or class can be altered even if a particular structure variable, class, or class member function is constant.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

1 3811
Q:

Selecting and managing marketing channels :

On what criteria can channel members be evaluated for their proper selection?

Answer

The SCPCA method can be used to evaluate channel members.


a) Sales (S): How much sales each channel member can give within a cetain time frame


b) Cost(C): How much cost would be incurred for each channel?


c) Profitability(P): Which channel can give better profitability to the company?


d) Control(C): Whether company can have better control over its channel members or not.


e) Adaptability (A): Whether the channel alternatives are flexible enough to any changes or not. The channel meeting the objectives of the company is selected

Report Error

View answer Workspace Report Error Discuss

0 3810
Q:

Write a c program for bubble sort.

Answer

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

  int s,temp,i,j,a[20];

  printf("Enter total numbers of elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  //Bubble sorting algorithm
  for(i=s-2;i>=0;i--){
      for(j=0;j<=i;j++){
           if(a[j]>a[j+1]){
               temp=a[j];
              a[j]=a[j+1];
              a[j+1]=temp;
           }
      }
  }

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

  return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 3808
Q:

Loan and Advances of a bank come under the category of______________.

A) Deposits B) Expenditure
C) Liabilities D) Assets
 
Answer & Explanation Answer: D) Assets

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview

2 3803
Q:

What is the difference between characters 23 and x23?

Answer The first one is octal 23, the second is hex 23
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3796
Q:

Explain What is Customer Master record?

Answer

A Customer Master Record is a permanent record that contains key information about a business partner or a material. This information must be entered into the system before any transactions can take place involving the business partner [customer] or a material. Entering all the information about a customer or a material into the system before making transactions insures that subsequent transactions or inquiries will have consistent data and reports and analyses can be done in an orderly way. Master Records can be edited or changed when necessary. Changing master records is frequently called "Maintaining" in SAP

Report Error

View answer Workspace Report Error Discuss

1 3794
Q:

What does inheriatance allows you to do?

A) create a class B) access methods
C) create a hierarchy of classes D) None of the mentioned
 
Answer & Explanation Answer: C) create a hierarchy of classes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

1 3794