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,

10101

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

2 4518

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 3872

IS Array list is generic or non generic

1 3648

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

4 7468

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

2674

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

Ace Info,

2 4091

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 5691

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

Jomo Kenyatta University,

2216

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,

4310

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

Jomo Kenyatta University,

1 9682

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 3921

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

Jomo Kenyatta University,

2441

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,

2369

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

2696


Un-Answered Questions { Code Snippets }

Write a function that takes as input a binary tree, and prints out each level of the tree on a newline. For example: a / b c / / d e f will output: a b c d e f

1327


What is SGML?

335


i don't know about working of nested for loop can any one help me

1794


program to show a progress bar

2132


What is GUID anyway?

573






c# code to Count number of 1's in a given range of integer (0 to n)

4305


I have multiple datasets and I have to search a particular string in all of them at a single time. Please suggest a full jcl or rexx tool for it.

704


maximizing the main window

1643


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2694


how to pass data between pages using Frames

2155


write a program to input a natural number less than and display it in words.test your program on the sample data and some random data sample input= 29 sample output= Twenty nine sample input=17001 sample output= out of range sample input=119 sample output =one hundred and nineteen sample input=500 sample output=five hundred

3464


Give me some tips in c#?

2166


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3036


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.

4172


plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Agency extends Frame implements ActionListener { Label l1,l2,l3,l4; Button b1; TextField t1,t2; String s1,s2,s3,s4; public static void main(String args[]) { new Agency().setVisible(true); } public Agency() { super("Gas Agency Package"); setSize(1280,800); setBackground(Color.lightGray); setLayout(null); // setLayout(new BorderLayout()); t1=new TextField(20); t1.setBounds(440,150,200,30); t1.setBackground(Color.white); t2=new TextField(20); t2.setBounds(440,180,200,30); t2.setBackground(Color.white); t2.setEchoChar('*'); l1=new Label("Gas Agency Package"); l1.setBounds(400,30,300,50); l1.setFont(new Font("TimesRoman",Font.BOLD,25)); l1.setAlignment(Label.CENTER); l2=new Label("Enter your ID and Passoword"); l2.setFont(new Font("TimesRoman",Font.BOLD,20)); l2.setBounds(270,80,300,50); l3=new Label("Enter ID"); l2.setFont(new Font ("TimesRoman",Font.BOLD,20)); l3.setBounds(270,150,120,50); l4=new Label("Enter Passoword"); l2.setFont(new Font ("TimesRoman",Font.BOLD,20)); l4.setBounds(270,180,140,50); add(l1); add(l2); add(l3); add(t1); add(l4); add(t2); b1=new Button("Login"); b1.setBackground(Color.white); b1.setBounds(400,280,100,70); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { if(e.getSource()==b1) { s3="svce"; s4="svce"; s1=t1.getText(); s2=t2.getText(); if(s1.equals(s3) && s2.equals(s4)) { //System.out.println("password is correct"); MenuForm m= new MenuForm(); m.setVisible(true); //this.dispose(); } else { System.out.println("password not correct"); } this.dispose(); } } } plzzzzzzzzz xplain this code

1555