Ubinetics
Ubinetics Placement Question Papers
1. Difference b/n scanf("%s",msg);and scanf("%[^n]",msg); where msg is a char array.
2. What is ure of comma operator in for loop.
3. int shw(int *a){
*a = 10;
/* return stmt is missing */
}
main(){
int p=3,q=4;
q = shw(&p);
printf("%d %d",p,q);
}
4. which is true
a. all automatic variables are declared with in the function
b. all variables are automatic
c. all not declared variables are automatic
d. none
5. What is recursion. Recursive prog to generate Fibonacci series . Is it a best method?
6. write 7*a interms of +,-,<<
7. count number of 1’s in a 32 bit integer.(i had not remembered whether array or integer).
8. main(){
char *s1 = “hello",*s2 ="abce";
strcpy(s1,"");
s2[0] = s1[0];
printf("%d%d",strlen(s1),strlen(s2));
}
9. regarding memset
10.Algorithm to delete a node in Double linked list.
11. Difference b/n fgets,fscanf which u will prefer.
Unix
11.What is creon and whats diff b/n ‘at’ command.
12. what is system call and lib function. whats diff b/n them. abt execve - expalin.
13.some thing abt makeall
14. write abt TCP,IP,ICMP