Code Snippets Interview Questions
Questions Answers Views Company eMail

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

599

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

1145

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

611

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

675

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

603

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

590

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

631

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

654

How do you set a global variable inside a function?

579

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

629

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

635

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

589

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

599

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

647

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

1 1485


Un-Answered Questions { Code Snippets }

In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

2650


What output does this program generate as shown? Why? class A { A() { cout << "A::A()" << endl; } ~A() { cout << "A::~A()" << endl; throw "A::exception"; } }; class B { B() { cout << "B::B()" << endl; throw "B::exception"; } ~B() { cout << "B::~B()"; } }; int main(int, char**) { try { cout << "Entering try...catch block" << endl; A objectA; B objectB; cout << "Exiting try...catch block" << endl; } catch (char* ex) { cout << ex << endl; } return 0; }

793


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.

2316


Write code to add functions, which would work as get and put properties of a class?

652


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

635


How to add flash or *.gif file in edit panel in java?

2078


create a .dll component operation and use created component in another project. required methods events and properties. connect, add,search,data report

2266


I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: