Placement paper of TCS 1-3 TCS what is b? a) pointer to a character array which contains the filename b) filename whithin double quotes c) can be anyone of the above d) none

24) x = malloc (y). Which of the following statements is correct. a) x is the size of the memory allocated b) y points to the memory allocated t c) x points to the memory allocated d) none of the above

25) which is the valid declaration? a) #typedef struct { int i;}in; b) typedef struct in {int i;}; c) #typedef struct int {int i;}; d) typedef struct {int i;} in;

26) union { int no; char ch; } u; What is the output? u.ch = '2'; u.no = 0; printf (%d, u.ch); a) 2 b) 0 c) null character d) none

27) Which of these are valid declarations? i) union { ii) union u_tag { int i; int i; int j; int j; }; };

iii) union { iv) union { int i; int i; int j; int j; FILE k; }u; };

a) all correct b) i, ii, iv c) ii & iv d)

28) p and q are pointers to the same type of dataitems. Which of these are valid? i) *(p+q) ii) *(p-q) iii) *p - *q

a) all b) c) iii is valid sometimes

29) which are valid? i) pointers can be added ii) pointers can be subtracted iii) integers can be added to pointers a) all correct b) only i and ii

30) int *i; float *f; char *c; which are the valid castings? i) (int *) &c ii) (float *) &c iii) (char *) &i

31) int i = 20; printf (%x, i); what is the output? a) x14 b) 14 c) 20 d) none of the above

32) main () { char *name = name; change (name); printf (%s, name); } change (char *name) { char *nm = newname; name = nm; } what is the output? a) name b) newname c) name = nm not valid d) function call invalid

33) char name[] = {'n', 'a', 'm', 'e'} printf (name = \n%s, name); a) name = name b) name = followed by funk characters c) name = \nname d) none

34) int a = 0, b = 2; if (a = 0) b = 0; else b *= 10; what is the value of b? a) 0 b) 20 c) 2 d) none

35) int x = 2, y = 2, z = 1; what is the value of x afterh the following statmements? if (x = y%2) z = crap else crap

a) 0 b) 2 c)1 d)none

37) output? initially n = -24; printd (int n) { if (n < 0) { printf (-); n = -n; } if (n % 10) printf (%d, n); else printf (%d, n/10);

printf (%d, n); } a. -24 b.24 c. d.-224

38) float x, y, z; scanf (%f %f, &x, &y);

if input stream contains 4.2 3 2.3 ... what will x and y contain after scanf? a. 4.2, 3.0 b. 4.2, 2.3 c. d.

39) #define max(a,b) (a>b?b:a) #define squre(x) x*x

int i = 2, j = 3, k = 1; printf (%d %d, max(i,j), squre(k));

output? a.32 b.23 c.31 d.13

40) struct adr { char *name; char *city; int zip; }; struct adr *adradr; which are valid references?

TCS Placement Paper 3.pdf

28) p and q are pointers to the same type of dataitems. Which of these are ... followed by funk characters. c) name = \ ... Page 1 of 1. TCS Placement Paper 3.pdf.

62KB Sizes 20 Downloads 295 Views

Recommend Documents

MindTree Placement Paper - ITtestpapers.com
May 5, 2005 - 30 mins for aptitude and 15 mins for coding. I remeber few q's: ... The speed of the truck is 16km/hr slower than car. Find the .... category.html.

MindTree Placement Paper - ITtestpapers.com
May 5, 2005 - 30 mins for aptitude and 15 mins for coding. .... www.ittestpapers.com/articles/mindtree-paper---05-may-2005---bit-campus.html#ixzz0rb7jcuLR.

ADP Placement Paper 5.pdf
Page 1 of 1. Hi Friends,. I had attended 4 ADP on june 18th the pattern is as follows firstly the written test takes place in that u will be asking aptitude,. some c q's ...

Satyam Placement Paper 33.pdf
3.intel's first micropro...a.pentium b.pentiumproetc ... 9.diff between 8087,8086 (which is latest vers.) 10.some ... Displaying Satyam Placement Paper 33.pdf.

Mphasis Placement Paper 2.pdf
Page 1 of 1. 2009 Mphasis Placement Papers Interview Experience. MPHASIS PAPER ON 7th SEPTEMBER 2009. Hi, I'm K.K.Aravindhan doing my final year ...

Motorola Placement Paper 3.pdf
format and 10 questions were multiple choice questions. 1. ... then printf(%s,5[p]); ... code for finding out whether a string is a palindrome,reversal of linked list, ...

Sample Placement Paper of Aakash Institute.pdf
Sample Paper. Aakash ..... In a certain code, "Beautiful I peacock saw" is given .... (1) Mango. (2) Banana. (3) Apple. (4) Carrot. 87. Complete the series. ? (1). (2).

Flextronics Placement Paper 9.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...

Capgemini Placement Paper 3.pdf
Capgemini Placement Paper 3.pdf. Capgemini Placement Paper 3.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Capgemini Placement Paper ...

CTS Placement Paper 2.pdf
I told OS and COMPUTER NETWORKS. So asked me to explain types of scheduling.asked me few more from OS.†did not know the†answer. HR: tell me about ...

cts-placement paper 2010.pdf
Page 2 of 3. he hears of 'four-dimensional' things, he is seized by a feeling, which is very similar to the. thoughts awakened by the occult. And at the same time the statement that the world in which we. live is a four-dimensional space - time conti

Deloitte Placement Paper 3.pdf
They expect students to be strong in the Enterprise application and Technology integration field. QUESTION PATTERN AND A FEW QUESTIONS. The pattern was similar to CTS pattern as the HR's were former CTS employees. The booklet given here was PINK. 40

Satyam Placement Paper 3.pdf
the h.r and finally got the job.and i am the one of them.i would like to share my ... 12)a problem from data interpretation..it was on line graphs...very big..not easy ...

Mindtree Placement Paper 6.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

Flextronics Placement Paper 2.pdf
Ans. Divide and Conquer. 23. Program counter is incremented in. a. fetch (ans). b. decode. c. execute. 24. what does the following program do ? f(int n). {. int c;.

Satyam Placement Paper 27.pdf
... and Interviews of Satyam held on 13th and 14th of September in Bangalore. ... Now,they asked whats the best way for A to send mails to B.. ... *How does JAVA implement multiple inheritance?[extends classes & implements interfaces]. HR.

Honeywell Placement Paper 3.pdf
Most of the question were from SOFTWARE ENGINEERING, C programming, Data structures, Operating systems such as- -> SDLC (software development life cycle)-what r various models [waterfall, prototype, iterative enhancement, spiral], wht r. the steps un

Cisco Placement Paper 1.pdf
Page 1 of 1. Placement Paper of CISCO. CISCO. ††††† (October, 2004). 1. In order to find out stack fault of a three input nand gate how many necessary input vectors. are needed ? 2. What is parity generation ? 3. A nand gate becomes ___ gat

Wipro Placement Paper 11.pdf
2)a person is running at a speed of 18km/hr After one† min a bomb blasts .Sound travels at ... If(0==fork()). ††† I+=10; ... Displaying Wipro Placement Paper 11.pdf.

ICICI Placement Paper 6.pdf
If the cost of the car is Rs.60 and a profit of 10% over selling price is earned (Ans: Rs 66/-)16. 1/3 of girls , 1/2 of boys go. to canteen .What factor and total number of classmates go to canteen. Ans: Cannot be determined. 17. The price of a prod

Deloitte Placement Paper 1.pdf
Page 1. Whoops! There was a problem loading more pages. Deloitte Placement Paper 1.pdf. Deloitte Placement Paper 1.pdf. Open. Extract. Open with. Sign In.

eFunds Placement Paper 1.pdf
2) Some questions related 2 windows.... Ans) FAT ... a) clustered b) nonclustered c) unique but clustered or no clustered... etc. 5) Which is ... Technical interview (30 - 45 min) questions from C, C++, Area of interest & final sem project. if v stud

Keane Placement Paper 3.pdf
6) program to check whether the given no is armstrong. number or not? Page 3 of 7. Main menu. Displaying Keane Placement Paper 3.pdf. Page 1 of 7.

HAL Placement Paper 3.pdf
... were given and were asked to find whether it is parabola, eclipse, carboid or ... is the present capacity of unit generation 200MW, 210 MW, 375MW or 500 MW.