-->



CSC Placement Paper


1. main(){
float fl = 10.5;
double dbl = 10.5
if(fl ==dbl)
printf("UNITED WE STAND");
else
printf("DIVIDE AND RULE")
}

what is the output?
a)compilation error
b)UNITED WE STAND
c)DIVIDE AND RULE
d)linkage error.
Ans : b

2. main()
{
void vpointer;
char cHar = 'g', *cHarpointer = "GOOGLE";
int j = 40;
vpointer = &cHar;
printf("%c",*(char*)vpointer);
vpointer = &j;
printf("%d",*(int *)vpointer);
vpointer = cHarpointer;
printf("%s",(char*)vpointer +3);
}

what is the output?
a)g40GLE
b)g40GOOGLE
c)g0GLE
d)g4GOO
Ans: a

3.
#define FALSE -1
#define TRUE 1
#define NULL 0
main() {
if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}

what is the output?
a)NULL
b)TRUE
c)FALSE
d)0
Ans: a

4.what is done for push operation??
Ans: Stack Pointer in incremented and value is stored

5.The OR gate can be converted to the NAND function by adding----gate(s)to the input of the OR gate.

6.What is structures ?

7.what it LAN?

8.What is DBMS ?

9. If x,y are 2 positive integers and they are derived as follows:
f(0,y)=y+1.
f(x,0)=x
f(x,y)=f(x-1,f(0,y-1))
f(0,0)=1
then what is the value of f(3,0),f(1,2) etc and how f(1,2) can be derived in terms f(0,0),f(0,2),f(3,0)

10. How many layers are there in OSI and brief them ?

11. What is resource allocation ?

12. Write bankers algorithm

13. Write safety algorithm

14. What is deadlocks, how to resolve them, conditions for dead lock etc.

15. Write a program for call by value, reference, what is the difference, etc.

16.What are different types of data structures?, which is better stack or queue, applications of both etc.