Covansys placement papers with Answers for 2006 or Covansys India Sample written Test Papers are below.The Question papers for Covansys can be checked.
Covansys placement paper 2006
C/C++ paper
10) i=0;
a = 1;
b = 4;
swap(int a, int b)
{
int temp;
temp = a;
a = b;
b = a;
i = 1;
}
Output
a)4 0 0
b)0 4 1
c)1 4 1
d)Error
The questions is similar to this but am sure of the answer it is
Ans: 4 0 0
11)difference between member function and a constructor?
Ans: constructor cannot return value.
12)class B is the subclass of class A.which of the following describes the relationship?
a)…is a..
b)..has a…
c)…implemented as..
d)
ans : I guess …is a.. (Im not sure)
2) how will u retrieve the value stored in pointer variable a
1.a
2.&a
3.*a
Ans : a
3) How to pass two arguments to a function prompted to by function pointer
a) g -> (1,2) b)*g(1,2) c)(*g)(1,2) d)g(1,2)
Ans: c) (*g)(1,2)
4) Encapsulation
a)Aggregation of member objects
b)Aggregation of member functions
c)Used to incorporate data hiding
Ans: c)
5) Float_ptr = new float[100]
In order to deallocate this memory use
a)delete float_ptr
b)delete [] float_ptr
c)delete float_ptr [100]
d)delete float_ptr []
Ans:b)
6) i = 12
int *p = &I;
print (“%d %d”, p/p,*p**p)
Output
a) 1144
b) 144144
c) O/p Error
d) Junk
Ans:c)
7) What is Virtual member function?
Cin, Cout are
a)Class
b)Objects
c)Methods
d)Keywords
Ans: objects
9) cout << ( cout << “Hello” )<< “World”
Ans: HelloWorld
Language : VB
1) How will u keep the exisiting values of a array when enlarging it
Ans : Using Redim Preserve
2) for i = 0 to 5
a[i] = i
print a[i]
next i
how would it get printed in the form?
1.012345
2.0
1
2
3
4
5
3.12345
4.1
2
3
4
5
Ans : guess the choice is 2
Note : the question is some what similar to this, have a look at how print stmt’s result would be
3) Resume used in conjunction with
a)On Error b)Error c)Error GOTO
Ans:On Error
4) Creating a new object using
a)New b) New, Create Object
c)New, Create Object, Set
d) New, CreateObject, Set Get Object
Ans: a) New
5) DIM x, y, z as Integer
Ans: X, Y variants, Z – Integer
6) Dim Counter;
For Counter = True to False
Print Counter
Next
Output :
a)Error msg b) True False c) -1 0 d) True
Ans: c) -1 0
7) Form load
textbox.text = “Hello”
on form load what all events will take place
a) Initialise b) Initialise, load c) Initialise, load, activate
d) Initialise, load, activate, validate
Ans: (c)
Connection object, command objection. How can u
associate both?
a)Set command object.activeconnection = connectionobject
9)some code segment was given (I don’t remember that) but the question was about this statement.
Print A A (A is a variable)
How VB will react?
10) var1 is declared as global variable.proc1( ) and proc( ) have local variables.when a call is made from proc1( ) to proc ( ) which are the variables will be displayed in locals window?
11)how do u unregister a COM from registry?
Ans) I think the third option .the answer will start with regsvr32 /u ..
12)what will happen when Require Variable Declaration option is checked?
a) existing undeclared variables are converted to variant by VB
b) this comes into effect for the new code segment
c)
d)
I don’t remember the options.plz understand how Vb reacts to this situation.
13)A global module called global.bas is creates.which part of the program can access this module?
The options were ambigous.be clear about the scope of the global.bas module and the aplication which access it
OS : WINDOWS
1) Spooling is used with which hardware
1.network adapters
2.printers
Ans:Printers
2) what algorithm does unix and windows use to deal with deadlocks
ans: ostrich algorithm
3) what is the kernel file for windows NT
4) Multitasking OS a)95 b)98c)NTd)ME
Ans:NT
5) Windows NT, NT stands for
Ans: New Technology
6) Thrashing occurs when
Ans: Guess when there’s a dirty page generated
7) WIN NT’s primary file system
a) FAT 8b) FAT 16c) NTFSd) FAT 32
Ans: NTFS
Move a file from windows temp to windows system
folder and delete datas stored previously
a) COPY ERASE C:WINDOWSTEMP.EXE
C:WINDOWSSYSTEM.EXE
b) COPY DEL C:WINDOWSTEMP.EXE
C:WINDOWSSYSTEM.EXE
c) MOVE C:WINDOWSTEMP.EXE C:WINDOWSSYSTEM.EXE
d) MOVE C:SYSTEM
Ans: (c)
9) Difference between virtual memory and swapping
a) virtual memory used to store a part of process in
memory whereas swapping can either put in entire
process memory or out
b)swapping used to store part of a process
d)Both are same
e)Both are different concepts used to resolve
different problems
10) Question about conversion of infix notation to prefix notation
11) Question about conversion of infix notation to postfix notation
12) Which of the best describes the calculation of factorial of n numbers recursively.
13) What is multiprogramming?
14) Which of the following best defines a process?
15) what utility would you use to remove the entry in registry?
a)windows registry editor
b)windows management utility
c)
d)
ans: I guess a) is the answer.
Database:Oracle
1) which of the following is a DML stmt
1)create
2)update
3)drop
Ans:Update
2) what is the output of the following query?
select round(trunc(mod(160,10),-1),2) from dual;
Ans : 0
3) when is index fields useful?
Ans:When u use it with with the where clause
4)oracle implicitly uses index for
a)primary key, many other choices were given.
Ans: I guess answer is primary key.
5)some question about subquery
6)which of the following gives the alias name foe sales*12.
a)Select sales*12 ‘sales’ from tble where…
c) Select sales*12 AS sales from tble where…
d) Select sales*12 “sales” from tble where…
Others :
1) system.ini file -> alter without message
a)System config editor
b)System config units
c)Register editor
2) Order date > 3 yrs old, delete orders
a) DELETE FROM ORDERS WHERE ORDERDATE
3,GETDATE())
b)DELETE FROM ORDERS WHERE ORDERDATE <
ADDDATE(YY,+3,GETDATE())
c) DELETE FROM ORDERS WHERE ORDERDATE < GETDATE(), -3
d)DELETE FROM ORDERS WHERE < GETDATE) , +3
3) interface lang commonly used with SQL server
a) SQLb) COBOL c)_vb-script d) VC++