Code Snippets Interview Questions
Questions Answers Views Company eMail

What is XML Element?

498

What is a well formed XML document?

427

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

465

What is a valid XML document?

451

Write a Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

InterGraph,

648

Write a Program to truncate a given floating point value (e.g.16.25=16).

InterGraph,

687

Write a Program to find the sum of digits of a given number until the sum becomes a single digit.

InterGraph,

663

Write a Program to find whether the given number is a Armstrong number.

InterGraph,

635

Devise a program to implement the Fibonacci sequence.

Tech Mahindra,

671

Write a Program to find the number of words in a sentence.

InterGraph,

690

How can you print an address of a variable?

TCS,

665

Write a program to Print the Pascal triangle

InterGraph,

654

Write a Program for matrix multiplication.

InterGraph,

686

Write a Program to find the reverse of a given number.

InterGraph,

636

What output does the following code generate? Why? What output does it generate if you make A::Foo() a pure virtual function? class A { A() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; class B : public A { B() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; int main(int, char**) { A objectA; B objectB; return 0; }

861


Un-Answered Questions { Code Snippets }

how to use the GetTickCount() properly and what is that procedure for?

2910


How to print sum of the numbers starting from 1 to 100?

581


code to detect availability of cookies

1939


What are the benefits of XML?

442


Is there any way to open notepad within php?

1844


What is well formed XML document?

456


Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

1903


how to insert fname,lname,designation values into database while click on the submit button using windows authentication mode?

2322


sample code to auto focusing the first field in a form

2195


Write a function that takes an integer and returns the smallest number that is greater than the given number which is a palendrome. For example, if the input was 111 the next palindromic number would be 121.

1545


What is an attribute?

488


program for straight line(y=mx+c)

5729


I have this code in leftmenu.ascx page..now on leftmenu.ascx.cs page i want to access id values. but i dont want to check manually like Accommodation,Arts etc.. In cs file my code is like string str[]; //this array contains some values say 10 strings for(i=0;i<100;i++) { if(str[i]==id id.visible=true } i.e.i want to travel for each element of str and each value of id.if they match then id.visible=true how to do?

4080


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

4252


write a program for area of circumference of shapes

2242