<< < 156 157 158 159 160 161 162 163 164 165 166 > >>   Sort: Date

What will be output for the given code?
What will be output for the given code? What will be output for the given code? Dim I as integer = 5 Do I = I + 2 Response.Write (I &amp; " ") Loop Until I &gt; 10 * 5 8 * 5 7 9 * 7 9 11 * Errors out 7 9 11 (if corrected)
2014-09-02, 1727👍, 0💬

How can I read one character at a time, without waiting for the RETURN key
How can I read one character at a time, without waiting for the RETURN key Alas, there is no standard or portable way to do these things in C. Concepts such as screens and keyboards are not even mentioned in the Standard, which deals only with simple I/O ``streams'' of characters. Input to a compute...
2015-11-11, 1726👍, 0💬

What is the difference between memcpy and memmove?
What is the difference between memcpy and memmove? memmove offers guaranteed behavior if the memory regions pointed to by the source and destination arguments overlap. memcpy makes no such guarantee, and may therefore be more efficiently implementable. When in doubt, it's safer to use memmove. It se...
2015-07-16, 1725👍, 0💬

State True or False: Static method cannot be overridden: * True or * False
State True or False: Static method cannot be overridden: * True or * False True
2014-06-20, 1724👍, 0💬

Can the validation be done in the server side? Or this can be done only in the Client side?
Can the validation be done in the server side? Or this can be done only in the Client side? Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.
2014-01-14, 1722👍, 0💬

How do you call and execute a Stored Procedure in.NET? Give an example.
How do you call and execute a Stored Procedure in.NET? Give an example. Answer1 ds1=new DataSet(); sqlCon1=new SqlConnection(connectionstring );String strCom1=”byroyalty”; sqlCom1=new SqlCommand(strCom1,sqlCon1); sqlCom1.CommandType=CommandTyp e.StoredProcedure;sqlDa1=new SqlDataAdapter(sqlCom...
2014-09-15, 1721👍, 0💬

What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it?
What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it? No, Icon lives in System.Drawing namespace. It’s not a Bitmap by default, and is treated separately by .NET. However, you can use ToBitmap method to get a valid Bitmap object from a valid Icon object.
2013-11-22, 1720👍, 0💬

What should one do to make class serializable?
What should one do to make class serializable? Answers1: To make a class serializable is to mark it with the Serializable attribute as follows. [Serializable] public class MyObject { public int n1 = 0; public int n2 = 0; public String str = null; }
2013-12-26, 1719👍, 0💬

Name some of the languages .NET support?
Name some of the languages .NET support? Some of the languages that are supported by .NET 1. Visual Basic.NET 2. Visual C# 3. Visual C++
2013-12-10, 1719👍, 0💬

What does the message warning macro replacement within a string literal mean?
What does the message warning macro replacement within a string literal mean? Some pre-ANSI compilers/preprocessors interpreted macro definitions like #define TRACE(var, fmt) printf("TRACE: var = fmt\n", var) such that invocations like TRACE(i, %d); were expanded as printf("TRACE: i = %d\n", i); In ...
2015-12-14, 1718👍, 0💬

Describe the difference between a Thread and a Process?
Describe the difference between a Thread and a Process? Answer1: Thread - is used to execute more than one program at a time. process - executes single program Answer2: A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A proces...
2014-02-14, 1718👍, 0💬

Difference between Class And Interface
Difference between Class And Interface Class is logical representation of object. It is collection of data and related sub procedures with defination. Interface is also a class containg methods which is not having any definations. Class does not support multiple inheritance. But interface can suppor...
2013-12-04, 1718👍, 0💬

How to find the SQL server version from Query Analyser
How to find the SQL server version from Query Analyser Answer1 To determine which version of Microsoft SQL Server 2005 is running, connect to SQL Server 2005 by using SQL Server Management Studio, and then run the following Transact-SQL statement: SELECT SERVERPROPERTY(’productversi on’),SERVE...
2014-10-08, 1713👍, 0💬

Which is the correct statement to set the alias name for namespace in C#?
Which is the correct statement to set the alias name for namespace in C#? Which is the correct statement to set the alias name for namespace in C#? * using System Data.OracleClient = aliasName; * using aliasName = System.Data.OracleClient; * string aliasName = using.System.Data.OracleClient ;* Both ...
2014-07-28, 1712👍, 0💬

Where do you store the information about the user’s locale?
Where do you store the information about the user’s locale? System.Web.UI.Page.Culture
2014-03-05, 1712👍, 0💬

When we go for html server controls and when we go for web server controls?
When we go for html server controls and when we go for web server controls? Server controls are a part of ASP.net. When a server control is used there will be an extra overhead on the server to create the control at runtime and accordingly set the values. HTML controls are static controls and are ea...
2014-01-07, 1712👍, 0💬

I have a program which mallocs and later frees a lot of memory ...
I have a program which mallocs and later frees a lot of memory, but I can see from the operating system that memory usage doesn't actually go back down. Most implementations of malloc/free do not return freed memory to the operating system, but merely make it available for future malloc calls within...
2016-03-28, 1709👍, 0💬

How does the lifecycle of Windows services differ from Standard EXE?
How does the lifecycle of Windows services differ from Standard EXE? Windows services lifecycle is managed by “Service Control Manager” which is responsible for starting and stopping the service and the applications do not have a user interface or produce any visual output, but “Standard e...
2014-02-28, 1707👍, 0💬

What are good ADO.NET object(s) to replace the ADO Recordset object?
What are good ADO.NET object(s) to replace the ADO Recordset object? The differences includes In ADO, the in-memory representation of data is the recordset. In ADO.net, it is the dataset A recordset looks like a single table in ADO In contrast, a dataset is a collection of one or more tables in ADO....
2014-09-08, 1705👍, 0💬

How do we upgrade SQL Server 7.0 to 2000?
How do we upgrade SQL Server 7.0 to 2000? Run the installation of the SQL Server 2000 In the Existing Installation dialog box, click Upgrade your existing installation, and then click Next. In the Upgrade dialog box, you are prompted as to whether you want to proceed with the requested upgrade. Clic...
2014-10-31, 1704👍, 0💬

What is a good way to check for ``close enough'' floating-point equality?
What is a good way to check for ``close enough'' floating-point equality? Since the absolute accuracy of floating point values varies, by definition, with their magnitude, the best way of comparing two floating point values is to use an accuracy threshold which is relative to the magnitude of the nu...
2015-06-26, 1700👍, 0💬

How do I round numbers?
How do I round numbers? The simplest and most straightforward way is with code like (int)(x + 0.5) C's floating to integer conversion truncates (discards) the fractional part, so adding 0.5 before truncating arranges that fractions &gt;= 0.5 will be rounded up. (This technique won't work properl...
2015-06-26, 1699👍, 0💬

What are the different methods to access Database in .NET ?
What are the different methods to access Database in .NET ? What are the different methods to access Database in .NET ? * OleDB,ODBC,SQLClient * OleDB, JDBC, SQLServer * ODBC-JDBC, DataSet, SQLClient * Datasource, DataSet, DSN OleDB,ODBC,SQLClient
2014-07-17, 1699👍, 0💬

How does you handle this COM components developed in other programming languages in.NET?
How does you handle this COM components developed in other programming languages in.NET? Answer1: add the component in add reference window, click .NETCOM tab. Answer1: While adding the refferences we can handle the COM components in other .Net programming languages.
2014-11-12, 1697👍, 0💬

<< < 156 157 158 159 160 161 162 163 164 165 166 > >>   Sort: Date