Code Snippets Interview Questions
Questions Answers Views Company eMail

Give coding for Implementing a Fixed GridView Header in ASP.NET?

1 8354

How to Create Scrollable Micro Windows?

2 4604

Coding for Synchronizing Cache Access in ASP.NET?

3326

How to Export Data to Excel?

Eastcom Systems,

4 9641

Give coding for Exception Handling Techniques in ASP.NET?

Microsoft,

3 9088

Coding for .NET Delegates?

2289

Code for IP Address Comparison and Conversion in C#?

4179

Code for Sending E-Mail with System.Web.Mail?

2 7048

Code for Getting Information About A File?

1 4827

Code for Using Keyboard Events?

2308

Code for Working with Files under a Directory?

1 4751

How to Create Files by Using the FileInfo Class?

1 5706

Code for Reading and writing from a file?

IBM, Xoriant,

2393

How to Split Strings with Regex in Managed C++ Applications?

Microsoft,

3323

Code for Method of Handling Factorials of Any Size?

2200


Un-Answered Questions { Code Snippets }

Write a python program to find the second largest number in a list?

634


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

2320


Code for using a Hot Key in an ActiveX Control?

1368


What output does this program generate as shown? Why? class A { A() { cout << "A::A()" << endl; } ~A() { cout << "A::~A()" << endl; throw "A::exception"; } }; class B { B() { cout << "B::B()" << endl; throw "B::exception"; } ~B() { cout << "B::~B()"; } }; int main(int, char**) { try { cout << "Entering try...catch block" << endl; A objectA; B objectB; cout << "Exiting try...catch block" << endl; } catch (char* ex) { cout << ex << endl; } return 0; }

793


What is XPath in XML?

462


How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)

2446


Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why?

8382


create Drop-Down Navigation Menus

1883


Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4709


Financial: credit card number validation) Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: ■ 4 for Visa cards ■ 5 for Master cards ■ 37 for American Express cards ■ 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit card numbers. The algorithm is useful to determine whether a card number is entered correctly or whether a credit card is scanned correctly by a scanner. All credit card numbers are generated following this validity check, commonly known as the Luhn check or the Mod 10 check, which can be described as follows (for illustration, consider the card number 4388576018402626): 1. Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number. 2 * 2 = 4 2 * 2 = 4 4 * 2 = 8 1 * 2 = 2 6 * 2 = 12 (1 + 2 = 3) 5 * 2 = 10 (1 + 0 = 1) 8 * 2 = 16 (1 + 6 = 7) 4 * 2 = 8 2. Now add all single-digit numbers from Step 1. 4 + 4 + 8 + 2 + 3 + 1 + 7 + 8 = 37 3. Add all digits in the odd places from right to left in the card number. 6 + 6 + 0 + 8 + 0 + 7 + 8 + 3 = 38 4. Sum the results from Step 2 and Step 3. 37 + 38 = 75 5. If the result from Step 4 is divisible by 10, the card number is valid; otherwise, it is invalid. For example, the number 4388576018402626 is invalid, but the number 4388576018410707 is valid. Write a program that prompts the user to enter a credit card number as a long integer. Display whether the number is valid or invalid. Design your program to use the following methods: /** Return true if the card number is valid */ public static boolean isValid(long number) /** Get the result from Step 2 */ public static int sumOfDoubleEvenPlace(long number) /** Return this number if it is a single digit, otherwise, return * the sum of the two digits */ public static int getDigit(int number) /** Return sum of odd place digits in number */ public static int sumOfOddPlace(long number) /** Return true if the digit d is a prefix for number */ public static boolean prefixMatched(long number, int d) /** Return the number of digits in d */ public static int getSize(long d) /** Return the first k number of digits from number. If the * number of digits in number is less than k, return

6020


Is there any way to open notepad within php?

1844


How to get one hasmap value in another hashmap ,only value not key

1140


What are the disadvantages of XML?

420


Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

2780


Sir... please give some important coding questions asked by product companies..

2037