Code Snippets Interview Questions
Questions Answers Views Company eMail

advance the focus to next consecutive fields when Enter Key is pressed

TCS,

1802

how to get the User's Time of Day

HCL,

1677

write a program to detect the user's browser ?

Infosys,

1 2106

how to pass data between pages using Frames

2152

how to convert between arrays and strings

2117

validation code / function to allow only NUmbers in a text box

GE,

3 9929

how to transform XML Data into HTML

1904

How to block double clicks

1626

program to show a progress bar

Infosys,

2132

code to positioning of window in certain dimensions

1674

sample code to auto focusing the first field in a form

Wipro,

2035

how to pass data between pages using URLs

Symantec,

1 2838

how to pass data between pages using Cookies

1854

how to create an anonymous function

1739

how to create a Draggable element

TCS,

1974


Un-Answered Questions { Code Snippets }

3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...

4353


ArrayList declaration in .net

2753


Do you think about CMM(Capability Maturity Model) process?

594


write a program in java to find the moving average of all prime numbers between 2 and 100.

3592


Hello I am hosting remoting within IIS. Everything works just fine as long as I allow anonymous access at the IIS level. When I allow only Windows Authenticated sessions, something very strange happens: If the client activates the remote object with IP address - works fine If the client activates it using a machine name - get http 401 exception is thrown. The exception is thrown when the client calls the remote method. I set the channel's useDefaultCredentials property to true. Any idea how to allow Windows Authentication? Here is the call stack: System.Net.WebException: The remote server returned an error: (401) Unauthorized .. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean handshakeComplete) at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob, Boolean handshakeComplete) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) at System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest, ICredentials authInfo) --- End of inner exception stack trace ---

4238






What is xml schema?

344


What is the functionality of SendMessage?

726


design a class car having variables model, yr_of_manufacture, owner,reg_no. Design methods for assigning the values, Printing the values( you decide gui,control, any other methods if require)

1834


How can I Draw an ellipse in 3d space and color it by using graph3d?

2138


How can a procedure fetch data from FTP? I need a general code for this..

1361


code to detect availability of cookies

1789


Create a ViewState Property?

2294


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2265


Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

2051


I am trying to pass the string firstName from a Servlet called SampleServet. I am running this on eclipse and it tells me that "the value for annotation attribute must be a constant expression. I don't understand why it is giving me this error. @PersonAnnotation(name = SampleServlet.firstName) public class AnnotationClass{

1813