Google

Saturday, January 19, 2008

Technical Wipro Latest

The test was of 1 hour 30 ques. g apti and 30 of
technical.......some
ques. of g apti were very lengthy so don,t end up in solving
them.....time was less......some 15 ques. from arithmetic......and
rest
15
logical,statement interpretation,arrangement,tense
correction......and
like
that......
i am enclosing here the 2 C questions :
1. given a square matrix which consists only of 1 and 0......find
which
rows,which cols and which diagonals consist entirely of 1,s.
2. given an array of integers find all possible combinations of
the
numbers whose sum equal to 90.....
ans : knapsack problem (in data structures - aho ullman)
Note : for them solution was not the criteria.......but the
approach
was important......the solution should be generalised and
optimized........optimization was given the top priority........
here is the techincal paper :
plz try to solve them urself by trying on comp.
1. const int MAX=10;
main()
{enum a {a,b,MAX};
print MAX;
}
2. enum object is a const which can only be assigned a value at
initialization or a variable which can be assigned any value in
the
middle of
the program?
3. void *p;
what operation cannot be performed on p?
ans : arithmetic operation unless it is properly typecasted
4. char **p="Hello";
print p,*p,**p
5. main()
{char str[]="Geneius";
print (str);
}
print(char *s)
{if(*s)
print(++s);
printf("%c",*s);
}
6. what does the function fcloseall() does ?
7. main()
{printf("Genius %d",fun(123));
}
fun(int n)
{return (printf("%d",n));
}
8. difference between definition and declaration.
9. find the error?
fun()
{int i=10;
if(i<10)
return 2.0;
else
return 3.0;
}
10. int a=9,b=5,c=3,d;
d=(b-c)<(c-a) ? a : b;
print d
11. 1+2/3*4+1=?
12. In C++, a variable can be defined wherever needed whereas not
in C
13. main()
{int i=4;
fun(i=i/4);
print i;
}
fun(int i)
{return i/2;
}
14. what is an array ?
15. printf("\" NITK %%SURAHKAL%% !\"");
16. difference between scanf and gets in case of string input
17. table t1 m rows and x cols
table t2 n rows and y cols
in t1*t2 rows? cols=?
ans. m*n ,x+y
18. symbol of realtionship between 2 entities?
19. which one cannot come in data modelling
a. customer b. student c. office d. speed
20. can a database table exist without a primary key ?
21. whether higher normal forms better than lower forms as far
redundancy is concerned ?
22. file is at which level
ans. conceptual level
23. what is a foreign key

 
 

There are 2 round of written test
One is Technical

The Technical Test has 30 qns to be answered in 30
mins
This is Just a MODEL
Questions will be asked on C, C++, Oracle, RDBMS ,
Java and data structures
C
--

1. The expression 1= 30*1000+2768; evaluates to A)
32768 B) -32768 C) 113040 D) 0
2. Which is wrong
A) mess=123.56; B) con=,T,*,A,; C) this=,T"*20; D)
3+a=b

3) What is the output of Ptograms
Main()
{ int a=500,b,c;
if(a>400)
b=300; c=2--; printf("\n%d%d",b,c);}
4) Identify the error in
Main()
{char c1=,a,,c2=,Z,;
if (c1==,a,or c2==,z,) printf("welcome");}
5) What will the following program print
Main()
{inti; for(i=0;i<=10;i++); printf("%d\n",i);}
6) What will be the values of x,y,& z
Main()
{
int x=10,y,a,
y=--X;
z=x--;
printf(%d%d%d\n",x,y,z);
}
7) What will be the output of
Main()
{
int i;
int marks[]={100,90,75,90,80};
for (i=0,i<4;i++)
disp(&marks[i]);
disp(int n)
{
printf("%d",*n);
}
8) What is the output of
Main()
{
int arr[]={1,2,3,4,5,6,7};
int *I,*j;
I=&arr[1];
J=&arr[5];
printf("%d%d",*j+*l,*j-*l);
9) When you pass an array as an argument to a
function, what actually gets passed?
a) Address of array b) Value of elements of array
c) address of first element of array d) no of elemets
of array
10 ) Which is the correct way of DECLARING OF FLOAT
POINTER
thatsthe end of C, C++
Java
----
Choose from given alternatives
1) What does a multithreaded server do ?
2) The synchronized keyword is used to .......
3) The action perfromed method in a user interface
handles action events such as .....
4) The List interface Implementation permits duplicate
elements in a collection object ( yes or No )
5) Which of the following will cause a beeping sound
to be emitted
a) System.out.println("\u0005");//CTRL-E
b)aComponent.beep();//where aComponent is of type
Component
c) aToolkit.beep();//where aToolkit isof type Toolkit
d) anApplet.beep();//where anApplet is of typeApplet
ORACLE ( SQL & PL/SQL )
-----------------------
1) Examine the structuere of Student table
Name Null Type
STU ID NotNUll Number(3)
NAME VARCHAR2(25)
ADDRESS VARCHAR2(50)

No comments: