Technology Questions

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 3382
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 3374
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 3371
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 3366
Q:

What are the security laws which take care of the data in the cloud?

Answer

The security laws which are implements to secure data in the cloud are as follows:


- Input validation : controls the input data which is being to any system.


- Processing  : control that the data is being processed correctly and completely in an application.


- File : control the data being manipulated in any type of file.


- Output reconciliation : control the data that has to be reconciled from input to output.


- Backup and recovery: control the security breaches logs and the problems which has occurred while creating the back.

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

2 3361
Q:

What do you mean by undeclared and undefined variables ?

Answer

Difference between undeclared and undefined variables is defined as


Undeclared variables are those that do not exist in a program and are not declared. If the program tries to read the value of an undeclared variable, then a runtime error is encountered.


Undefined variables are those that are declared in the program but have not been given any value. If the program tries to read the value of an undefined variable, an undefined value is returned.

Report Error

View answer Workspace Report Error Discuss

4 3360
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 3360
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 3359