Way2Abroad.com MBA, GRE, TOEFL and Educational News

22Jan/110

ISOFT Placement Paper | iSOFT Technical-C Questions | iSOFT Latest Test Paper

ISOFT Placement Paper (Technical-C Questions)

1. a=5,b=3,c=a,b

d=(a,b)

printf(c,d)

Ans:c=5,d=3

2.e(int n)

{

if(n>0)

{

...(not clear)

printf("%d",n);

e(--n);

}

return

}

Ans:0,1,2,0

3.
which has no problem with pointers

int *f1()

{

int n;

return (n)

}

int *f2()

{

int *p;

*p=3;

return p;

}

int *f3()

{

int *p;

p=malloc();

return p;

}

Ans:no error

4. header file ->contains declarations.

5.sizeof operator is executed during compile time..

6.*p+=1

*p++

are these two same?

not same.

7.func(int i)

{

static int count;

count=count+i;

}

Ans:1+2+3...(counts values does not go after funtion call

8. is('a'<'b') true

9. short int=16 bits

10. 4 stmt. ans.int float i;

11.
.int num[3];

num[3]=2;

Ans:first stmt deals with size

second deals with element

12. j=4

for(int i=0;i<5;i++)

{

j++;

++j;

}

output of j.

Ans:14

13. char s1[20]="hello world";

s1[5]="\0";

printf("%d",strlen(s1));

printf("%%.%...(not clear)",s1);

}

Ans: bad format specifier

14. brace { used in c for what

Ans:convention

15. parameters in c passed by

Ans:value.

16.when an array is passed it is by

Ans:pointer

17. scanf can read

Ans:any data type

18.
which cant be passed to subroutine.

Ans:pre processor directive.

19.to get string of words.

Ans:gets()

20.
external variables can be accesed

Ans:in functions which use them.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

Trackbacks are disabled.