Showing posts with label NCR TERADATA. Show all posts
Showing posts with label NCR TERADATA. Show all posts

Saturday, June 7, 2008

PAPER 2

1: static int i;

i=10;

printf("%d",i);

Ans: 10



2. #define func1(a) #a

#define func2(a,b,c) a##b##c

printf("%s",func1(func2(a,b,c)))

Ans: func2(a,b,c)



3. const int* ptr;

int* ptr1;

int a=10;

const int p=20;

ptr=a;

ptr1=p;





4. class a virtual disp()

printf("In a");

class b:public a

disp()

printf("In b");

class c:public a

disp()

printf("In c");

main()



a obj;

b objb;

c objc;



a=objb;

a.disp();



a=objc;

a.disp();



Ans: "In a" "In a"



5. a="str"; char

*b="new str";

char *temp;



malloc(sizeof(temp)+1,....

strcpy(a,temp);

malloc(sizeof(b)+1,....

strcpy(temp,b);



6. int m,i=1,j=0,k=-1;

m=k++||j++&&i++;

printf("%d...",m,i,j,k);



7. class x

double b;

double *l;

float &c;

main()



double g=10.34;

double *f=1.3;

float k=9;

x o;

o.b=g;

o.l=f;

o.c=k;

Ans: Compiler Error



Write C/C++ code for following:



For all the probs, u will have decide on wht DS to

use.... and u'r program must be efficient...explain in

detail...



5 MARKS



1. Find the Kth smallest element in a Binary Tree.

5 MARKS



2. Each worker does a job and is given a rating

+ve,-ve or Zero.

Find the MaxSubSequenceSum for given no. of workers.

Ex: Workers=6; Ratings=1,0,-1,4,5,-3

MaxSubSequenceSum=4+5=9

5 MARKS



3. 1 to N ppl sitting in a circle. Each one passes a

hot potato to the next person. After M passes the

person holding the potato is eliminated. The last

person remaining is winner. Find winner for given N,M.

Ex: N=5, M=2, Winner=4

5 MARKS



4. Reverse a given Linked List.



5 MARKS



5. There is a file called KnowledgeBase.txt, which

contains some words. Given a sub-string u have to find



all the words, which match the word in the file.

Ex: file contains a, ant, and, dog, pen.

If I give "an" I should get o/p as "ant, and"



10 MARKS



6. Company employee have id,level,no. of sub-ordinates

under him...

If a emp leaves then his sub-ordinates are assigned to

any of the emp's seniors...

Write four functions:

ConstructEmployee

JoinEmp

LeaveEmp

TransferEmp

NCR PLACEMENT PAPER - 1

NCR PLACEMENT PAPER - 1

Section I

1)"DONT COUNT EGGS BEFORE THEY ARE HATCHED" means

2)(0.975*0.975*0.975-1)*(0.975*0.975+0.975-1)

3)The traffic lights at three different road crossings change after
every 48sec,72sec,108sec respectively.If they change simultaneously at
8:20:00 hours, then they will change again simultaneously at
a)8:47:00 b)8:27:00 c)8:27:12 d)8:37:00

4)Sum of reciprocals given(value dont rem),Differnce of the reciprocals
given,asked to find the no

a)3,1/4 b)2/3,8/9 c) d)

5)Two no 1361,1468(dont rem) when divided by certain no leaves
remainder 7,11 resp .Find the divisor.

6)Given 15 lt of mixture contains milk:water in the ratio 3:1.How much
more water has to be added to get a mixture containing milk and water
in the ratio 2:1?

7)the age of the father is 18 years older to his son.After 5 years
fathers age becomes thrice of his son,What is fathers present age.

8)If the poopulation in '99 is given(dont rem value) & poplation in
2003 given.What is the percentage increase in population.

9)if the avg of 11 no is given __,sum of first six is given__,sum of
last six is given__.then find the sixth number.

10)If one of the sides of a triangle is increased by 10%,other side is
increased by 15%.what is the percentage increase in area.

11)A two digit no such that it is thrice the sum of the digits.Find the no?

12)x*24=256.find x.

13)2002-(w-1000)-1000=2002 find w.

14)Time and work simple problem

15)Bankers discount-1

16)Compoud interest-1

17-21)Data interpretation.

Given a garph for two students A,B,

x-axis:name of the subject

y-axis:marks obtained by them.

Total marks in each Maths,Phy,chemistry is 200,total marks in each

Hindi,geo,Eng is 150

Asked 5 Q

17)What is the percentage of marks B achieved in Hindi to the
percentage of marks B achieved in Physics.

18)What is average marks of B in all subjects.

19)What is the diff in percentage of marks ontained by A to that of
marks obtained by B in all th subjects.

20)In how many subjects B has got more than 70%.

21)dont rem

22)If the cost of certain no of pens is 450.If more pens could be
brought at same rate but if the cost of each pen is reduced by Rs15.What
were the total no of pens he bought.

23)The hand shake problem Shakuntala Devi.

24)A man travels 8 kms to his south.He then takes left and travels
another 4 kms.he then takes left and travels another 11kms.How far is he
from starting point.

25) Octal equivalent of (BAD)16.sive factorial computation.

Section II

31)Are both free() and delete() used for deaollocation of memory.



32)pubic class Myclass
{

Myclass a,b;
Myclass x=new Myclass()
}
No of times the constructor is called.

33)It is better to implement tree using

a)stack b)array c)LL d)structures

34)Given def of 1)overloading

2)overriding

Asked whether.

a)1 is only correct
b)2 is only correct.
c)both 1 & 2 are correct
d)None of them is correct.

35)void main()
{
extern int i;
i=20;
printf("%d",i);
}
a)20 b)0 c)compiler error d)linker error

36)float me=0.7;
double you=0.7;
if(me==you)
printf("I luv u");
else printf("I hate u");

37)Can constructors have return types

a)Cant have
b)Compiler can internally return values from constructors
c)Can jave



38)If pstr is a pointer.Tell which is better.
1)if((length(pstr)>=65) && (pstr!=NULL))
2)if((pstr!=NULL)&&(length(pstr)>=65))
a)Makes no diff
b)Only 1 is correct
c)Only 2 is correct
d)Both are wrong

39)void main()

static int var=5;
printf("%d",var--);
if(var)
main();

40)void main()
int const *p=5;
printf("%d",++(*P);

41)Mr Bean asked to design a student class(in C) to store
rollno,name,marks.If the task was given
to you ,U would implement using

a)Multridimensional array
b)structurs
c)LL
d)stack

42)main()

int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }

43)main()

int i=1;
switch(i)

default:printf("Default");

break;
case 1:
printf("one");
case 2:
printf("Two");
case 3:
printf("Three");
a)one b)default c)one two three d)one default

44)Containship is similar to

a)Generalization b)inheritance c)Delegation d)Genercity

45)Ternary Operator is

1)?: 2)>= 3)! 4)*

NCR TERADATA profile

NCR TERADATA profile

If your company is like many others today, you need far more than strategic insight from the vast amount of information you collect about your customers. You want to use that data to serve each customer as an individual -- intimately, knowledgeably, cost-effectively and securely. In short, you want the ability to treat each customer as your only customer. NCR technology and solutions are helping thousands of companies like yours do just that.

First, we enable companies the world over to touch millions of customers, millions of times each day. Whether these transactions and interactions take place across the counter, by telephone, at a kiosk or ATM machine, or over the Internet, NCR is there with hardware, software and solutions that make these interactions easier, more convenient and more relevant to your customers, while giving you and your company the tools you need to gather critical data about their individual preferences, needs and requirements.

Then we combine this unprecedented level of customer reach with powerful data warehousing solutions that help you use this information to better understand and serve each customer as a clearly defined market of one. NCR's data warehousing solutions can help you build new levels of brand loyalty and trust, and serve more customers in more ways than you ever thought possible.

We invite you to explore our complete portfolio of transaction and data warehousing solutions and see the many ways that NCR is helping companies like yours turn customer transactions into mutually beneficial customer relationships