Code Snippets Interview Questions
Questions Answers Views Company eMail

How can i find first 5 natural Numbers without using any loop in c language????????

Microsoft,

2 8354

C statement to copy a string without using loop and library function..

Persistent, TCS,

2 11764

Is it possible to type a name in command line without ant quotes?

Excel, Infosys,

1 4289

Hello, Can anyone tell me the source code for FLAMES game in Control Language Programming(CLP)of AS/400.

1 6830

Write code for the multiplication of COMPLEX numbers?

IBM,

3328

what is the output of following program ? void main() { int i=5; printf("%d %d %d %d %d ",i++,i--,++i,--i,i); }

10 20736

what is brs test reply me email me kashifabbas514@gmail.com

2449

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2061

posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come

GATE,

2 14210

how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)

1 3514

1+1/2!+1/3!+...+1/n!

1939

write a java program to create a Frame with three scrolls, change the back ground color of the frame using functions with values of scrolls.

4162

Write a java program to display multiplication table in a Frame.

1 14365

i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.

1963

create a slide show which has three slides,which includes only text.program should change to the new slide after 5 seconds.After the third slide program returns to the first slide.

1 7936


Un-Answered Questions { Code Snippets }

communication between main window and new windows

1701


Write code that allows to create only one instance of a class?

484


How we use ajax in asp.net through javaScript. Please givee me an example.

2502


What is XML Element?

393


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

2188






Code for Creating a Form Using PlaceHolder Controls?

2343


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

5752


code to Hide and Show form controls

1806


What is a StAX Parser?

338


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+……………...

4346


Code for Using Keyboard Events?

2129


Create a ViewState Property?

2283


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

3113


Code for using a Hot Key in an ActiveX Control?

1366


how to take time as input in the format (12:02:13) from user so that controls remains between these columns?

1812