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?

350

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,

504

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

InterGraph,

521

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

InterGraph,

511

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

InterGraph,

524

Devise a program to implement the Fibonacci sequence.

Tech Mahindra,

528

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

InterGraph,

519

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,

499

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

634


Un-Answered Questions { Code Snippets }

Write a code snippet to display an integer in a binary format?

488


Give the code for Handling Mouse Events?

1873


Hello Sir, Thanks for the Solution but, can you pls. Explain the coding for the Static Function & static variable from the below coding....waiting for Ans. class fact { public static void Main() { fact f=new fact(); int x=1; //Declaration of x as 1 int k=Convert.ToInt32(Console.ReadLine()); for(int i=1;i<=k;i++) { x= x *i; } System.Console.WriteLine(x); } }

2023


find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L

1997


Code for Document Validation in XML.NET?

1977






how to test pierrot divisor

2249


Design an implement of the inputs functions for event mode

2955


code to set the main window's size

1701


How to Check if Folder Exists?

554


how to take time as input in the format (12:02:13) from user so that controls remains between these columns?

1806


How to Check if File Exists?

516


can everyone explain this code Private Sub DrawRect(rectSource As RECT, lngColour As Long) Line (rectSource.Left, rectSource.Top)-(rectSource.Left, rectSource.Bottom), lngColour Line (rectSource.Left, rectSource.Top)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Left, rectSource.Bottom), lngColour End Sub

2251


Coding for .NET Delegates?

2086


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.

1935


Code for Presenting Parent/Child Data in a Data Grid Row?

2101