Interview Questions

Q:

How do you handle error condition while writing stored procedure or accessing stored procedure from java ?

Answer

Stored procedure should return error code if some operation fails but if stored procedure itself fail than catching SQLException is only choice.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 4204
Q:

Inside an interface when should the variables be initialized?

A) Globally B) Whenever required
C) Inside a function D) During the time of declaration
 
Answer & Explanation Answer: D) During the time of declaration

Explanation:

They should be initialized during the time of declaration itself otherwise it is a compilation eror

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 4203
Q:

Where are cookies actually stored on the hard disk?

Answer

This depends on the user's browser and OS.
In the case of Netscape with Windows OS,all the cookies are stored in a single file called

cookies.txt
c:\Program Files\Netscape\Users\username\cookies.txt
In the case of IE,each cookie is stored in a separate file namely username@website.txt.
c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 4198
Q:

Application_End: This event occurs when there are no more users of the application.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

When there are no more users of the application Application_End event occurs

Report Error

View Answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

0 4194
Q:

why did you choose HR? what do you want to make your career as HR?

Answer

HR-Human Resources:



To be a good HR person we need to have excellent  communication skills,interpersonal skills, good friendly attitude, talkative, decision-making skills etc.


An HR is the backbone of a  company. Right from recruiting the suitable person to training and then efficiency appraisal and then compensation and then exit interview...everything every step involves an HR.



So, if you wish to be a soul of the company not just a part of it, you should be an HR.

Report Error

View answer Workspace Report Error Discuss

Subject: Human Resources

2 4181
Q:

How can we extract string "abc.com" from a string "https://info@abc.com" using regular _expression of php?

Answer

We can use the preg_match() function with “/.*@(.*)$/” as the regular expression pattern.
For example:
preg_match("/.*@(.*)$/","https://info@abc.com",$data);
echo $data[1];
?>

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 4181
Q:

What are the two types of fields available in IMS DB?

Answer

Key Fields - (PROCOPT=K)


- Used to sequence the database and can't be changed


- It is the field within a segment, used to identify the occurrence of the segment


- Used to maintain the IMS segments in ascending sequence.


 


Search Fields - (PROCOPT=G)


- Used to search for a segment, without the segment being sequenced on that field


- A segment need not have a key or search field.


 


Both types of fields can be used to search the database.

Report Error

View answer Workspace Report Error Discuss

0 4173
Q:

What are the components of DataStage?

Answer

Datastage has two components


-Client Components – Designer, Director, Manager and Administrator


-Server Components – Server, Repository and Plug-ins.

Report Error

View answer Workspace Report Error Discuss

2 4165