Technology Questions

Q:

What is IUnknown and what are its three parts?

Answer

IUnknown as an interface of a COM object. Every COM object has to support IUnknown, besides optionally adding other interfaces.


IUnknown is made of QueryInterface, AddRef and Release.

Report Error

View answer Workspace Report Error Discuss

0 2580
Q:

Explain the difference between star and snowflake schemas.

Answer

Star schema: A highly de-normalized technique. A star schema has one fact table and is associated with numerous dimensions table and depicts a star.


Snow flake schema: The normalized principles applied star schema is known as Snow flake schema. Every dimension table is associated with sub dimension table.


 


Differences:


- A dimension table will not have parent table in star schema, whereas snow flake schemas have one or more parent tables.


- The dimensional table itself consists of hierarchies of dimensions in star schema, where as hierarchies are split into different tables in snow flake schema. The drilling down data from top most hierarchies to the lowermost hierarchies can be done.

Report Error

View answer Workspace Report Error Discuss

0 2579
Q:

What are the rules which should be followed while naming a variable in VB?

Answer

Some of the rules which should be followed while naming a variable in VB are as follows: 


1) Characters should be less than 255.


2) Space between characters should be allowed.


3) A variable should begin with a number.


4) Period may not be permitted.

Report Error

View answer Workspace Report Error Discuss

0 2579
Q:

How to set cookies?

Answer

setcookie('variable','value','time');
variable - name of the cookie variable
value     - value of the cookie variable
time       - expiry time

Example:
<?php
setcookie('Test',$i,time()+3600);
?>
Test - cookie variable name
$i - value of the variable 'Test'
time()+3600 - denotes that the cookie will expire after an one hour

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2578
Q:

What is Thread?

Answer

A Thread is a block of code that can be executed in parallel with another block of code.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2571
Q:

What is Dynamic Language Runtime (DLR)?

Answer

DLR is a runtime environment that allows you to integrate dynamic languages with the Common Language Runtime (CLR) by adding a set of services, such as expression trees, call site caching, and dynamic object interoperability to the CLR.

The System.Dynamic and System.Runtime.CompilerServices namespaces are used to hold the classes for DLR. It also provides dynamic features to statically-typed languages, such as C# and Visual Basic to enable their interoperation with dynamic languages.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2569
Q:

When would you use the ping command with the "-t" switch?

Answer

to get the ping back from other computer with no packet loss

Report Error

View answer Workspace Report Error Discuss

1 2569
Q:

Explain how to create random passwords.

Answer

Generating random passwords in PHP can be done in multiple ways depending on how much security the application demands:-


Md5 function can be passed one parameter as uniqid() function which in turn generates a random number. Passing the parameter as TRUE in uniqid() adds additional uniqueness.


<?php
   $passwd = md5(uniqid(rand(), true));
   Echo $passwd;
?>

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2565