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?

351

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,

507

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

InterGraph,

525

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

InterGraph,

514

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

InterGraph,

527

Devise a program to implement the Fibonacci sequence.

Tech Mahindra,

533

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

InterGraph,

521

How can you print an address of a variable?

TCS,

505

Write a program to Print the Pascal triangle

InterGraph,

520

Write a Program for matrix multiplication.

InterGraph,

499

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

InterGraph,

485

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

635


Un-Answered Questions { Code Snippets }

Write a routine to implement the polymarker function

4373


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

2193


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6304


How to get Dynamically Linked Comboboxes Set?

2023


exception org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.handleJs pException(JspServletWrapper.java:491) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:419) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServ let.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717) root cause java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageRes ources(TagUtils.java:1175) org.apache.struts.taglib.TagUtils.message(TagUtils.j ava:1038) org.apache.struts.taglib.bean.MessageTag.doStartTag( MessageTag.java:224) org.apache.jsp.register_jsp._jspx_meth_bean_005fmess age_005f0(register_jsp.java:138) org.apache.jsp.register_jsp._jspService(register_jsp .java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJs pBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServ let.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717)

3382






Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3186


could you please send the program code for multiplying sparse matrix in c????

3065


write a code that user can choose/alter Body Text Size

1606


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

1736


Write a program to reverse a number in python?

457


Write a python program to swap the first and last value of a list?

510


Write a function that takes an array of integers and efficiently calculates and returns the Least Common Multiply in python.

1233


how to remove or delete multiple selected items from listbox in on button click in asp?

627


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

500


Write a python program to check common letters in two input strings?

483