Technology Questions

Q:

Would you initialize your strings with single quotes or double quotes?

Answer Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3576
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 3571
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 3555
Q:

How do you fix the problem associated with VSAM out of space condition?

Answer

Define new VSAM dataset allocated with more space.


Use IDCAMS to REPRO the old VSAM file to new VSAM dataset.


Use IDCAMS to ALTER / RENAME the old VSAM dataset to DELETE the old VSAM datset.


Use IDCAMS to ALTER / RENAME the new VSAM dataset to the name of the original VSAM dataset.

Report Error

View answer Workspace Report Error Discuss

0 3552
Q:

Explain about Blackberry Enterprise Server.

Answer

BlackBerry Enterprise Server: The BlackBerry handhelds are integrated into the e-mail system of the organization through software BlackBerry Enterprise Server. The BES versions are available for MS Exchange, Novell GroupWise and Lotus Domino. A connector was made by Google for BES for making BES available for Google Apps. A new feature is added which enables to track the current location of an individual through trailateration.

BES provides handhelds with the connectivity of TCP/IP which can be accessed through a component known as “Mobile Data Service – Connection Service – MDS-CS. This allows the development of custom application development using data streams on BlackBerry devices which are based on the Sun JME platform.

BES also provides network security in the form of Triple DES or AES encryption standard of all data including e-mail and MDS traffic, which travels between the BlackBerry hand held devices and a BES.

Report Error

View answer Workspace Report Error Discuss

1 3551
Q:

What is Apache configuration file typically called?

Answer

The Apache configuration file is called httpd.conf.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3550
Q:

What is difference between Path and Classpath?

Answer

PATH and CLASSPATH are operating system level environment variables. PATH is used to define where the system can find the executables (.exe) files whereas CLASSPATH is used to specify the location of .class files.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 3543
Q:

Which command using Query Analyzer will give you the version of SQL server and operating system?

Answer

SELECT SERVERPROPERTY ('productversion'), SERVERPROPERTY ('productlevel') and SERVERPROPERTY ('edition').

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 3542