Beruflich Dokumente
Kultur Dokumente
This interview was conducted for 1 year or more exp. guys in C++.
1) Firstly he asked me about the project and i was thoroughly
grilled.
2) Then he asked to list the various types of storage classes and
asked me to explain the scope & lifetime of each one..
(Auto,Static,Register,Extern,and also mutable(only used for
classes) )
3) Right shift/Left shift + 1's complement concepts then asked me
to give the output of this:i = 10;
int j = i >> 10;
cout<<j;
4) Then, difference b/w
char *str = "Hello";
char arr[] = "Hello";
he started asking whether following statements get complied or
not;
arr++; // ERROR..its like a pointer constant
*(arr + 1) = 's';
cout<<arr; // o/p: Hsllo
and other questions which i dont remember
5) struct Date
{
int yr;
int day;
int month;
} date1,date2;
date1.yr = 2004;
date1.day = 4;
date1.month = 12;
now how will you initialize date2 (without member by member
assignment)
ans: date2 = date1;
diff. b/w c++ structures & c structures
6) Explain Primary Memory, Secondary Memory, Virtual
Memory...etc etc..??
9)
max 222
allen 333
rony 444
Select first.name from first where first.age = (select first.age from first
where first.sno = 3);
a) max b) allen c) rony d) noneof these
6. THERE were 3 question on same type of queries(u should be good
in foreign key relationship and relationship with in a single table).
7. One question was based on INDEX
8. Also one more mapping relationship given based upon the figure.
REASONING
9. Questions based upon equality of numbers means three nos
given
a) if all equal
b) if 1,2 same
c) if 2,3 same
d) none..
DAM easy
10. Questions based upon equality of symbols means if + means *
and * means / and means + and + means
then mean of 28*40/4+2-6
11. Question upon set theory means if 100 r selecting in maths and
90 in physics 120 in chemistry & 22 in phy& maths both ,33 in maths &
chemisty both 44 in ches & phy11 in all then
1. How many only in maths.
2. Only in physics
3. Only in chemistry.
4. How many in atleast 2
C
12.
Question on pointers
13.
14.
15.
16.
On file handling
On functions.
Structures and unions
From bitwise
17.
18.
19.
20.
21.
22.
C++
Inheritance
Scope of protected
Static member function
File handling
Copy constructor
Bhubaneswar 2004
75 questions, 75 min. No negative marking.
Pattern of test:
1. Written (non tech + tech).
2. HR interview.
3. Final interview. (tech + hr)
1. I sow her -__ airport
At , on , in , across
2. Masi specialises __ plesent ,well balanced wines
into, about ,in, with
3. By the time I arrived __ the pub she all ready left
in, on , at, into
4. erbiage
the act of doing something
the use many words witout nessecity
a vegitable
non of the above
5. frutful means
justify
futile
efficient
productive
6. aestheically means
tastlessly
artistically
hazardously
colurfully
7. ___panda & white tiger are in denger species ? a ,an ,the ,none
12*4/20+12-4=-12
4*12/4+80-4=-8
26.
------stores a log of changes made to db,which are then
written to _,which are then written to _,which is used if db
recovery is necc.
a) db buffer share pool
b) program global area,shared pool
c) system global area,large pool
d) redo log buffer,online redo log
27.
----means allowing objects of difference types to be
considered as examples of a higher level set :
ans: Generalization
28.
The primary characteristic of key field is that it must be
unique
29.
Manager-------------- --emp managed by ans:one of many
recursive relationship
30.
If a member initialiser is not provided for a member object of
a class .The object - is called
a) static fn
b) non static fn
c) default constructor
d) none
31.
class constest
{
private:
const int i;
public:
constest():i(10)
}
32.
Inheritance
b) abstract base class
c) specifies a way to to define a const member data
d) none
33.
Iimplement polymorphism when by object belonging to
public :
sample(int **pp)
{
p=pp;}
int **p;
int **sample:: *ptr=&sample ::p;
37. In a file A...Z characters are written.if we open the file using
fopen and
lseek(fp,-10,2);
c=getc(fp);
printf("%c",c);
what will be the output.?
Ans . Y.(please verify Here last parameter is the integer value to
seel_end
38. Same question with
lseek(fp,10,0);
c=getc(fp);
printf("%c",c);
ans. 11th character will be printed "K" verify.
39. Theory question about far pointers.
Hint: Far pointers are 4 bytes in size and local pointers are 2
bytes in size. important: i saw in a previous question paper of
accenture which is in the chetana database, some lady wrote that
HR Interview
.
Search
HR Interview 1
Ur achievements
Ur Hobbies
accenture)
HR Interview 2
If u have any question then ask me..( it was asked as a first question
in interview from many.)
UR family background
UR education background
If i will not select u then what u will do ????
Tell me abt urself.
46.
23.