Code Snippets Interview Questions
Questions Answers Views Company eMail

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++

543

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']

488

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 1345


Un-Answered Questions { Code Snippets }

What is a cdata section in xml?

322


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

487


design a class car having variables model, yr_of_manufacture, owner,reg_no. Design methods for assigning the values, Printing the values( you decide gui,control, any other methods if require)

1830


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.

534


3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...

4343






Is there any way to open notepad within php?

1697


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2814


find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.

2015


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.

2125


i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.

1961


What is an attribute?

355


How we use ajax in asp.net through javaScript. Please givee me an example.

2496


how to Auto Scroll the page

1628


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3701


code to positioning of window in certain dimensions

1661