Code Snippets Interview Questions
Questions Answers Views Company eMail

What is XML Element?

393

What is a well formed XML document?

326

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

365

What is a valid XML document?

349

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,

503

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

InterGraph,

519

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

InterGraph,

509

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

InterGraph,

523

Devise a program to implement the Fibonacci sequence.

Tech Mahindra,

527

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

InterGraph,

518

How can you print an address of a variable?

TCS,

501

Write a program to Print the Pascal triangle

InterGraph,

516

Write a Program for matrix multiplication.

InterGraph,

498

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

InterGraph,

482

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; }

632


Un-Answered Questions { Code Snippets }

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

476


How can you apply a DTD to an XML document?

357


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

493


I am trying to pass the string firstName from a Servlet called SampleServet. I am running this on eclipse and it tells me that "the value for annotation attribute must be a constant expression. I don't understand why it is giving me this error. @PersonAnnotation(name = SampleServlet.firstName) public class AnnotationClass{

1804


How do you set a global variable inside a function?

452






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

2724


Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.

2136


How we use ajax in asp.net through javaScript. Please givee me an example.

2495


1.What happens to a session object when the browser associated with it is closed? 2. Explain what happens when a servlet is sent a POST request? 3. Why does only one copy of a servlet get created? 4. Explain what happens when a browser requests a servlet? (for the first time) 5.How is information stored in a session object?

2037


Code for using a Hot Key in an ActiveX Control?

1366


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

519


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3255


What is a StAX Parser?

338


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2206


how to Auto Scroll the page

1627