Technology Questions

Q:

Difference between Stack and Queue

Answer

Stack is a collection of objects that works in LIFO (Last in First out) mechanism while Queue is FIFO (First in First out). This means that the object that is inserted first is removed last in a stack while an object that is inserted first is removed first in a queue.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 5117
Q:

Write an SQL Query to find employees whose name starts with an ‘M’?

Answer

SELECT *FROM Employees WHERE EmpName like ‘M%’.


 

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 5033
Q:

Can we use include ("xyz.PHP") two times in a PHP page "index.PHP"?

Answer

    Yes we can use include("xyz.php") more than one time in any page. but it create a prob when xyz.php file contain some funtions declaration then error will come for already declared function in this file else not a prob like if you want to show same content two time in page then must incude it two time not a prob

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 5027
Q:

How can different versions of private assemblies be used in the same application without a re-build?

Answer

You can use different versions of private assemblies in the same application without a re-build by specifying the assembly version in the AssemblyInfo.cs or AssemblyInfo.vb file.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

1 4956
Q:

Can any object be stored in a View state in .NET ?

Answer

View state is a repository in an ASP.NET page that can store values that need to be retained during postback.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer , Project Manager

2 4948
Q:

What is the need of Response.Output.Write() in Asp.net ?

Answer

Response.Write() and Response.Output.Write() both does the same work for printing output on the screen. But their is a small difference between them. As we can write formatted output using Response.Output.Write() but Response.Write() can't allows the formatted output.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer

4 4947
Q:

Explain $_FILES Superglobal Array.

Answer

Array                                              Descriptions
--------------------------------           -----------------------------------
$_FILES['userfile']['name']              The original name of the file on the client machine.




$_FILES['userfile']['type']                The MIME type of the file if the browser provided 


                                                   this information. An example would be "image/gif".




$_FILES['userfile']['size']                The size, in bytes, of the uploaded file.




$_FILES['userfile']['tmp_name']      The temporary filename of the file in which the


                                                  uploaded file was stored on the server.




$_FILES['userfile']['error']              The error code  associated with this file upload.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 4946
Q:

Which TCP/IP port does SQL Server run on? How can it be changed?

Answer

SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 4934