Technology Questions

Q:

What is function prototype in C++?

Answer

A function prototype is a declaration of a function that omits the function body. It specifies the function’s name, argument types and return type.


E.g. int add(int,int)

Report Error

View answer Workspace Report Error Discuss

Subject: C++
Job Role: Software Architect

0 3462
Q:

Which of the following is not used for commenting in java?

A) // B) /* */
C) /** */ D) /** **/
 
Answer & Explanation Answer: D) /** **/

Explanation:
  • //               is a single line comment
  • /*  */          is commenting on one or more lines
  • /** */         is documentation comment
Report Error

View Answer Report Error Discuss

Filed Under: Java

1 3459
Q:

What is the most important feature of Java?

Answer Java is a platform independent language.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 3454
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 3452
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 3445
Q:

Mention the two major categories that distinctly classify the variables of C# programs.

Answer

Variables that are defined in a C# program belong to two major categories: value type and reference type. The variables that are based on value type contain a value that is either allocated on a stack or allocated in-line in a structure. The variables that are based on reference types store the memory address of a variable, which in turn stores the value and are allocated on the heap. The variables that are based on value types have their own copy of data and therefore operations done on one variable do not affect other variables. The reference-type variables reflect the changes made in the referring variables.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 3443
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 3442
Q:

What is personal oracle lite?

Answer

Personal Oracle lite is single user database for distributed and mobile computing. It supports a full range of Java database features as well as advanced replication. Or in other words it is Oracle's lightweight, fully-functional, single-user object- relational database. A small, zero administration embedded database.


Some of the features supported:


- Java Support


- Java Store Procedure Support


- Java triggers Supported


- Multi-column indexing and outer joins.


- Easy to use graphical user interface


- Supports both object and relational database models


- Simultaneous viewing of classes and relational tables

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

0 3441