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,

10091

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

2 4500

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 3865

IS Array list is generic or non generic

1 3639

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

4 7436

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

2668

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

Ace Info,

2 4077

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 5675

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

Jomo Kenyatta University,

2208

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,

4300

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

Jomo Kenyatta University,

1 9666

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 3914

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

Jomo Kenyatta University,

2434

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,

2364

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

2694


Un-Answered Questions { Code Snippets }

write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

3952


Write a function to efficiently convert a floating point number to a rational number. For example, given 0.125 return "1/8"

1174


How can call any javascript function without saying onclick, onchange, onblur etc events in php?

4164


what are the other loops except for for,while,do while and until?

2286


1.What type of material can be sent from a Java servlet to a browser ? How does the browser know how to deal with the material? 2.Explain what happens to a servlet when a servlet engine is sent a GET request.

2368






Write a function that takes an array of integers and returns that array rotated by N positions. For example, if N=2, given the input array [1, 2, 3, 4, 5, 6] the function should return [5, 6, 1, 2, 3, 4]

1852


What is the meaning of version in XML?

389


What are the advantages of XML DOM Document?

363


can everyone explain this code Private Sub DrawRect(rectSource As RECT, lngColour As Long) Line (rectSource.Left, rectSource.Top)-(rectSource.Left, rectSource.Bottom), lngColour Line (rectSource.Left, rectSource.Top)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Left, rectSource.Bottom), lngColour End Sub

2257


write a code that user can choose/alter Body Text Size

1608


what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }

2061


Question 1: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date. *This Should Be Done IN C++

546


How can restrict user to type upto 8 characters in textbox in php?

1570


In java, why do we set thread priority, when we know that there is no guarantee by which a thread should be execute?

2068


Can we have empty XML tags?

373