IT Community - Software Programming, Web Development and Technical Support

Interview questions from TOP IT Companies

This is a discussion on Interview questions from TOP IT Companies within the Interview Questions & Answers and Tips forums, part of the DiscussWeb IT Curriculum category; Hi techie friends, Here in this thread I am going to provide you some useful and Big IT companies papers. ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > DiscussWeb IT Curriculum > Interview Questions & Answers and Tips

Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2007, 01:08 AM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Interview questions from TOP IT Companies

Hi techie friends,

Here in this thread I am going to provide you some useful and Big IT companies papers. It surely help to our new techie and fresher friends. In this thread i will provide as much as information about all those interviews and as much as possble answers of some questions.

Infosys Recent May 2006


1)consider that there are 3 boxes, each box contains 2 shelfs.In each shelf either a Emerald or Ruby is placed inside it. The boxes are named such that if each box contains either Emerald or Ruby so if the box contains both Rubies it is named as ‘RR’also if it contains both Emeralds it is then named ‘EE’or ‘ER’if it contains one as Emerald and other Ruby.What is the probability that the box contains any one of these combinations?

2)A school boy meets a tractor station and Railway crossing daily while going to school.Every day he meets the tractor station at ¼ of the distance at 7:30 and 1/3 of distance (ie.,the railway crossing) at 7:35.At what time did he start from home an when does he reach the school?

3) The member of certain tribe are divided into 3 casts abhor,dravid magar
1 An abhor woman cant marry dravid man
2 An magar man cant marry a dravid man
3 A son takes the caste of his father a daughter takes cast of her mother
5 All marriages except those mentioned are not permitted
6 There are no children born out of a wedlock

Q]An abhor woman a alternative is true ---can have a dra, grandson
q]it can be refer from conditions described that a magar man
ans is 2 &3 only iii choice --cant have a dravid mother & may have abhor mother
q]an abhor marries & has there children all of are members of
abhor acsateeich of following is true
ans i & ii only --i is if c were married to a magar man
ii-- if c were married to abhor man, they have a male child


4)In a city there are 3 dragons A,B,C were present to rule a province and produce fire.If A takes as many years as B .A equals half the square root of C’s period and B equals twice the square root of C’s period.How long it took for all the three dragons to rule the city?

5)There are 5 persons Ramesh,Eherna,Suki,Bala,peter. One o them went to Circus last week.But they give the following statements when asked they give the answers to us as follows:
Ramesh:
a>I didn’t go to circus
b>Suki only went to circus
c>I saw the circus news in journal
Eherna:
a>I didn’t go to circus
b>I went to circus last month
c>I watched the circus news in the journal
Suki:
a>I didn’t go to circus
b>Bala went to circus
c>I just passed by the circus tent
Bala:
a>I didn’t go to circus
b>What others say is not true
c>I saw the news in the magazine
Peter:
a>I didn’t go to circus
b>Bala went to circus
Find who went to the circus?


6)A thread of 20 mts is divided into 3 segments such that the piece forms the perimeter of the square.
a)find the probability of forming the larger square from the larger thread such that its area is greater than o equal to 4 sq.mt
b)Find the probability of getting a square whose area is greater than 21 mts


7)A lady went for a shop to buy some articles A and B.She buys 4 A’s and 3 B’s which costed about Rs.31.Then immediately she changed her mind and buys 3 A’s and 4 B’s and the shop keeper said “U are Re.1 shy”. The lady took the goods and went away and she says “U are Re.1 shy”.What is the cost of A and B?


8)in an org there would have been 30 emp if:
a: no of females were twice the existing or
b:no of males were thrice the existing .
find no of emp currently.


9)4 persons a,b,c,d. 2 robbers,1 forger,1 blackmailer
b is blackmailer.
some more conditions
but most imp := a has not worked with the robbers ( not exactly same
words but it is the implied meaning)
who is forger?
ans : a


10)Of the 100 people who apperaed for an interview 75 had taken a
coure in physics, 83 had taken a course in chemistry, 10 had not
taken a course both in physics and chemistry. How many of them had
taken cousrses both in physiscs and chemistry.


Will Continue....

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-26-2007, 08:27 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Hi Guys,

Here is Wipro Test Paper conducted in 2003. I given some answer but i am not sure it is absolutely right or not.

Wipro Technologies 2003(NIT Durgapur)


1) What is the protocol used for getting the physical address by supplying
IP address of a node ?
[i] ARP
[ii] RARP
[iii] BOOTP
[iv] DHCP

Ans. [i]


2) Which is true for binary search ?
[i] Traversal scheme
[ii]
[iii]Greedy algorithm
[iv] Divide and conquer algorithm

Ans. [iv]


3) Which one has no L-Value
[i] a[i]
[ii] i
[iii] 2
[iv] *(a+i)

Ans . [iii]


4) What is the output of the following code snippet
main()
{
printf(5+"Fascimile");
}

Ans. mile


5) In which layer ROUTING is performed ?
Ans. Network Layer


6) Opposite meaning of SPUR.
Ans.


7) Opposite of HARBINGER .

Ans. Follower


8) Opposite meaning of PROTRUSION.
Ans.

9) Opposite meaning of RESTIVENESS.

Ans.Docility.


10)Point out error in the follwing sentence:I got the book in the
office and slipped it out.
[i]I got the book.
[ii] in the.
[iii]office and .
[iv] slipped it out.

Ans:[iv].


Will continue with another set of paper of other company.

Bye
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-27-2007, 11:50 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Hi friends,

This time i give you Zensor Technologies Sample Paper. They conducting paper by covering most of C and C++ language, few Mathematics, and few technical stuff. Here is this ->

Zensor Technologies

Written Test

Mathematics

1) Two liquids A : B in ratio 7:5 and now 24 gallons drain out and b is added the ratio becomes 5:7 what is containr capacity ?
30, 48 , 84, none


2) man has rope of length 660 mtr to fence a area , what is the max area he can fence ?


3) Son is about to celebrate 10th birthday. after 11 years his age will be half the average of his parents. his mother is 17 years older to him. what is the age of the father.

4) DI question where hotels project are given and no of rooms in each hotels , investment , project yr . and company name
were asked to find min cost per room is for which hotel , which avg cost per room etc.


5) Avg of 6 no is 8 what 7 th no shud be added to make avg 10;


6) difference of cube of a no and its square is a perfect square , what is the no. -> 5


7) diff of three consecutive nos square and the nos is 214; find the nos :

C Language

8) #define sqr(x) x*x, what is value of j if j == 2 * sqr(3 + 4)

9) What is the output
#include
main()
{
int n=0;
int i;
i=2;
switch(1)
{
case 0:do{
case 1:n++;
case 2:n++;
}
while(--i>0);
}
printf(\"n==%d\",n);
}

a. compile error
b. 4
c. 1
d. 0


10)what is true from
a. base call ferernece is compatible with child class
b. child class reference is compatible with base class
c. no reference to class


11)int fun(), how do u define pointer to this function ??

12)what is ment by int (* xyz)[13]

13)if(fp == fopen(\"dfas\",\"r\") = = NULL), what is the value of fp
a. NULL
b. 0
c. 1
d. 0 or 1


14)class b
{
}
class a
{
friend class b
}
then what is ture
a. a can access all protected and public members in b
b. b can access all protected and public members in a
c. a can access all members of a
d. b can access all members of b



Continued...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-27-2007, 11:53 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Friends,

Here is Interview stuff of Zensor Tech.

Zensor Technologies

Interview Questions


1) Write a minimal C++ program .


2)
(a) Talk about yourself
(b) What are your strengths.
(c) Where do you think you have to improve.
(d) Where do you see yourself after 5 years



3) main()
{
int i==2;
int a==4;
if((i+==3)>a)
{
printf( \" TRUE \");
}
else
{
printf(\"FALSE \");
}
}

What is the output of the program ..
Ans ) TRUE , coz i+==3 becomes incremented and i becomes 5 . So i is greater than a



4) What is an OS ?


5) What is a Data Structure ?


6) It is a an abstract data type where some operations can be defined and performed on the data. It makes the task of a programmer easy coz it has all the set of data and operations at a particular place

7) What is OOP.

8) What is Object Oriented Analysis and design.

9) How do u communicate between object and class.

10) What is the role Software in the real life in current scenario.

11) What is object and how it is similar to real life entity

12) What is extranet, intranet, internet

Will be back with more papers.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-28-2007, 10:57 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Hi Friends,

Here is one sample paper of Patni Computer Systems.

Patni Computer Systems

1) find floating point result (float)25/2, float(25/2), 25/(float)2 ,25/2
Ans: 1 & 3

2) find equivalent *(*(s+x)+y) ==> s[x][y]
Ans: content of s[x][y]

3) find invalid statement : int a[3]
1. scanf("%d",a[2]);
2. scanf("%d",&a[2]);
3. scanf("%d",a);
4. all
Ans: 1

4) main program:
i=foo(2) foo(int s)
{
if(!s)
return s;
else
{ int i=5; return i}
}
Ans: 5

5) k=0 i=0j=1;
if(i0)&&(k=2) printf(k);
if(i0|| k=0)
printf(k)
Ans: 2 2

6) cube is moulded as a sphere. find the ratio of cube of surface area of sphere to squareof surface area of cube.
Ans: pi/6

7) 3 vowels,4 consonents formulate string of 6 letters with a vowel in a string max no of string ?
Ans: 5040

8) man walks at speed of 8 km/h 300 mtrs length train crosses man in 30 sec from back, find speed of train
Ans: 44 km/hr

7) main()
{
int i;
for(i=0;i<3;i++)
switch(i)
{
case 1: printf("%d",i);
case 2 : printf("%d",i);
default: printf("%d"i);
}
}
Ans: 011122

8) Radius of a circle is 5cm , if we draw a rectangle of maximum size, what is the area of rectangle
Ans: 50 cmsq

9) There r 3 boys 7 4 girls; Howmany ways they r arranged such that boys should be always together ???
Ans: 240

10) A,B,C,D has values from 0 to 9.... What is D ?
Ans: 6

11) Two motor cycles A & B are started from one point at 4 Kmph & 6 Kmph; After 45 min B starts returning , at what
time they will reach....
Ans: 3.6 km
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-29-2007, 09:13 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Smile Re: Interview questions from TOP IT Companies

Hi friends,

Here is Covansys Placement Paper conducted on 2003. Only applitude test paper mentioned here. Except that they asked some language question of C, java and OS related some technical stuff they asked.

COVANSYS-Placement Paper

Aptitude :

1) All the children were arranged in rows.all the rows containing equal no.of students.
If 4 students were removed from each row 10 more rows had to be added.if 5 students were added in each row no.of rows were reduced by 8.find the no.of children. the choices were like this
1)400
2)500 etc..
Ans) 800

2) 2/3 of people read newspaper A , 3/4 read newspaper B.if 38 read both and 8 didn’t read any of the 2.how many read A?
Ans) 48

3) There are 5 questions based on a murder story.the questions concentrate on the seating arrangements of people mentioned.

4) A plane goes from Chicago to Columbus and then comes back. It takes the same time to travel in either ways. It leave Chicago early in the morning 0644 LOCAL TIME and reaches the destination Columbus at 0849 LOCAL TIME. In the same evening it leave Columbus at 1625 hrs LOCAL TIME and reaches the destination at 1638 LOCAL TIME. Find the time that the plane takes to travel either way?
Ans) 69 mins

5) There is a 14 digit credit card number in which every 3 consecutive digits add to 20. Here is a part of it.. Find the value of ‘x’?
_ _ _ 9 _ _ _ x _ _ _ 7 _ _

Ans) 4

6) Ram gets 148 marks for 20 questions. +10 for correct. -3 for wrong. How many correct answers?
Ans) 16

7) Ganesh and Shankar travel abroad and take more luggage than the airlines allow. They have to pay extra money for it. They carry 52 kgs together and pay $60 and $100 respectively. Now, if the same luggage was carried by only Ganesh it would cost him $340. If the airlines charges only at one rate for extra luggage what is the maximum luggage that a person can carry without paying extra?
Ans) 18 kgs

8) There are 6 consecutive numbers P, Q, R, S, T, U, not necessarily in that order. Given that, Q is 2 less that P, P is 3 less that T and R is 2 less than S, arrange them in an ascending order.
Ans) QRPSUT

9) Number of digits with a 2 in them between 100 and 400?
Ans) 138

10) Bactria double every 3 mins. It is N in 1 hour, when was it N/4?
Ans) 54 minutes.

11) One day the Finance minister decides that the country should have only 33 paise and 56 paise.If there are two traders having enough change in the two denominations, what is the minimum amount for which they can transact?
Choices :1,2,3,6
Ans) 3

12) Out of the following numbers which is the greatest number when 7 times that number is < 100
1) 12 2) 13 3) 15 4) 14
Ans) 14

13)There is 31 days in the month of January. If there is 4 Sundays and 4 Thursdays exactly.what day is the first day of the month?
a)Monday
b)Tuesday
c)Wednesday
d)thursday
Ans) a) Monday. Please cross check the answer

14)there are 5 tyres including a spare tyre.total number of Kms to be covered is 10000 and each tyre should run equally.how may Kms does each tyre run?
I don’t remember the order of the choices but the figures were like this
a)7500
b)8000
c)8500
d)
Ans) 8000.


Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-30-2007, 02:12 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 200
krishnakumar is on a distinguished road
Cool Re: Interview questions from TOP IT Companies

Hi,
I need Tata Consultancy Services Latest Placement Paper... Can u help me...
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-30-2007, 03:06 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 385
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Interview questions from TOP IT Companies

Hi Krishna,

Here i give the list of the Aptitude questions and some with answers,

TCS Aptitude Test Paper-2005



1. If VXUPLVH is written as SURMISE, what is SHDVD?

Expected Answer:
PEASA (hint: in the first word, the alphabets of the jumbled one is three alphabets after the corresponding alphabet in the word SURMISE. S = V-3, similarly find the one for SHDVD)


2. If DDMUQZM is coded as CENTRAL then RBDJK can be coded as ---------

Expected Answer:
QCEIL (hint: Write both the jumbled and the coded word as a table, find the relation between the corresponding words, i.e C= D-1, N=M+1 & so on


3. In the word ECONOMETRICS, if the first and second , third and forth ,forth and fifth, fifth and sixth words are interchanged up to the last letter, what would be the tenth letter from right?

Expected Answer:
Word is CENOMOTEIRSC tenth word is R


4. Find the result of the following expression if, M denotes modulus operation, R denotes round-off, T denotes truncation: M(373,5)+R(3.4)+T(7.7)+R(5.8)

Expected Answer:
19


5. What is the largest prime number that can be stored in an 8-bit memory?

Expected Answer:
--


6. Find the physical quantity in units from the equation: (Force*Distance)/(Velocity*Velocity)

Expected Answer:
Ns2/m


7. Find the value of @@+25-++@16, where @ denotes "square" and + denotes "square root".

Expected Answer:
621


8. If f(0)=1 and f(n)= f(n-1)*n, find the value of f(4).

Expected Answer:
24


9. Convert the decimal number 310 to the base 6..

Expected Answer:
1234


10. Find the missing number in the series: 2, 5, __ , 19 , 37, 75

Expected Answer:
9


11. In a two-dimensional array, X(9,7), with each element occupying 4 bytes of memory, with the address of the first element X(1,1) is 3000, find the address of X(8,5).

Expected Answer:
--


12. Find the fourth row, having the bit pattern as an integer in an 8-bit computer, and express the answer in its decimal value.
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
(AU(B-C)) ?


Expected Answer:
29


13. Complete the series 2, 7, 24, 77,__ (hint: 2*12= 24, 7*11= 77, therefore 24*10= 240)

Expected Answer:
240


14. Select the odd one out
a. Oracle b. Linux c. Ingress d. DB2


Expected Answer:
Linux


15. Select the odd one out
a. SMTP b. WAP c. SAP d. ARP


Expected Answer:
SAP


16. Select the odd man out
a. Java b. Lisp c. Smalltalk d. Eiffel


Expected Answer:
Eiffel


17. Which of the following are orthogonal pairs?
a. 3i+2j b. i+j c. 2i-3j d. -7i+j


Expected Answer:
--


18. Number of faces, vertices and edges of a cube
a. 12,8,6 b. 4,6,8 c. 6,8,12 d. 6,12,8


Expected Answer:
6,8,12


19. Find the 566 value of the decimal number to the base 7.

Expected Answer:
1436.


20. Complete the series:5,6,7,8,10,11,14,__.

Expected Answer:
15


21. If the vertex (5,7) is placed in the memory. First vertex (1,1) ‘s address is 1245 and then address of (5,7) is ----------

Expected Answer:
--


Hope it helps !!!
__________________
-Murali..

Last edited by Murali : 08-30-2007 at 07:55 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-30-2007, 10:24 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Hi Krishna,

As Murali provided one of the TCS latest paper here if one more which held on 2006-07 [Not sure about month and also do not have answer]. I hope that too helpful for u.

TCS Test Paper - C language

1) Read the function conv() given below
conv(int t){
int u;
u=5/9 * (t-32);
return(u);
}
What is returned

(a) 15
(b) 0
(c) 16.1
(d) 29


2) Which of the following represents true statement either x is in the range of 10 and 50 or y is zero

(a) x >= 10 && x <= 50 || y = = 0
(b) x<50
(c) y!=10 && x>=50
(d) None of these


3) Which of the following is not an infinite loop ?

(a) while(1)\{ ....}

(b) for( ; ; )
{
...
}

(c) x=0;
do{
/*x unaltered within the loop*/
.....}
while(x = = 0);

(d) # define TRUE 0
...
while(TRUE){
....}



4) What does the following function print?
func(int i)
{ if(i%2)return 0;
else return 1;}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);
}

(a) 3
(b) 1
(c) 0
(d) 2


5) How does the C compiler interpret the following two statements
p=p+x;
q=q+y;


(a) p=p+x;
q=q+y
(b)p=p+xq=q+y
(c)p=p+xq;
q=q+y
(d)p=p+x/q=q+y



For questions 6,7,8,9 use the following alternatives

a.int
b.char
c.string
d.float

6) '9'

7) "1 e 02"

8) 10e05

9) 15


10) Pick out the add one out

(a) malloc()
(b) calloc()
(c) free()
(d) realloc()


11) Consider the following program

main(){
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is

(a) 1
(b) 3
(c) -6
(d) none


12) # define prod(a,b)=a*b
main(){
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }

the output of the program is

(a) 8
(b) 6
(c) 7
(d) None


13) Consider the following program segment

int n,sum=1;
switch(n){
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}

If n=2, what is the value of sum

(a) 0
(b) 6
(c) 3
(d) None of these

14) Which of the following statements is incorrect

(a) typedef struct new{
int n1;
char n2;
} DATA;

(b) typedef struct {
int n3;
char *n4;}ICE;

(c) typedef union{ int n5;
float n6;} UDT;

(d) #typedef union {
int n7;
float n8;} TUDAT;


Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-30-2007, 10:34 PM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Interview questions from TOP IT Companies

Friends,

Few more questions of TCS C language Test Paper.

TCS Test Paper


1) The C language terminator is

(a) semicolon
(b) colon
(c) period
(d) exclamation mark


2) What is false about the following -- A compound statement is

(a) A set of simple statments
(b) Demarcated on either side by curly brackets
(c) Can be used in place of simple statement
(d) A C function is not a compound statement.


3) What is true about the following C Functions

(a) Need not return any value
(b) Should always return an integer
(c) Should always return a float
(d) Should always return more than one value


4) Main must be written as

(a) The first function in the program
(b) Second function in the program
(c) Last function in the program
(d) Any where in the program


5) Which of the following about automatic variables within a function is correct ?

(a) Its type must be declared before using the variable
(b) Tthey are local
(c) They are not initialised to zero
(d) They are global


6) Write one statement equivalent to the following two statements

x=sqr(a);
return(x);

Choose from one of the alternatives

(a) return(sqr(a));
(b) printf("sqr(a)");
(c) return(a*a*a);
(d) printf("%d",sqr(a));


7) Which of the following about the C comments is incorrect ?

(a) Ccommentscan go over multiple lines
(b) Comments can start any where in the line
(c) A line can contain comments with out any language statements
(d) Comments can occur within comments


8) What is the value of y in the following code?
x=7;
y=0;
if(x=6) y=7;
else y=1;

(a) 7
(b) 0
(c) 1
(d) 6


9) Read the folllowing code

# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x<MIN)
x=-1;
x=50;
if the initial value of x=200,what is the value after executing this code?

(a) 200
(b) 1
(c) -1
(d) 50


10) A memory of 20 bytes is allocated to a string declared as char *s
then the following two statements are executed:
s="Entrance"
l=strlen(s);
what is the value of l ?

(a)20
(b)8
(c)9
(d)21


11) Given the piece of code

int a[50];
int *pa;
pa=a;

To access the 6th element of the array which of the following is incorrect?

(a) *(a+5)
(b) a[5]
(c) pa[5]
(d) *(*pa + 5}


12) Consider the following structure:

struct num nam{
int no;
char name[25];
}

struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nichol as"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);

What does the above statement print?

(a) 8,9
(b) 9,9
(c) 8,8
(d) 8,unpredictable value


13) Identify the in correct expression

(a) a=b=3=4;
(b) a=b=c=d=0;
(c)float a=int b=3.5;
(d)int a; float b; a=b=3.5;


14) Regarding the scope of the varibles;identify the incorrect statement:

(a)automatic variables are automatically initialised to 0
(b)static variables are are automatically initialised to 0
(c)the address of a register variable is not accessiable
(d)static variables cannot be initialised with any expression


15) cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;
is equivalent to which of the following?

(a)if cond 1
exp 1;
else if cond 2
exp 2;
else if cond 3
exp 3;
else exp 4;

(b) if cond 1
if cond 2
if cond 3
exp 1;
else exp 2;
else exp 3;
else exp 4;

(c) if cond 1 && cond 2 && cond 3
exp 1 |exp 2|exp 3|exp 4;

(d) if cond 3
exp 1;
else if cond 2 exp 2;
else if cond 3 exp 3;
else exp 4;


Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix Interview Questions latchu Interview Questions & Answers and Tips 52 09-25-2009 02:17 AM
Asp Interview Questions sureshbb ASP and ASP.NET Programming 35 10-29-2008 07:58 PM
SAP Interview Questions and Answers S.Vinothkumar Interview Questions & Answers and Tips 88 03-26-2008 07:48 AM
MYSQL interview questions it.wily Interview Questions & Answers and Tips 1 09-04-2007 03:33 AM
Interview Questions shiva Interview Questions & Answers and Tips 6 08-24-2007 01:28 AM


All times are GMT -7. The time now is 03:33 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0