Interview Questions

Q:

What is difference between "assign" and "retain" keyword?

Answer

Retain -Specifies that retain should be invoked on the object upon assignment. takes ownership of an object


Assign - Specifies that the setter uses simple assignment. Uses on attribute of scalar type like float,int.

Report Error

View answer Workspace Report Error Discuss

Subject: SAP

3 2636
Q:

What happens when a CICS command contains the NOHANDLE option?

Answer

- NOHANDLE is an option that can be specified along with abnormal condition during program execution.


- When the exception occurs, no action is performed during execution of NOHANDLE command.


- The abnormal condition is ignored, even the EXEC CICS HANDLE condition exist.


- The abnormal condition is also ignored when EXEC CICS IGNORE condition is tested.


- The previous HANDLE CONDITION for other commands will not be effected with NOHANDLE option.

Report Error

View answer Workspace Report Error Discuss

0 2635
Q:

Explain how to store the uploaded file to the final location.

Answer

A HTML form should be build before uploading the file. The following HTML code is used for selecting the file that is to be uploaded. The type attribute of input must be “file”.


<form enctype="multipart/form-data" action="uploader.php" method="POST">


<input type="hidden" name="MAX_FILE_SIZE" value="100000" />


Choose a file to upload: <input name="uploadedfile" type="file" /><br />


<input type="submit" value="Upload File" />


</form>


At the time of executing uploader.php, the uploaded file will be stored in a temporary storage are on the webserver. An associative array $_FILES['uploadedfile']['name'] is used for uploading. The ‘name’ is the original file that is to be uploaded. Another associative array $_FILES['uploadedfile']['tmp_name'] is used for placing the uploaded file in a temporary location on the server and the file should be empty and should exist with the tmp_name.


The following code snippet is used for uploading the file.


$target_path = "uploads/"; // the target location of the file


$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);


if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) 


{


       echo "The file ". basename( $_FILES['uploadedfile']['name']). 


        " has been uploaded";


}


else


{


      echo “There was an error while uploading the file”;


}


The function move_uploaded_file()is used to place the source file into the destination folder, which resides on the server.


If the uploading is successful, the message “The file filename has been uploaded. Otherwise the error message “There was an error while uploading the file” would be displayed.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2634
Q:

What does window.history object?

Answer

The window.history object can be written without the window prefix.
To protect the privacy of the users, there are limitations to how JavaScript can access this object.
Some methods:


    history.back() - same as clicking back in the browser
    history.forward() - same as clicking forward in the browser

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2634
Q:

On what basis currency value depends?

A) inflation B) employment
C) imports and exports D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

In economy, the currency value depends on imports and exports, inflation, employment, interest rates, growth rate, trade deficit, performance of equity markets, foreign exchange reserves, macroeconomic policies, foreign investment inflows, banking capital, commodity prices.

Report Error

View Answer Report Error Discuss

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

0 2632
Q:

What is hedging?

Answer

Hedging is a tool to minimize the risks. It is thus like an 'insurance' where one pays a premium but gets an assured amount in case of some uncertain event to the extent of the loss actually suffered on an equally opposite position for which the hedge was done. Thus, hedger is different from arbitrageur and speculators, as the intention here is not to maximize the profit but to minimize the loss.


E.g. In Capital Markets, suppose an investor has an equity portfolio of Rs. 2 lacs and the portfolio consists of all the major stocks of NIFTY. He thinks the market will improve in the long run but might go on a downside in the shortrun. NIFTY today stands at 4300. To minimize the risk of downfall, he enters into an option contract by buying NIFTY-PUT of strike 4300 at a premium of, say, Rs. 100. Thus, the actual amount paid is Rs. 5,000(lot size of NIFTY is 50). Also, the number of NIFTY-PUTs to be bought will vary on the beta of the portfolio so as to completely hedge the positon. 

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

1 2630
Q:

What is the difference between an alert box and a confirmation box?

Answer

An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2623
Q:

The systematic risk of the market is measured by

A) alpha B) beta
C) gamma D) All of the above
 
Answer & Explanation Answer: B) beta

Explanation:

Beta is the measurement of the systematic risk of the market.

Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales
Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2622