Interview Questions

Q:

What is the output of this program?

#include
        using namespace std;
        struct sec {
            int a;
            char b;
        };
        int main()
        {
            struct sec s ={25,50};
            struct sec *ps =(struct sec *)&s;
            cout << ps->a << ps->b;
            return 0;
        }

A) 252 B) 253
C) 254 D) 262
 
Answer & Explanation Answer: A) 252

Explanation:

In this program, We are dividing the values of a and b, printing it.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 13972
Q:

What is the output of this program?

 #include
       using namespace std;
       int main()
       {
           int arr[] = {4, 5, 6, 7};
           int *p = (arr + 1);
           cout << arr;
           return 0;
       }

A) 4 B) 5
C) address of arr D) 7
 
Answer & Explanation Answer: C) address of arr

Explanation:

As we couted to print only arr, it will print the address of the array.

Report Error

View Answer Report Error Discuss

Filed Under: C++

0 13799
Q:

Which are the main MIS Reports of an accounts department & what the format of preparing the MIS ?

Answer

MIS report is known as Management Information System... regarding the Manpower status of a particular month, place and overall..


It helps the Management in decision making.. like what are the reasons of resignation.. in which area attrition is high.. and so many things to help in decision making.. with the help of MIS you may prepare a lot of reports.. Like annual attrition.. region wise attrition.. region wise manpower.. graphical representation of regions manpower status.. and so on..


You may prepare the same at your end.As it will help you to prepare other such formats too.


I am describing you the contents with sheet wise..


First Sheet - Details of employee


a. E.Code


b. Name of employee


c. Date of birth          


d. Designation


e. CTC


f. Address for communication


g.Permanent address


h. Contact number


i. Blood group


j. Maximum qualification


k. Extra qualification


l.Total Experience


Second Sheet- Salary structure


In this sheet write down the complete salary structure.. and make a column what is salary after any revision


Third Sheet - New Joinees


In this sheet write down the name of New joinees of that month with detail like CTC,  Designation, DOB etc. 


Forth Sheet - Resigned employees


In this sheet write the name of employees who resigned during that particular month with details like name, designation, date of joining, Date of resignation, last working day.


Fifth sheet - Attrition rate


Based on this MIS report, you may find out the attrition report, Qualification analysis reports, team management reports and so on can prepare a number of reports..

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

11 13594
Q:

What is the Debit Balance recovery? How we can recover if we wont have any future transactions from supplier?

Answer

The Debit balance recovery is usually made by raising a credit memo for the regular vendors. However if there are no future transactions from the supplier, we ask the vendor to send the check / make an EFT for the amount due from him.


When payment is made to the wrong vendor or payment made in excess, in that case overpayment has gone to the vendor, So for us it is vendor debit balance.


For debit balance recovery, we can either follow-up with the vendor to send us the excess amount / refund back, or we can adjust that extra amount in future invoices submitted by that vendor


In Case no future transactions, we have to follow-up with the vendor, falling whicch we have to write off this amount.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

14 13547
Q:

What is the full form of the trem WIRE in wire payment ? Explain the process for making and receiving the payment through WIRE?

Answer

There is no specific abbreviation for the term WIRE because when the payment is being made using this option, you will not see the physical movement of funds. It is all electronic. It is just like a current passes through Wire. 


Therefore Electronic movement of funds is campared with WIRE.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

24 13127
Q:

Explain static and dynamic memory allocation with an example each.

Answer

When amount of memory to be allocated is known beforehand i.e. at the the time of compilation, it is known as Static Memory Allocation. Once the memory is allocated statically, it cannot be deallocated during program run. So it leads to wastage of storage space.


Example:


int A[100];


 


When amount of memory to be allocated is not known beforehand, rather it is determined at the time of program run, it is called Dynamic Memory Allocation. It leads to efficient utilization of storage space.


Example:


cout << " Enter number of elements: ";


cin >> N;


int *A = new int[N]; // dynamic memory allocation

Report Error

View answer Workspace Report Error Discuss

Subject: C++

13 13092
Q:

What are the types of Collision Resolution Techniques and the methods used in each of the type?

Answer

Open addressing (closed hashing),


The methods used include: Overflow block,


 Closed addressing (open hashing)


The methods used include: Linked list, Binary tree…

Report Error

View answer Workspace Report Error Discuss

Subject: Java

16 13089
Q:

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties.

A) ScriptObject B) JSObject
C) JavaObject D) Jobject
 
Answer & Explanation Answer: B) JSObject

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

4 12974