Code Snippets Interview Questions
Questions Answers Views Company eMail

write a c program to Create a registration form application by taking the details like username, address, phone number, email along with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 5 users and display the details. In place of password display “****”. (Use Structures).

CDAC, College School Exams Tests,

10278

Write a program that reads a dynamic array of 40 integers and displays only even integers

2 4739

main(){int a=5,b 10,c=2, d;a=b c;d=++a=(--c)*2; printf("%d%d%d%d,a,b,c,d; return o;}

1 4012

IS Array list is generic or non generic

1 3785

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }

4 7811

write a program that reads a series of strings and prints only those strings begging with letter "b"

2761

Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number

Ace Info,

2 4316

Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.

2 5943

develop a program to calculate and print body mass index for 200 employees

Jomo Kenyatta University,

2311

write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

Jomo Kenyatta University,

4448

write a program that calculate the volume of cylinder after user enters radius and height and show the algorithm used

Jomo Kenyatta University,

1 9883

write a program to calculate the radius for a quadratic equation use modular programming(function abitraction)hint use quadratic function

ICAN, Jomo Kenyatta University,

1 4096

write a program to convert temperature from fa height into celcius and vise versa,use modular programming

Jomo Kenyatta University,

2555

write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

Jomo Kenyatta University,

2484

program for check the given number is prime or not in VB.net

2759


Un-Answered Questions { Code Snippets }

In LSMW , what does the following error mean and how to rectify it : Incorrect interface data for set 78 in method C . This error is occuring in idoc processing step of LSMW.

2235


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

5903


hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz

2679


Code to Block submission of form by pressing Enter Key

2182


Coding for .NET Delegates?

2191






What is the functionality of GetWindow?

587


program to bring a window to the front

1663


Write a python program to count the number of vowels in a string?

576


Can we change the validator-rules.xml for our own validations in struts??

2420


function to combine two or more arrays

1781


Why XML has been used for development?

386


How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

2045


Can I execute a XML?

397


develop a program to calculate and print body mass index for 200 employees

2311


how to remove or delete multiple selected items from listbox in on button click in asp?

629