Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...



Code Snippets Interview Questions
Questions Answers Views Company eMail

What output does this program generate as shown? Why? class A { A() { cout << "A::A()" << endl; } ~A() { cout << "A::~A()" << endl; throw "A::exception"; } }; class B { B() { cout << "B::B()" << endl; throw "B::exception"; } ~B() { cout << "B::~B()"; } }; int main(int, char**) { try { cout << "Entering try...catch block" << endl; A objectA; B objectB; cout << "Exiting try...catch block" << endl; } catch (char* ex) { cout << ex << endl; } return 0; }

283

Write a program that will convert an integer pointer to an integer and vice-versa.

236

Write a program that implements a date class containing day, month and year as data members. Implement assignment operator and copy constructor in this class.

237

Write code that allows to create only one instance of a class?

232

Write code to add functions, which would work as get and put properties of a class?

243

Write code to make an object work like a 2-d array?

231

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

238

what is the structure of xml document ?

150

What is xml schema?

160

What is a cdata section in xml?

148

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

212

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

228

Write a program to reverse a number in python?

224

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

236

What is the output when we execute list(“hello”)?

349







Un-Answered Questions { Code Snippets }

Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.

3920


what is main difference between array_push and array_pop?

3228


What is the functionality of GetWindow?

543


I have multiple datasets and I have to search a particular string in all of them at a single time. Please suggest a full jcl or rexx tool for it.

440


sample code to auto focusing the first field in a form

1757






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.

1712


Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

1759


program for straight line(y=mx+c)

5188


Why XSLT is important for XML?

184


Code to Block submission of form by pressing Enter Key

1809


code to positioning of window in certain dimensions

1373


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

157


How to Check if Folder Exists?

525


How to get Filename from Path?

491


snippet to prevent submission of form when certain/any validations got failed

1265