Code Snippets Interview Questions
Questions Answers Views Company eMail

What is XML Element?

452

What is a well formed XML document?

390

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

426

What is a valid XML document?

398

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,

589

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

InterGraph,

605

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

InterGraph,

599

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

InterGraph,

581

Devise a program to implement the Fibonacci sequence.

Tech Mahindra,

610

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

InterGraph,

620

How can you print an address of a variable?

TCS,

582

Write a program to Print the Pascal triangle

InterGraph,

588

Write a Program for matrix multiplication.

InterGraph,

599

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

InterGraph,

571

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

743


Un-Answered Questions { Code Snippets }

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

4113


I'm calling a JS fcn that fires AJAX to a webmethod and returns a boolean. How do I retrieve the return value in the codebehind? (VB) I can set a hiddenfield value in the JS, but if it's async how can my VB know when it's changed?

670


What is an XML Schema?

435


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1970


plz tell me the exam date for clerks in sbi

1853






how to create an anonymous function

1803


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.

2235


Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.

4491


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

581


Reading which Non-Character Key was pressed

1776


I am configuring my anaconda file in linux, i want to use as kickstart file, in post installation how can i edit file or change the content of file and save it.

2009


How to update and insert from datagridview at run time in excel database?

2837


Why XML has been used for development?

386


write a program that reverses the input number of n.Formulate an equation to come up with the answer.

7174


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

4452