Code Snippets Interview Questions
Questions Answers Views Company eMail

Write a python program to check if a number is a strong number?

582

What is the output, suppose list1 is [1, 3, 2], what is list1 * 2 ?

1133

Write a python program to check if a number is a prime number?

594

Write a python program to check if a number is a perfect number?

659

Write a python program to print table of a given number?

595

Write a python program to check if a number is an armstrong number?

577

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

613

Write a python program to check if a string is a palindrome or not?

645

How do you set a global variable inside a function?

572

Write a program to find sum of the digits of a number in python?

618

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

616

Write a python program to check if a number is a palindrome or not?

577

Can you write a program to find the average of numbers in a list in python?

591

Write a python program to count the number of digits in a number?

638

int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too

1 1455


Un-Answered Questions { Code Snippets }

How can export database using php code?

1713


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

1118


how to pass data between pages using Frames

2341


How to swap two ASCII numbers?

2647


what is runtime class?

2397






What are the basic rules while writing XML?

401


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(); } } } plzzzzzzz xplain me this java code like why i m including this packages n the whole code plzzzzzz

2173


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4375


could you please teach me how to program an income tax using functions

246


how to get the User's Time of Day

1824


A game that has five levels of play has the score for each level stored in an array. You are to write a program that goes through that array and finds: a) the minimum score, and the level at which it occurred b) the maximum score, and the level at which it occurred c)the average score for all five levels The score data you must use for this program are as follows: Game Level Score 1 450 2 316 3 148 Stack implementations is mandatory.

2297


Which tag is used to find the version of XML and the syntax?

454


Code for Searching for Multiple Matches with the MatchCollection Class?

3171


How to Link Different Data Sources Together?

1986


iam getting keyword or delimiter error while executing ICETOOL,provide me solution.

1386