Technology Questions

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

What do you know about Intents?

Answer

- Notification messages to the user from an Android enabled device can be displayed using Intents.


- There are two types of Intents - Explicit Intent, Implicit Intent.


 


Implicit Intent:


- In case of Implicit Intent, an intent is just declared. 


- It is for the platform to find an activity that can respond to it.


- Since the target component is not declared, it is used for activating components of other applications.


 


Explicit Intent


- Explicit intent specifies the particular activity that should respond to the intent. 


- They are used for application internal messages.

Report Error

View answer Workspace Report Error Discuss

0 1691
Q:

Where can you test Apple iPhone apps if you don’t have the device?

Answer

iOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator. Xcode also includes all required tools and frameworks for building iOS apps.  However, it is strongly recommended to test the app on the real device before publishing it.

Report Error

View answer Workspace Report Error Discuss

0 1691
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 1687
Q:

Which method is used to draw an image on the canvas?

Answer

drawImage(image,x,y) method is used to draw an image on the canvas.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1683
Q:

How will you define an abstract class?

Answer

An abstract class is defined with the keyword abstract Eg:
public abstract class MyClass { }

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1677
Q:

What is a batch input session?

Answer

BATCH INPUT SESSION is an intermediate step between internal table and database table. Data along with the action is stored in session ie data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.

Report Error

View answer Workspace Report Error Discuss

Subject: SAP

0 1676
Q:

When do we use End-of-selection ?

Answer

End of the selection event is mostly used when we are writing HR-ABAP code. In the HR-ABAP code, data is retrieved in the start of selection event and printing on the list and all will be done at the end of the selection event.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP
Job Role: Analyst , IT Trainer

1 1675