Interview Questions

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 18261
Q:

A lock can be acquired on a class.

The above statement is

A) True B) False
C) Both A and B D) None
 
Answer & Explanation Answer: A) True

Explanation:

A lock can be acquired on a class. This lock is acquired on the class's Class object.

Report Error

View Answer Report Error Discuss

Filed Under: Java

0 17995
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 17754
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 17629
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 17512
Q:

What is the default return type of a function ?

A) int B) void
C) float D) char
 
Answer & Explanation Answer: B) void

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

21 17407
Q:

What is capital structure? What are the principles of capital structure management?

Answer

Capital structure is a term which is referred to be the mix of sources from which the long term funds are required for business purposes which are raised to improve the capital of the company. To fund an organization plan this capital structure is required which is the combination of debt and equity. The management ensures the capital structure accesses which are needed to fund future growth and enhance financial performance. The principles of capital structure management which are essentially required are as follows:-


 


1) Cost Principle


2) Risk Principle


3) Control Principle


4) Flexibility Principle


5) Timing Principle

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

25 17221
Q:

Which of the following are capabilities of functions in JavaScript?

A) Accept parameters B) Return a value
C) Accept parameters and Return a value D) None of the above
 
Answer & Explanation Answer: A) Accept parameters

Explanation:

Accept parameters are capabilities of functions in JavaScript.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Database Administration , IT Trainer

15 16876