Programming Code Interview Questions
Questions Answers Views Company eMail

Write a program to Print the Pascal triangle

InterGraph,

654

Write a Program for matrix multiplication.

InterGraph,

688

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

InterGraph,

636

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

861

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

793

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

682

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.

694

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

640

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

652

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

639

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

647

int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too

1 1490

Question 1: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date. *This Should Be Done IN C++

859

To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

743

Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.

1 1743


Un-Answered Questions { Programming Code }

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

2427


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

682


program for check the given number is prime or not in VB.net

2821


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

2296


how to track links visited in google using iframes

2460


i am trying to intigrate ejb and hibernate ,from session facade i am callind dao implemented through hibernate,i am getting a ClassDefNotFoundException for this org/hibernate/Session i ve set the class path at build path and in setEnv in weblogic still .........

2169


write a simple calculator c program to perform addition, subtraction, mul and div.

3395


write a program to perform generic sort in arrays?

2811


How to swap two ASCII numbers?

2665


How to Link Different Data Sources Together?

2017


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.

2373


Do you think about CMM(Capability Maturity Model) process?

752


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2283


What is Generic" J2ME architecture?

2014


How to Bind Nested XML to a Repeater Control with Container.DataItem?

3383