Tuesday, March 8, 2011

Oracle Telephonic

> Structure and class diffs
> what is the purpose of virtual functions
> what is a static function
> Is it possible to have a static virtual function
> How to integrate c code and c++ code
> new and malloc diff?
> Are you familiar with process handling? fork, exec, threads, signals.
> semaphores, mutexes?

Thursday, March 3, 2011

Brother Marriage

Brother marriage is on 18th march 2011.

CSC Interview 26-02-2011

How you will initialize static, constant variables in a class,

types of case? diff between dynamic cast and static cast?

what happens between exception throw and catch?

what is auto_ptr and whats the draw back?

Class B is having virtual func1(). Class D is having virtual func1() and func2(). If we do D d; B *b = &d; can we access func2() with b?

diff between operator new and new operator?

whats the diff between primary key and unique key?

what the purpose of index in data bases?


Will it work or not???
================

int func();
void func();

int func();
int func() const;

int funct(int a, float b);
int funct(float a, int b);

int func(int i=0);
int func();

int func(int i);
int func(const int i);



Complete the below function:
-----------------------------

Class Sample
{
int *i;
char *a; // can be assigned to any length string
const int b; // need to initialize with value 10
static int c; // need to initialize with value 20
int int d;

public:
/* fill this part */
};


int main()
{
Sample A("Paypal");
Sample B(A);
Sample C;
Sample D = B;
C = A;
A = A;
A::~A();
cout << A << B << C;
return 1;
}


Given some array of values in range [1..n] with some duplicated in the the array.
For these 3 options how you will approach to print the duplicate values and missing values?
> With more memory less time
> With less memory more time
> with same array edited


Below are same or not? If same why? if not why?

if( p && *p)
cout <<"AND";
if( *p && p )
cout <<"AND1";


Given some valued asked dto construct binary search tree.
then calculate in order and post order for that tree
by hiding the constructed tree, asked to construct the tree with inorder and postorder values.

Sudo algo for palindrom check of a string using linked lists.

diff between vector and list? what is the internal representation of these?

given some array with some random values. How you will find what are duplicated and whats their count? give oprtimized solution.

find command in unix?

Tuesday, January 12, 2010

Going home for festival

Today we are going to home on the occation of Sanktanthi.

Wednesday, December 23, 2009

first dress apreciation.

22nd dec 2009 .
Ee dress lo chala bagunnavu ani annaru

Tuesday, September 18, 2007

Anagram of string

Example:
Original String Anagarm
Eric Rice
Dormitory Dirty Room

strfry is the function which randomizes the content of the string using rand(3) to randomly swap characters in the string. The result is an anagram of the string.

** strfry in GNU C library only