Interview Questions

Q:

What is the output of this program ?

       #include
        using namespace std;
        int n(char, int);
        int (*p) (char, int) = n;
        int main()
        {
            (*p)('d', 9);
            p(10, 9);
            return 0;
        }
        int n(char c, int i)
        {
            cout << c <<  i;
            return 0;
        }

A) d99 B) d9d9
C) d9 D) compile time error
 
Answer & Explanation Answer: A) d99

Explanation:

In this program, we have declared the values as integer instead of character, So it is printing as d99 but it will not arise an error.

Report Error

View Answer Report Error Discuss

Filed Under: C++

3 21073
Q:

Explain what is BRS?

Answer

BRS - Bank Reconciliation Statement


 


A bank reconciliation statement is a statement prepared by organizations to reconcile the balance of cash at bank in a company's own records with the bank statement on a particular date.


 


The differences may arise because of the following reasons:


 


     - Cheques deposited into bank but not yet collected by bank


 


     - Cheques issued by the organization but not yet presented for payment


 


     - Cheques directly deposited by customers into the bank


 


     - Bank charges debited by bank


 


     - Interest credited or some receipts directly collected by bank based on org. request.


 


     - Some payments directly made by bank based on the organizations request.


 


So, the statement shows the reasons as what are the reasons for difference in balance.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Receivable Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

25 20886
Q:

Tally package is developed by

A) Tally Solutions B) Coral Softwares
C) Vedika Softwares D) Peutronics
 
Answer & Explanation Answer: A) Tally Solutions

Explanation:

Tally package is developed by Tally Solutions. 

 

Tally Solutions, then known as Peutronics, was co-founded in 1986 by Shyam Sunder Goenka and his son Bharat Goenka.

 

Report Error

View Answer Report Error Discuss

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

17 19643
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++

0 18672
Q:

How to use HTTP Headers inside PHP? Write the statement through which it can be added?

Answer

HTTP headers can be used in PHP by redirection which is written as:


<?header('Location: https://www.php.net')?>


The headers can be added to HTTP response in PHP using the header(). The response headers are sent before any actual response being sent. The HTTP headers have to be sent before taking the output of any data. The statement above gets included at the top of the script.


 

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

2 18544
Q:

What is the difference between back end collections and front end collections?

Answer

Back end collections means like commission on sales or commission on providing services.
Front end collections means like sales and providing services

Report Error

View answer Workspace Report Error Discuss

17 18077
Q:

A piece of icon or image on a web page associated with another webpage is called

A) url B) plugin
C) hyperlink D) none of the mentioned
 
Answer & Explanation Answer: C) hyperlink

Explanation:

In computing, a hyperlink, or simply a web link, is an icon or reference to data that links to another file or object that the reader can follow by clicking. The text which contains hyperlinks is called as hypertext.

 

A_piece_of_icon_or_image_on_a_web_page_associated_with_another_webpage_is_called1563599363.jpg image

Report Error

View Answer Report Error Discuss

15 18013
Q:

What is the output of this program?

#include
        using namespace std;
        void fun(int x, int y)
        {
            x = 20;
            y = 10;
        }
        int main()
        {
            int x = 10;
            fun(x, x);
            cout << x;
            return 0;
        }

A) 10 B) 20
C) compile time error D) none of these
 
Answer & Explanation Answer: A) 10

Explanation:

In this program, we called by value so the value will not be changed, So the output is 10

Report Error

View Answer Report Error Discuss

Filed Under: C++

0 17963