Interview Questions

Q:

What is the impact of declaring a method as final?

Answer

A method declared as final can't be overridden. A sub-class can't have the same method signature with a different implementation.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1677
Q:

How do you load data from XML file to a ORACLE table?

Answer

You need to first create a table in oracle that matches with the fields of the XML data.


So to get the XMl into the table, you can create a generic procedure that moves an XML document into a table by converting the elements to Oracle Canonical format.


Oracle Canonical format is as follows:


<ROWSET>


   <ROW>  


     <column_name_1 />


     .


     .


     </ROW>


     <ROW>


         <column_name_1 />


         .


         .


      </ROW> 


        .


        .


</ROWSET>        


ROW is used for the table names


ROWSET is used for the XML document


You can get the XML into the canonical form using XSL:


<?xml version="1.0"?>


<xsl:stylesheet 


             xmlns:xsl="https://www.w3.org/1999/XSL/Transform"                   


             version="1.0">


     <xsl:template match="/">


          <ROWSET>


               <ROW>


                         <Attribute_name>                      


                             <xsl:value-of select="Table_name/Attribute_name" />


                         </Attribute_name>


                < /ROW>


          </ROWSET>


     </xsl:template>


</xsl:stylesheet>


To transform the XML document into the canonical form, you can write a procedure. Make sure you include the line below in your procedure code:


v_rows := DBMS_XMLStore.insertXML(


                v_context,    


                XMLType.transform(p_xml_in, p_xsl_in));


The only remaining step is calling your procedure: 


DECLARE


   v_xml XMLType := XMLType( YOUR XML Document );


   v_xsl XMLType := XMLType( YOUR XSL Document );


BEGIN 


   procedure_name(v_xml, v_xsl, 'table_name');


END;

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1675
Q:

What is hierarchy relationship in a dimension. whether it is: 1) 1:1 2) 1:m 3) m:m

Answer

1:m

Report Error

View answer Workspace Report Error Discuss

2 1674
Q:

Why Do Organisations Need Creativity?

Answer

Do businesses want employees at every level who develop ideas to solve problems and embrace opportunities?


Yes.


In a range of studies since 2003, The Accenture Institute for High Performance found that the highest performing companies in the world encourage staff at every level to solve problems to make things new and better.


The Ernst & Young Connecting Innovation to Profit report (2010) found that fast-moving, agile companies recognise the importance of creative thinking skills, concluding that “the ability to manage, organise, cultivate and nurture creative thinking is directly linked to growth and achievement."


The IBM Global CEO Survey 2010 interviewed more than 1500 CEO’s from 60 countries and 33 industries, concluding that creativity is the most important leadership trait for the future. They suggested that “more than rigor, management discipline, integrity or even vision – successfully navigating an increasingly complex world will require creativity.”

Report Error

View answer Workspace Report Error Discuss

0 1673
Q:

Explain VBScript in detail.

Answer

This is a scripting language developed by Microsoft and is based loosely on Visual Basic. Its functionality in a web environment is dependant upon either an ASP engine or the Windows Scripting Host, and must be used on a Windows hosting platform. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1673
Q:

What are major types of networks and explain?

Answer

Server-based network: Provide centralized control of network resources and rely on server computers to provide security and network administration.


peer-to-peer network: computers can act as both servers sharing resources and as clients using the resources.

Report Error

View answer Workspace Report Error Discuss

0 1671
Q:

What are the features of iphone 3G?

Answer

Video: Videos can be edited, shared. High quality VGA video can be shot in portrait or landscape.

- 3 Megapixel Camera: Still photos with greater quality can be taken

- Voice control: It recognizes the names in contacts and recognizes the music on iPod.

- Compass: iPhone 3GS has built-in digital compass, used to point the way.

- Internet Tethering: Internet surfing can be done from anywhere. A 3G connection can be shared on Iphon3 with Mac notebook or laptop.. 

Report Error

View answer Workspace Report Error Discuss

0 1668
Q:

An increase in the price of product A will

A) reduce the demand for resources used in the production of A. B) reduce the demand for substitute product B
C) increase the demand for complementary product C. D) increase the demand for substitute product B.
 
Answer & Explanation Answer: D) increase the demand for substitute product B.

Explanation:

If the price of a product rises, the demand for the substitute product increases.

Report Error

View Answer Report Error Discuss

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

0 1666