Interview Questions

Q:

Explain about struts dispatch action in DHTML

Answer

DispatchAction is an action that comes with Struts 1.1 or later, that let us combine Struts actions into single class, each with their own method. The org.apache.struts.action.DispatchAction class allows multiple operations to map to the different functions in the same Action class.


For e:g; html:hidden property="dispatch" value="error"/>


<SCRIPT>function set(target) {document. forms[0].dispatch. value=target;}</SCRIPT>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 3426
Q:

Describe how to create a simple AD rotator script without using database in PHP.

Answer

Following are the steps to create a simple AD rotator script without using database in PHP:


- All the ad’s can be collected in one place and be displayed randomly.rand() function can be used for this purpose.


- In order to NOT use any database, a flat file can be used to store the ad’s.


- In order to store the Ad’s information (HTML code), a flat file say “ad.txt” can be created.


- The random number can be stored in a variable 


$result_random=rand(1, 100);


- Conditions can be checked to display the ad’s.


if($result_random<=70)


{


      echo "Display ad1";


}

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 3425
Q:

Which is the most accurate statement about trade?

A) Trade makes some nations better off and others worse off B) Trading for a good can make a nation better off only if the nation cannot produce that good itself
C) Trade helps rich nations and hurts poor nations D) Trade can make every nation better off
 
Answer & Explanation Answer: D) Trade can make every nation better off

Explanation:
Report Error

View Answer Report Error Discuss

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

0 3424
Q:

What is Marker Interface?

Answer

An interface without having any methods and by implementing that interface if our objects will get same ability such type interfaces are called marker interface (or) ability interface (or) tag interface

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer

1 3422
Q:

What is the purpose of reserved word using in C#?

Answer

A keyword that specifies that types in a particular nemespace can be referred to without requiring their full qualified type names. 'using' reserved word always come with namespaces. eg. using systems so because of this useful classes supplied by Microsoft which are contained by system namespace are availble for user.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3419
Q:

What are the different types of VSAM files available?

Answer

ESDS: Entry Sequence Data Set


KSDS: Key Sequence Data Set


RRDS: Relative Data Set

Report Error

View answer Workspace Report Error Discuss

0 3417
Q:

What is the difference between OLE Server & OLE Container?

Answer

An OLE server application creates ole Objects that are embedded or linked in OLE Containers ex. OLE servers are ms_word & ms_excel. OLE containers provide a place to store, display and manipulate objects that are created by ole server applications. Ex. oracle forms is an example of an OLE Container.

Report Error

View answer Workspace Report Error Discuss

5 3417
Q:

'Equity schemes managed strong NAV gains, which boost their assets' was a news in some financial newspapers. What is the full form of the term NAV as used in above head lines ?

A) Nil Accounting Variation B) New Asset Venture
C) Net Accounting Venture D) Net Asset Value
 
Answer & Explanation Answer: D) Net Asset Value

Explanation:

Net asset value (NAV) is value per share of a mutual fund or an exchange-traded fund (ETF) on a specific date or time. It  is the value of an entity's assets minus the value of its liabilities, often in relation to open-end or mutual funds, since shares of such funds registered with the U.S. Securities and Exchange Commission are redeemed at their net asset value.

Report Error

View Answer Report Error Discuss

Filed Under: Accounts Receivable
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk

2 3415