Sei sulla pagina 1di 43

Placement Preparation Strategy

-P.Sandeep Reddy, (An Alumni of NITW 2010-14 batch).

PREFACE

Hi all, I would like to share my view on placements-preparation strategy need to be adopted in this mini-booklet with a hope that it will clarify the doubts of students of nitw who are about to sit for placements.I hope this will help the software&management aspirants.I feel if second years implemented these after 2-2 holidays,they can easily get a good software intern in 3rd year itself as very few people will be ready for the war by 3rd year!

P.S:All the things I am going to mention here is my personal perspective on placements.

Software

Being from ECE, I prepared a lot for software and i personally feel that cracking Microsoft-(Not all profiles)IT profile,oracle etc.,is very easy as most of the times(infact all the times) the questions do repeat-like rotate an array by 90 degrees,print in spiral form etc., And u need to be smart enough & code well for facebook/directi etc.,(but u need to be well prepared by the time these companies visit our campus),wait for next company unless u feel that the company is good enough for u keeping ur future plans in ur mind,be confident by the end of the summer that you are about to place in first 2weeks,dont start preparing once u come to college and keep on revising what u studied.Make sure that you can comfortably convert ur logic into code in atleast 1language.

Books & Concepts need to be covered:

Most important thing is go through placement feedbacks atleast 2-3times a week,it gives u confidence that u covered few concepts and tells u where u stand and what u need to cover still,

C

*Let Us C by Yashvant Kanetkar

*Test Ur C Skills *Indiabix.com

C++

OOPS concepts are very important in interview

Functions

Classes-Objects

Constructors-Destructors

Polymorphism

Inheritance

Virtual Functions

Templates & Exception handling

Study Vectors,Strings,maps,iterators

*Basic-

C++ by Balaguruswamy Test ur C++skills-Yashvant Kanetkar

*Advanced (Study these if time permits)

Bjarne Stroustrup-The C++ Programming Language Advanced-Accelerated C++ by Addison Wesley

Data Structures&Algorithms

Bible of Datastructures&algorithms:

Karumanchi narasimha swamy, seriously this book covers almost all the general&familiar questions,95%questions are covered in this book, also study cracking interview by gayle lakman,

Linked lists

Stacks

Queues

Trees

Graphs

Selection Algos

Sorting Algos

String Algos

Dynamic Programming

Divide & Conquer

Greedy Algos

Operating Systems

Basic-Process Concepts,Threads

CPU Scheduling

Synchronization

Deadlocks

Memory Management

Virtual Memory Refer Galvin If time permits,have a look on DBMS (easy) for Oracle&Networking for Cisco.

Resume preparation

*Make it structured&keep only valid-in-context points *divide it as academic/projects vs extracurricular *No 1 will check your certis &make sure that you can justify everything you wrote in resume

Management

There is no rule that people with low c.g.p.a should go for management.It completely depends on ur personal interest. Trust me-Nitw gives a lot of opportunities to explore ourselves via Tz,Spree,Clubs,Technical associations etc., Do involve in them instead of wasting time in room as they act like an interface to the future practical world-they give you lot of memories&experiences which count&matter a lot! Let’s go step by step…

Apti

You need to be very good in aptis as you need to show difference between u and remaining candidates.

Quant: Time material/arun sharma even Rs aggarwal is ok,but if u go with a higher level book you can solve even if the paper comes little bit tough

Logical reasoning:Time material go for tips-questions lyk all dogs are cats etc.,seating arrangements,logical sequences etc.,

G.D

Initiate the topic with a valid point,it will add you extra points, Dont shout, dont point out ur fingers, keep urselves cool, make sure that u speak 3-4 times with 5-6 valid points, u should appear like a critic-Use few good english words,sentences-"I do agree with ur point,but we need to consider our basic objective/we need to look at both sides of the coin etc., support ur arguement and dont make out of context statements

Puzzles

One of the important area where the interviewer will assess your logical thinking skills,try the question,it mainly depends on ur way of approach,to be frank- even if u know the answer for a question,dont answer immediately,act like that you are facing the question for first time and rotate ur pen,hammer your brain and then give them the answer

Suggestions:

wuriddles.com How to ace brain teaser interview by john kador

if you cover these,u can be confident enough as when some of my friend who comes out of an interview room with a sad face that he is unable to answer some puzzle,i am in a position to tell the approach/answer as soon as he starts the question.No question will be new!It may be just something which u never heard,covering the models from above books/sites will give u the skills to answer a new puzzle even! Most important parameter for placements is how well you,REVISE what you read regularly!

Interview

The key stage of the complete procedure,Sell urself,Express to impress!It's ur day&no one is gonna stop u,utilize each&every chance you were given to speak.Manage eye-to-eye contact,wish them,be cool & the most important:keep smiling!

Be prepared!dont just go and give random answers,analyse ur profile and think of-what questions he may ask you,what are the counter questions u may face based on ur answer,Be planned and answer all based on ur past experience,make sure u should appear like a honest person to them and dont get into trap by bluffing-answer only if u are confident enough about a particular area.

#Be prepared-but ur answer should appear very natural

Futures first(Finance):

round1:5mins 30 questions-calculations,speed maths(370 members) cut.off:20,i did some 28-29 round2:CAT level questions:math&logical reasoning,30 mins-30 questions,negative marking is there(100 members) cut off:10 i did around 18they called 11members- interview@hyderabad,each round of 20-30 mins,after 2rounds they shortlisted 3members and then final round interview:I got selected :-) stress interviews,they will shout on u,cross questions,counters- manage ur smile now i am going to present the general interview questions which i answered for Futures First and many companies ask these ones'

1)Tell about urself

->this is the question where u can convince the interviewer that u r best and can turn over the interview to ur strong side //Generally ppl tell about their parents,hometown,background details etc., dont make the interview boring,tell about ur character&the best part in u *I am Xyz,I am the type of a person who used to take responsibility in everything i am handling,i am the one who would like to take initiate in the works i am involved,My hobbies are solving sudokus/puzzles(which reflects ur interest in logical thinking) Ex:i told about technical/cultural fests in clg,clubs,association-their relation&necessity,how a basic event goes-the things 1need to take care-starting from planning to publicity(audience),logistics,treasury,design(posters),hospitality(guest s) etc.,how we need to estimate the probable worst cases and way of dealing through our solution If u r going for technical interview,tell about ur projects/that you are a good coder& instances where u have proved urselves

2)Ur strengths regular answer:

Passion towards work,zeal to do something better,hardwork,dedication->support ur answer with few instances or where u have showed the characteristics/how u took risk/how u dealt with tough situations--If u are there in ur team,the complete team can have the confidence that Xyz is there,no need to worry,everything will go on smoothly

3)Ur weakness Answer Depends on company and tell one of ur minor weakness and support ur weakness too-> procrastination/giving work to only few sub.ordinates in team(support this by saying that ur ultimate aim is to get the work done,doesn't matter what the people think,i will convince them once the work is done)

4)Y low c.g.p.a or management?? ->Until my first year of b.tech i used to be a stud,i used to get tensed during main times,later i felt that there is something problem in me where i need to improve,hence i started involving in various activities which helped in my personality development,how to mingle with people,how to get the things done,how to work as a team,how to tackle situations,infact,all these things gave me confidence that i can do anything in my area of interest and what life is! and coming to low c.g.p.a- it's the thing which i am least bothered about,i maintained 6/7/8 just as i thought it would be suffice,if i have aimed at 9,i could have done it easily(say this confident),but all i want is overall excellence, I discovered myselves good at core/coding/management and found this as my passion and hence i would like to settle in this profile

5)Y not further studies? Convince them that you are going to stay in the company,no idea of further studies at all tell them that u feel that u can learn more(practically) by joining the particular company rather than going for further studies and u have no interest in them/since the profile/job position is very good u dont want to go for further studies

6)Y only dis company&Y only u??--goals

These 2questions decide ur selection,Biscuits never fail! Support ur statements *When i have talked to my seniors working in some other company,they used to tell life is quite boring,where as the considering the feedbacks i got from this company employee,i came to a conclusion that the life will be very interesting here and it completely depends on me how well i am going to involve and i would like to handle the work as much as i can,this is the company which i am looking for and i hope i exactly fits in this, and make them feel that u are seriously interested in the company,and ur goals are to work in that particular profile and package is not ur Concern,all that matters is the work you are about to handle and differentiate urselves with respect to remaining candidates,tell them about the company in reverse,google it the day before the company is about to come,study in wikipedia and have an edge,this reflects how well u knew about and how much u r interested in the company

Here i am attaching list of questions which i prepared during my placements,hope they will help U

Futures first

1. The previous days BSE and NSE index

2. What is the true purpose of a stock market?

3. what are the products traded in NSE?

4. What is inflation? What are the ways to fight against inflation?

5. Explain derivatives

6. When would a person holding long in futures make profit?

7. Explain interest rate derivatives

8. What is the underlying instrument of Indian interest rate derivative products?

9. How are interest rates and bond prices related?

10. Prices of which commodities in the globe would rise in the coming few

months?

11. Reasons for the last financial crisis.

12. Any prior investment experience.

Qualcomm

1)tell the algo of finding the kth largest number from the array with N

numbers

will use a max heap and he asked me why only max heap 2) how will the find the missing number in array having N numbers 3)Write the code for String reversal 4)Code for reversing 2 nodes in Likned list if a pointer to only the first node among them was given

i

said that i

ALCATEL-LUCENT basic C++ programs like string reversing, insertion and deletion in linked lists, stacks and queues. OOPs concepts and DS programs like Inheritance, Polymorphism, Virtual Functions etc Printing leaf nodes using recursion, Implementation of Stacks and Queues.

b. java :he wrote some program and asked to explain the difference on threads.

c. what are exceptions?

d. interface

e. multiple inheritance

f. swapping in javaboth call by value and call by refernce

g. socket programming?

h. any idea about xml and array list and vectors

i. virtual functions in c++

said no

j. basic class and derived class references

k. difference between class and structure

l. what are pure virtual functions

m. string compararision programme in c

n. connection oriented and connection less

o. virtual circuits

p. what is html any idea about

a. principles of object oriented programming language

b. how come you know java- said it was offered as elective for us.

c. page replacement algorithms in cache memory - i explained about fifo.

d. linear queue - theory and psuedo code

e. recursive functions - how they store the return address and variables - a simple recursive function is given

and v output is asked.

f. order of execution of constructors in java - super class, sub class constructors - a tricky questions on them

g. how to get class of the object in very long code ---may be be usage of tostring

method in java---geting object description in java

h.how to synchronise two methods - code for synchronised methods - i didnot write i.what is monitor box injava- how to acheive synchronisation in java

j. overriding methods

a. tell me about yourself?

b. what things you feel good at nitw compared to b.tech college?

c. iso- osi model - functions of each layer

d. tcp/ip model - did not give much details

e. java access specifiers - public private protected default

f.difference between class and strcutureg.

g. difference between java and c++

h. multiple inheretance in java

i. interfaces

j. abstractclasses

k. types of abstract classes - diagrams- simple, hierarchial, hybrid

l. sorting algorithms - i said i dont know

m. searching algorithms - linear and binary - binary search code and explained

n. ipv4 classes ,formats, example for each class address

o. ipv6 -no of bytes- format - example address

p. connection oriented and conncetion less - for video conferencingwhich we

use?

q. difference between hub, router, switch bridge and gateway

r. how do you upadte your knowledge? i saiid i go through forbes and fortune

magazines online

s. apple next series number?

t. facebook ceo

u. google new os?

v. features of chrome os

w. cloud computing - amazon - providng cloud service

x. logic question- whether it is better to use square or circular lids for manhole's (drainage sytems)? y.asked to write dta structure for - for the faloowing problem - there are many url links in a webpage - should keep track of visited links - find outany duplicate links - no .of inks visited

BROADCOM 1) given a 64 bit register containing 1’s and 0’s in random fashion. I was asked to find no of 1’s in minimum time. 2) started with CN. Then, he moved to boot loading program over which we had 20 mins discussion. At each step, he was asking me to relate OS and Microprocessor

COMPUTER ASSOCIATES what is a function pointer? where it is used? explain scheduling in process management? is the maximum amount of RAM dependent on the CPU? and a some programming tasks like overload '+' operator for a class of points in 2-D space? implement stack using a singly linked list?

FACTSET based on the concept that a const string cannot be returned to non const string

2) aasssstttttppppppp

3) code to find shortest path between two nodes in a binary search tree, your output should display all nodes in the path. 4) write the code to print square matrix helically

5) reverse singly linked list two at a time eg input 2->4->8->6->9->1 , output is

output should be a2s4t5p6

>2->6->8->1->9

6) question was based on stack overflow, it that main function was calling itself again and again resulting in stack overflow 7) In a array of size n, there are numbers whose values are between 1 and n. In that one number is repeated, so obviously one is missing. Find the repeated number and missing number 8) Some C++ oops concept was asked like default constructor and concept of globle variable

In the second round, it is completely logic based questions and presence of mind is a must. He asked on linked lists and their manipulations like detect a loop in the list,find the middle node without counting the number of nodes,find 1/3rd node in a list by traversing only once( i mean if there are 9 nodes, our function should return 3rd node) and questions on operating systems like what is a thread,virtual memory,their advantages,process synchronization,about semaphores and other stuff.

a)Dividing a singly linked list into 3 equal parts if no of nodes is a multiple of 3 otherwise 1st two should be same and greater than the third(for 22 nodes:-

8,8,6).

b)In an array all numbers are repeated except one.find it.

c)Recursive sorting of a singly linked list in 1 pass.

d)code for the mirror of a tree.

e)code to remove the comments from a C Program and some more.

we had to write code/psuedo for problems like dividing a linked list into 3 parts,mirror tree,sorting a linked list (recursion single pass) and a matrix problem

and there was one database question which i dont remember(we had to design database and then also had to write a query)

and a question where we had to draw the circuit diagram of staircase switches(1 bulb, 2 switches)

and a puzzle-a person sees the time in mirror and goes to office (travel 20 min) and then sees that time is 2 1/2 hours more than what he had seen at home what was the time he actually started(4 different answers)

the questions were logical like where can we use the value returned by main

are the problems

function(by calling it again in main fucntion recursive)

what

a database for some student

details

has been removed from a rectangular portion divide the remaining portion in 2

halves using only one line

dont know)

occurs or not when the printer is switched off and we give a print command

about deadlocks(some practical questions like the deadlock

he asked me tell about race condition(i told i

when we use goto statements in our code

a puzzle-a rectangular piece was

design

and

implement

then

a stack using 2 arrays

then

in the second interview he asked me tell an algo for

which contains characters and numbers

numbers into two different strings

optimize it

from os like what is bios,boot strapping

well prepared for these question they will be asked for sure

depth like run-time polymorphism,copy constructor,operator overloading,virtual

destructor,overloading etc)

questions on oops concepts were asked so be well prepared for those questions

we

will be given string

we have to separate characters and

I

first told him an algo he then asked me to

and

some questions

OOPS concepts were asked(be

and they will be in

i optimized it(he was impressed with this)

and

i

attended 7 interviews and in all interviews

GOLDMAN SACHS

there's a gold bar with 6 markings dividing it into 7 equal parts. You are allowed to make 2 cuts anywhere on those markings (dividing bar into 3 parts) and you have to pay a servant an equal amount of gold for 7 days. Solution: You cut at the 1st and 3rd markings, diving it into 3 parts of size-1, size-2 and size-4 (totally 7). First day you give him 1 part, next day give him the size-2 part and take back the 1st part (binary scheme: 001 010 011 etc). ii) A creeper is wrapped around a cylindrical tree spirally from the bottom to the top. Given dimensions of cylinder, find the length of creeper. Soln: unroll the cylinder to a rectangle with sides as height and circumference of cylinder. creeper is diagonal. programming questions were pretty straightforward like code to find the no. of instances of a word in a file etc. He asked me about Polymorphism Function Overloading Virtual Functions etc. Then I was asked to write a code for a "movie " class

NVIDIA 1) write the prototype

for the function which will count the number of zeros in a given integer. It was unsign char count(int); 2) the average time complexity for the array with 5 spaces and 20 elements in separate chaining fashion and the array with 20 elements and which

is faster to search the

element.He asked advantages of paging and what is binary semaphore and how it works.He asked me to write the function to swap two numbers without temp variable.After that he asked what is virtual functions,abstract class,virtual destructors , why virtual constructors are not present and pure

virtual functions and to explain them with real time examples. He asked about binary search tree and how it works and what is the time complexity to search a given element and how that time complexity came.

ORACLE 1) advanced coding in which all the questions are from avl tree.he gave one code regarding to avl tree operations 2) write a code for binary tree sort questions on os like what is trap,process etc write a code to reverse a word in a string if the word contains a vowel,again explain oops concepts,constructor,destructor,explain about threads.explain polymorphysm with

example.difference between structure and class and multi dimentional array. - difference between arrays and linked lists,where do you use each of them,explain with examples -program to print even numbers from 0 to 100,he asked more about what are the errors that might occur,how to -given a bottle full of water and an empty vessel,how will you pour exactly half

of the water in to the vessel in

one attempt,without any trail and error(pour till water level is diagonal to the bottle,like the water level is a line joining one end of the mouth of bottle to other end of bottom)

2.Swapping of 2 numbers without using a third variable, 3.A rope burns in 1hr,how to measure 30 n 45 mins Basic programs like

reversal of a string,finding depth of a tree using recursion.

DIRECTI merging two sorted arrays, finding the kth element in two sorted arrays, permutations of merging two series such that their relative order is maintained

A = { 4 0 0 3 6 5 4 7 1 0 1 2 }

You start at the first element. From here, you can jump as many places ahead as the value of the cell you are at. E.g. from the initial 4, you can jump to 0, 0, 3 and 6. You are stuck if you end up at a 0. Give an efficient algorithm to find the path with minimum jumps from start of the array to the end.

• + is string concatenation operator a 1 = “()” a 2 = “(“ + a 1 + “)” a 3 = “(“ + a 1 + a 2 + “)” a 4 = “(“ + a 1 + a 2 + a 3 + “)”

.

.

a n = “(“ + a 1 + a 2 + a 3 +

Given n and p, find which bracket would come at pth position in a n .

+ a n-1 + “)”

1. Maximum Sum Sub-Array Problem.

2. You are given a n*n matrix having 1's an 0's in them an given an integer k.

You have to find a rectangular region such that it has k 1's in it.

3. Non-Consecutive Maximum Sum problem.

4. Given an array. Find indices i and j such that A[i]>a[j] and i>j such that i-j is

minimum.

5. Finding majority element in an array.

6. Find any duplicate number in an array of very big size.

1. Algo+Tech 1 :- this round was in college itself just after the written

exam…he asked me the following questions

• in an array there is a number which is guaranteed to be repeated more than n/2 times. find the number in o(n) time and o(1) space complexity.

• We r given 3 arrays of equal size….a number k….we have to find 3 number one from each array which add up to k……give the best solution…I first gave n3…and n2 solution.

• What r your favorite subjects and how do you rate yourself in then out of 10 and why.

• Why do we prefer oops?

• What r all complex data structures you have implemented?

• What did you do in ipc….tell all programs…

server.

• What do we use for ipc if processes run on different systems?

2. Algo+Tech 2 :- this round was just after the first round…

• We are given a number of balloons with different sizes and only one parameter to indicate size.we can fit smaller balloon in larger…we hav to make minimum number of sets such that in a such after fitting into each other they

asked

me to explain coordinate

• Asked me to explain 0-1 knapsack problem in detail.

3. HR

4. Algo+tech 3(telephonic) :- half an hour after HR round I got the call….this

was a difficult one to face….as we

have to hold phone and concentrate and explaining is also very difficult…

• I m given day high and day low of past 10 years of a share script. If I could

buy and sell only once

like to buy and sell to maximize my profit…tel in o(n).

• We are given two circles with center and radius of them….we have to tell

whether they are completely apart/touch

externally/cut/touch internally/one is inside other…if they cut…find the points of intersection…

• One question of travelling person based on dijkstra`s algo…

explain dijkstra`s algo….then asked what if –ve cycles are there…and then said find the complexity in terms to number of edges… After this we were flown to Mumbai

5. HR

6. Presentation :- first they shown a presentation about the bad ways of writing

code…then they gave code snippets to identify wrong code writing practices and to modify the code . After this we were asked to choose one technical

topic of our own choice which they expected to be out of our academics…and

speak on it for 10 minute….after we finish speaking they wil ask questions….about what we said… I did very bad in

when would I

then asked me to

this round…

as

I could not get a

good topic.

7. Algo+Tech 4:-this round was largest among all…

• If we r given time in hh:mm…find the angle between hr hand and minute

hand.

• How to find nth node from end in a link list

• If we are give a link list such that a few nodes from end are common….and

both are of unknown different length….how to find first common node…

• If we are given a matrix such that its rows and column are sorted…search a number in o(n+m) complexity…

• In an array find maximum non consecutive sum sequence…

• What r all comp science subjects u have read

• What are threads….why do we use them

• What are indexes , normalization, asked about OLTP…

• What r deadlocks….give some example

• How do we synchronize our programs?

in

only one scan…

8. Final round :- this was taken by CEO of company itself….he asked a few things…but all in depth

• Given an array having +ve as well as –ve numbers ….find the maximum subsequence sum……if there are two

subsequence such that both sum up to maximum….print the smaller one….only

one scan allowed…

the code after listening to algo….then said to optimize code….

• Asked about multithreading…

one processor and there is no read write….we have just computations….why would we use threading…

we have 100 computations….and 2

processors….which one will do faster …one thread/two thread/three thread …and why….

• Compare bst and hashing…asked me to give 7 differences …

hashing if we have many collisions….i said linear chaining/linear probing/quadratic probing….he was not happy….then I said to use bst in

place of linear chain…and then I said multiple hashing…and he was happy….

how to improve

asked to write

how

is it helpful….then said…if we have only

then said

ADOBE Given an array and a Number N find all sets of 2 numbers that add up to N. Started with O(n^2) then went onto O(N) solution using i) hashing ii) O(N) using sorted array. 2) Given a dictionary (Can be traversed linearly from the first) and a word, find all legal permutations of the word. 3) I have a clock at the bottom of a hill giving me correct time, and one on top of the hill which is not working, how can I synchronize the 2 clocks, time taken to go up is more than it takes to come down. 4) What are heaps, threads, Pthreads, have you done Pthread programming, what programs ? 5) Write a class for Stack considering all loop-holes and error conditions? 6) Give a program to print a string in reverse using simplest solution possible. 7) Divide an L-shaped area into 2, 3, 4 equal parts. Divide a square into 7 equal parts. A few more were asked that I do not remember, which were on the same lines as above. Coding for finding no of times a character repeated in astring, Coding for finding a substring in a given string,

C DOT 1. name the layers of ISO OSI refrence model. 2. function of

network layer. 3. layers of TCP/IP refrence model 4. diffrence between TCP and UDP

D E SHAW c. 1. what is diffrnce betn maloc and calloc 2. why memcpy and memcat is

preferable over strcat and strcpy 3. syntax of printf 4 . how printf function work

5. about va_list,va_start,va_arg,va_end

6.some file realted question 7.storage class 2. c++ 1. what is virtual destructor concept 2. why vitual class concept 3.how

many ways we can achieve polymorphism 3. how to remove dangling pointer

concept

remove 4. write overloaded insertion operator 5. can we use pointer in copy

constructor as argument

or no 6. what is smart pointer

write an example . to generate and

give reason for yes

example 7.standard template function and class

example

why we need it 3. java 1.

interface

why we need 2. what is diffrnc betn java and c++ 3.access specifier

concept etc 4. os

memory 2. page replacement algo 3. synchronization concept 5. dbms 1 , 3 nf, 4

nf, 5nf defn and write exaples of functional dependencies 2. indexing concept 3 .cursor , trigger and self mutable triger 5. can foreign key have null

to insert some data

in organization database

scenario

value

1 concept of virtual

??

how . example 6. they gave ane pratical example

in

and asked

which indexing is udes ,no used, file scanning ,index scannig

write query 6. unix 1.some basic command

implementation ,, from process 7. networking 1. how socket programm work steps 2. read system call is givinf error

how will u identify

4. how telnet and ftp work 5. some

daemon process concept 8. there r 9 weight given ,, in which one is odd on out

find out in 1 min is present in soln concentration

combination question they asked from some more was there

due

to which parameter it is ?? 3. port number for telnet,ftp

9. some water and milk how much quantity we should add to increase the in 2 min 10.one pemutation &

written paper

and

gave time constraint

IBM 1.Modify Dijkstra algorithm to find 3 Shortest path. 2.Write a one line code to find if a given number is a power of 2. 3.how does a floating point number is stored ? 4.How will u generate PID of a process ? 5.Some questions on signals were asked.

6.How will u reverse a binary tree(not BST)? In c--- about stack overflow,segmentation fault and things like that.in os- process states, about fork, how shell works.in ds --- he asked me to generate all possible permutations of a given string using strongly connected graph

INTEL write code in C for problems such as manipulating bits in certain positions in an integer , finding max in an array and optimizing for scalability. After that I was asked questions on C . I was asked the meaning of "volatile" keyword and what the compiler does to take care of it. Then I was asked questions on OOP.He asked me to give eg for polymorphism. I was asked to explain the terms : virtual function,abstract class,virtual constructor ,virtual destructor(which is not there),static variable, static function(in C and C++). In the second round I was asked questions on Inheritance.After that he asked about interrupt processing and what role processor plays in it. After that he asked questions on virtual memory and caching(not much depth

effective program to shuffle cards there were 144 match sticks and two people have to take few match

sticks one after another,the person who takes last match stick loses

up on a max value N

should be the value of N

what

such

that the second person always wins

MICROSOFT tree traversa recursion + array algos median of two sorted arrays + sudoku algorithm

they agree

One algorithm was asked to find out missing no. from a stack if two given stacks have same numbers. Questions on normalisation were asked. Table was given to be normalised. II round- I was asked about my winter project. Algorithm was asked for finding angle between hour hand and minute hand.

1)first question is on linked list

a

list of 12 characters will be given

every 4 nodes

left

using loops

array of integers increasing order

starts

should be done in O(logn) again a technical round

and asked me to code it

given a string with repeated characters

without the repeating characters

included characters like *,(,+

a question on binary trees

prove height of a binary tree is O(logn)

like

A B C D E F G H I J K L

this

now

for

a node should be rotated

it

means the o/p should be D A B C H E F G L I J K

2)next question is given an

like

10 12 16 17 24 27 8 6 5 4 2

first

.and then decreasing order

so

can be done by

from 10 to 27 it is in

it

he asked me to find the position from where decreasing starts

Third round is the interviewer showed me a question in his laptop the question is

he

next he

asked me to find a string which is

etc

in the string and asked to do again do u

how

its

he asked

not algorithm we should write

1. rotate an M*N array by 90 degree.

2. print a 3 digit number like 647 to six hundred fourty seven.

3. print the content of a directory that may content another files or directory

1. string reverse

2. using strrev reverse word in a given string. like My Name Is Vikas to Vikas

Is Name My but I did it in other way

3. remove repeated occurence of element from an array.

4. they asked me about searching they give me an array when I asked from

which method they asked me write write using binary search, when I asked binary search can be applied to a sorted array so they asked me first sort it and then write code for binary search.In binary search I write it using nonrecursive approach they asked me to

write it using recursion

1) We were given a function which finds out the Inorder Successor in Binary Tree of a given input node. There were a few logical errors in that code and we had to mention those errors.

2) Copy . Write all the test cases for this instruction taking into account the file/folder management.

3) Design a mobile application keeping into consideration a college-going teenager.

4) void mystrcpy(char* src, char* dest)

{

while(*src)

{

*dest = *src;

*src++;

*dest++;

}

}

int main()

{

char p[100]="hello"; char *q;

q = &p[1];

mystrcpy(p,q); printf("%s %s",p,q);

}

What will be the output for this code.

5) It was something about searching the first occurence of string2 in string1.(Can't remember it exactly)

1) You are given 2 sorted linked lists. Write a function to merge these 2 linked lists into a single sorted linked list

It was told to give the most optimal solution. I did it in O(n) time complexity

2) Write a function to find out the Inorder Successor of a given node in a Binary Tree This question was already asked in the Technical Aptitude Test to find out the errors in the function provided. So I was able to recall that function and I could rectify the errors and write the code.

1) Write an atoi(alpha to integer) function. I was asked to take care about the MAXINT and also any kind of input the user gives, this function should return proper ERRORCODES. 2) How will you test a temporary marker? Give all possible test cases in order of priority. 3) Given an integer array, you need to find out digit with the first occurence of the duplicate. (Only Algorithm was asked)

2nd Round

---------

1) Write a function which takes a string 'st1', a character 'ch', a set of characters

'str2', total memory allocated to 'str1' as arguments and that replaces all the

occurences of 'ch' in 'str1' with 'str2'. You need to do this in O(n). 2) Write a function to find the Least Common Ancestor of a Binary Search Tree

3rd Round

---------

There are 4 billion numbers in a file. The numbers are unique and not sorted. Write an algorithm to find the 1 missing number among them. (Mind you the numbers are not in the form 1-4 billion. So dont try to use sum=n*(n+1)/2 and find the missing number) Question 1: This was a debugging question. A code was given for inorder traversal of a binary tree and we have to find any problems with the code Question 2: This was a find the output question involved with strings and passing pointers as arguments to functions. Question 3: There are two singly linked lists in sorted order. Write RUNNING, COMPILING code to merge them. Question 4: Imagine the command copy source,destination which copies a file/folder from source to destination. Write test cases to test the command. Indicate which are the first 5 important test cases and the first 10 important test cases. Question 5: Design a mobile phone application targeting college students.

First question: Find the maximum subset(sequence) (with maximum sum) of an integer array. Return the starting and ending point.

Answer which I gave: (I don't know if its correct but it works for all the examples the interviewer used) First I found the total sum. Then I found the maximum prefix sequence of the array. This is a subset which starts from the beginning of the array and ends somewhere in between

I found this by deleting the integers from the end of the array one by one , from the total sum. I stored the maximum number and also the endpoint. In the same way, I found the maximum postfix sequence. Now from the prefix, I started deleting numbers from the begining, to get maximum postfix sequence of the maximum prefix sequence. In the same way, I found the maxim prefix sequence of the maximum postfix sequence.

I figured that the maximum of these sequences should give the answer. time complexity: O(n) space complexity: O(1)

Second question: Your friends have opened a movie booking website which includes movie listings, theater listings, seat bookings etc. Write test cases for this website. Tell the 5 most important test cases and the 10 most important test cases.

Answer: whenever test cases are asked, the most important tests are the ones which involve the obvious working of the website. ie first it should be able to do its intended job. So the first few test cases were like: create a new user, log in using the correct username and password, check if the listings correspond to the actual listings etc Then comes improper use tests like wrong password etc Then comes ambiguous cases like two logins to the same account from different systems, two bookings for the same ticket at the same time etc.

Second round First question: Delete a binary tree. ie free the memory used by the tree I wrote a recursive function for it. Second question: Delete a binary tree using iterative function Third question: A file contains numbers from 1 to 4 billion, no duplicates. But one of the numbers is missing. Find the missing number Basic logic: add all the numbers in the file. Subtract it from n(n+1)/2 where n=4billion. The problem is n(n+1)/2 does not fit in 4 bytes. So I had to do large number addition and subtraction using arrays to store large numbers.

Third round:

There was only one question: There are two linked lists. Each linked list represents a number with each node containing one digit. Add the two linked lists. First I thought of reversing the linked lists and then adding them, but the interviewer didn't like the idea though it is O(n). The correct solution is to add it from the begining. Whenever you are adding two digits, always check the digits to the right of the ones you are adding. If their sum is less than 9, there is no problem. If their sum is more than 9, add one to the current sum. If their sum is exactly 9, use two other pointers and go

forward till you find two digits that either add up to greater than 9 or lesser than

9.

Fourth round:

This was a testing round. First question: You are working in Nokia. You are given the profile of a person as follows:

The person is very careless and puts his phone through very rough use. Sometimes he drops it. Sometimes he puts it in his back pocket and then sits on

it

The person doesn't like many applications. All he wants is his calls and his sms. There is however, one game which is there in his phone. He plays it whenever

he gets free time.

you get the idea.

The person travels extensively. Assume that in this universe, there is signal all over the world. Also the game company assured that their game will perform well for the given software. What are the tests which should be run on the phone?

Here again, the basic tests should run first. Does it switch on and off? Do all the buttons work properly? Can it recieve incoming calls and sms? Can you send incoming calls and sms? etc The next important thing is the rough usage of the phone. Put it through various stress tests like drop test, water resistance, load tolerance, bending, compression, pulling, shear, abrasion, whatever you can thihnk of. Then is the international usage. Test for call rates, charging/plug points, climatic extremes etc Last, test the game if it interracts well with the other applications etc

The next question was in two parts . You are given two singly linked lists. i) do they merge at some (any) point? Ans: go to the last node of both the linked lists. If the last nodes are same, they merge at some point. ii) find the node where they merge. Ans: Find the lengths of both the linked lists. Let the lengths be m and n with m>n (say) Now skip m-n nodes in the first linked list so that they are of the same length. Now check the first element of the first linked list with the first element of the second linked list, then the 2nd nodes and so on.

NETAPP 1.write a c function for strstr? 2.what are the phases of compilation? 3.what happens when we read from a NULL pointer? 4.some stuff on segmentation 5.explain system stack? 6.he gave me a recursive function and asked the output Second round: 1.write the nonrecursive version of inorder traversal of a binary tree?what are the pros and cons? 2.what is an ISR 3.explain CSMA/CD protocol? 4.how would you program for memory fragmentation?and improvements on it in terms of time & space 5.how do u find a cycle in a singly linked list?what are the best & worst case complexities in terms of the lengths of linear and the circular portion & when do they occur(this is the difficult portion of it) 6.write c code for counting the number of bits set in a number & improvements on its time complexity? 7.what is TCP/UDP ? explain the

differences & their aplications? 8.a 5*5 square is divided into 25 equal squares and are shuffled.write a c program to rearrange them to get the original square? 9.6 men on one side of a river how to transfer them to the other side in minimum

possible time? 10.how many tries r required to find the floor in a 100 storied building with 2 eggs

ORACLE

efficient way of finding duplicate no. in an array without using sorting

hashing), design a spinning wheel game(just approach) few questions on stack implementation

2nd round : few question from computer architecture n microprocessor, then

array reversal with all its element also getting reverse, remove special character

from a paragraph

subjects( given in an array like student[100].marks_1[100],marks_2[100]) n 2

simple puzzles (apple,orange n mixed jars with each labelled incorrectly n 36 horse n 9 poles prob.)

3rd round: 1 puzzle on 100 doors

order n find the no. of repetitive words

(use

n

finding 3 students with maximum marks in 2 different

given

a string print words in alphabetical

In first round I was asked to write full code for 2 questions, first one was to find a loop in a single linked list and second was to find the farthest distance in an array of numbers. Both are easy questions and I wrote the full code with proper syntax. In second round I was asked about dynamic memory allocation in C,C++. Few questions on Classes in C++. How to implement K Maps in data structures, I said about bi-dimensional arrays and wrote some code. After that I was asked questions on Networking and OSI model. Few questions on HTML & Javascript.

He then gave me a structure with an int, float and a char. He asked me to tell the size of the structure on a 16-bit and a 32-bit machine. I first explained him the concepts of Byte Alignment and then calculated the size in front of him. He then rearranged the order of int,float and char and again asked me the size of structure. He then asked me some puzzles. 1. There are 4 people who can cross a bridge at different speeds. There is only one torch and at a time only two can cross a bridge. What is the minimum time in which they cross the bridge.

2.

There are 3 people. One always says the truth, the other always says lies,

while the third may sometimes say the truth or sometimes lies. In how many questions can u find out the identity of each person.

Second Round:

I was relieved to get through to 2nd round. I think 17 people were shortlisted from 40 odd people after 1st round. After some general introductions he gave me some codes to write.

1. There are 2 strings str1, str2. return the starting position of str2 in str1 if str2

is a substring of str1 else return NULL.

2. The user is taking (say X) inputs. I had to print all the numbers that the user

did not input b/w 1 and X with minimum time complexity and space complexity.X could be a very large no. in millions.

3. The user is taking integer inputs. Whenever he inputs '0' then print all the nos.

up until then in sorted order. Keep on doing so until he inputs '-1'. Give the best

optimization, data structure for this. He seemed satisfied with the solutions and codes that i gave.

He then shifted to OS. Asked several questions on Processes, Shell, Kernel. Memory and stuff. I was not able to answer many questions on OS but it is very important to stay positive. I explained to him that i haven't done much of OS programming and can definitely improve much on it. In first round , The first question was tell me about yourself . Other normal questions from almost all major Computer Science subjects were asked( C , C++ , DS , OS , DBMS) . Some Java concepts were also asked . Some of the problems were OOPS concepts , virtual functions ,deadlocks ,its prevention and

avoidance , Bankers algorithm

types of joins which I explained in detail ( Inner , left outer , full outer , right

outer). Then she asked to write 2 DBMS queries for the following - there are 2 tables student(stuID,score,deptID) and department(deptID,deptname) .I needed to retrieve deptname of the student having maximum score and other query was to find name of the department having maximum students . Then she asked various sorting algorithms and discussed upon the average and worst case time complexities of each of them . She asked me to explain heapsort for a given set of values .

which

I could explain to her only partially ,

In the second round ,the Interviewer asked me a lot of puzzles which are available on the Internet like The coconut puzzle for 5 sailors, the 13 15 17 chameleon puzzle . I could not get the final answer of the puzzles but I told him the approach .I think he got impressed by that . If a solution was too long , he

said "OK fine " and moved on to the next puzzle . Then he asked another puzzle like there are N horses and N jockeys in a race . But the last horse is declared he winner . How would you manage this condition such that the race should be fair (If the jockeys know that last horse is going to win ,they may ride very slowly so the race may never end) . After that another puzzle - There are a certain number of Apples . If we

pack 10-10 in each bag ,we are left with 9 apples

until we pack 2-2 in each bag and we are left with one ,what is

with 8

minimum number of Apples required ? (the answer is 2519) . In the end he asked me some general C++ questions regarding virtual functions , inheritance .The subject related questions in this round were normal ,I answered them all but 1 question that I couldn't answer was that whether threads of the same process share the same stack space.

If

we pack 9-9 ,we are left

likewise

1st Round (Technical) *What are the subjects u r comfortable with? DS nd OS *Explain abt thread nd process

I told everythin I know like def, diff, wat nd wat not they share *What is stack overflow?

I explained him wat it is it?

*Asked to write a program for same Done with a staic variable nd rec fun cal *What are storage class specifiers? Answered all types like static,extern,register,auto wer their significance nd wer they r stored

*He screwed me with extern, asked should we hav to use extern for same file

I said no,

*Den how ll u use it? Didn’t leave me until I said dat I ll link 2 obj files into an exe file *Then asked to explain abt preprocessin? *Then at wat point header files get loaded? *Another panel member started with diff bet c nd c++ Told abt all oops concept *Then he asked to write a program for diff kinds of polymorphism Explained abt static (overloading) and dynamic(overriding i.e. virtual function) *Asked if I’m comfortable with unix commands I said no, its an elective nd didn’t opt for it(unix ppl ll not hav dis choice :)) *But he asked me to xplain redirection of i/p and o/p *Did dat so asked one more like to display only 4th column of output I said don’t know, so he didn’t go further. *Asked abt joins Told all types (left, right, outer nd inner)

*And den asked to write a small sql query on joins. *Explain ur project. *And asked a puzzle using two cube phases represent all dates Hint:All numbers can be accommodated except one should identify wat num is dat and nd how that can be represented as other. *Then to design a scenario for cat mice problem Didn’t leave until the word thread came out of my mouth for synchronization 2nd Round (Technical) *Tell me abt yourself *Explain abt semaphore *Explain a real time scenario *Draw dbms diagram for emp,manager,dept relation *Write a sql query to display the manager name in whose dept there is an employee with max salary *Write a sql query to display the manager name in whose dept in which there are max num of employees *Asked a small puzzle ( using 3 nd 5 ltrs jars to measure 4 ltrs)

In the first round they asked an algorithms to find the no of repeated element in

a given interger array

defected find out it in minimum weighings with single balance guys be careful if u know the puzzle do not answer instantialy

thinking hard

approach no the answer exactly

func pointer what is its use??

tell frankly that i am not confident about it

copy

correct

os,ds,networks

asked any questions from them

local var,static var or static func

asked

i will be shorlisted for 2nd round

ex-(1,2,3,2,1,3,4,5)

1

puzzle simplest one 8 balls,1

in the end but

pretends u r

they

want the

first

give some basic solution and then answer

then

,form

but

c++ concept-what is static var,staic func,

java what is strictfp

whihc

i dont know

u

then

what is shallow copy and deep

which

then

also i dont know

i said i will guess it and it was almost

he

asked my fav sub-

but

what is zombie process

dont

and

tell any subject on which u r not confident

he

he didnt

asked me about order of execution in c++

some basic questions

thats

so

all he i was sure that

it

was good since I answered algo nd puzzle correctly

40 minutes

Second Round :-

out of 40 they shortliested 14 for 2nd round

first question was from network write the simple server client program

system calls

there

socket?? they he asked my fav subject again told os,ds,network

write a program to read the data in parent process from a file in which clients

write

this

round was little bit hectic

my

with all

then

asked how many types of sockets are

2-3 are there

i

AFINET,UNIXand

simple

fork only

told their names,then what is unix

he asked me to

then

he asked the various phases from source code to

execution of a c programs-same standard question which almost all company

asks

concept

asked me what is OS and its part then what is there which makes it to

work

microkernel is there in minix

referential integrity.then started asking questions from unix but i told i had

another elective subject in place of

then

of

kernel

is this system library dynamically loaded or statically

reusability

then

2 puzzles

bachho

wali

asked

about minix and linux difference

in

obvious

at

then

a c++

then

answers

he

implementation level-

outer

join

DBMS what are ACID properties

Round 1:In this round they concentrated totally on data structures.First he started with tell me about yourself and he asked to suggest an appropriate data structure and algorithm you would use to store table pairs and efficient way of executing queries like .Next he asked to explain about my project and asked some qestions related to it.Then he asked an algorithm to find all the duplicates in an array of numbers in an efficient way and when said asked the time and space complexities of it.the he asked some theory questons like what is difference between c++ and java,interface, abstract class,virtual function.then he asked are there pointers in java?when said no he asked to implement trees in java.it lasted for about an hour. Round 2:this round is also totally on ds and here they concentrated on coding skills also.In this we were asked to write code for all the algorithms. i)he asked to write the code for strcat function and asked for more and more efficient way ii)he asked to give an algorithm and then write code for deleting the last node in a linked list with a pointer pointing to it and without losing that pointer and we dont have any other pointers to linked list and also we dont know the head. iii)he asked to write for code for finding loop in a linked list iv)then he asked code to print all permutations of a string. v)finally he is satisfied and before leaving he asked me to write code to print all odd numbers below 10 in recursion this round is went on for about 1 hor 15 min Round 3:here he asked questions on all subjects except ds.he was going through my resume and started asking question from the subject in them.in databases he asked about BCNF normal form ,normalization,meta data,primary key and foriegn key.In OS he asked about deadlock and its prevention algorithms,what is os ,dirty bit.In networks he asked to explain all the layers.this round is only for half an hour.

1.Virtual functions in c++ 2.process management in OS 3.SQL queries in DBMS 4.String functions in C,C++ 5.Questions based on my third yr project. Codes asked: 1.print permutations of a string

2.write graphs using sql 3.Print an alphanumeric string which has its length printed at the end

a) to find out the second largest word in a paragraph - without using sorting

methods. In event of occurence of two words of the same length or repetition of words, all the words must be printed. b)to count the no. of unique elements in an array of nos. Puzzles-If there is an offer to exchange 3 butts for 1 cigarette and I go with 10 butts, how many cigarettes can I

smoke (ans=5

There are different jars having different no. of pills but each pill is of 10 grams except for 1 jar which has all pills of 9 grams. In a single weighing find out this jar Round 2:- How different is the implementation of oops concept in c from that in c++ ? What is polymorphism, abstractism ? Can we implement one without the other ? Does Polymorphism always have to mean classes ? If classes dont have memeber functions, does that still mean polymorphism ?

Write a program to display the no. of 1,2,3,4,5

Can you implement strcpy without using strcpy command or without using a 3rd variable (hint: use pointers) If i enter a single or double digit no. print it in words(dont use switch case)

What is a copy constructor ? Some basic questions in SQL Quick sorting, binary search. Round 3:- What do u know about OS What is the difference between dbms and rdbms ? Have u ever developed a user interface program in c++ ?

think how !)

lettered words in a paragraph

In programming they asked me to implement a function to replicate the working of a strcpy, to do sorting using 2 stacks and a temporary variable only. What is virtual function? Why OOPs? What is normalization? What is paging, deadlock? How to resolve deadlock? What is relational model of dbms? whats the use of static? extern? cache memory. Write recursive function for finding factorial. Garbage management? Process management methods? Draw a tree, and write down the inorder, preorder, postorder traversals. What is a balanced tree?

1. Two sorted linked lists are given to you, merge them in

sorted order with space and time contraints. 2. given any two dates, write a program to find number of days between them.

1. Given a long string, arrange the words in alphabetical order, delete the

duplicates and output the words with their frequency.

2. write string copy function using pointers

3. find the sum of digits of a given long number till a single digit is obtained.

4. swap 2 intergers without using temporary variable and witout using + -

5. give algo for generating random number

6. find the number of squares on a chess board

7. 2 stacks are given, one is full of numbers and other in empty, one integer

variable is given, fill the 2nd stack with numbers in ascending order with space and time constraints.

1. 3 ants are located at three ends of a triangle, they start moving towards each

other, what is the probability that they will collide

2. a class of ten students is given, their marks in physics chem and maths are

given, rank them. complete working

code for this was asked

1. There is an array having 1 to 100 numbers randomly placed. But two

numbers are missing from the list. What are those two numbers?(no hashing,no sorting)

2. There is a paragraph of words find out the second largest word.

I was asked questions on Data structures like What kind of Data structure linked

list is and tree is? What is a data structure? What kind of language C++ is? Explain OOP concepts with examples. Puzzles.

1. There is a room having 3 bulbs inside and 3 switches outside, you are outside

the room and can’t see anything in the room. You can go inside just once. You have to find out which switch

corresponds to which bulb?(hint: you can touch the bulbs)

2. There are 5 jars with regular pills weighing 10 gms in 4 jars and

contaminated pills weighing 11 gms in one jar. You have a balance and weights and you can weigh just once, how will you find out which jar contains

contaminated pills? You cannot mix pills.All look alike.

In the second round I was asked one puzzle which i answered.

1. There are 3 people on a tower which may collapse due to fire. King(78

kg),Queen(42kg) and Prince(36kg).There is a pulley on the tower with baskets tied to it on both the sides of rope around

the pulley. There is a 30kg stone in one of the baskets. There can be two persons or a person and a stone or a person or a stone in the baskets keeping in mind that the weight difference is not more than 6kg else rope would break. You have to bring all the three on ground safely.

7.Given a list(array) of positive numbers. Write a prog to find out the nearest pair(least diff) with 3 different time complexities.

1. explain all the OOPS concepts which u know.(this fetched me a lot, i

explained all the topics with good examples, i took around 20 mins only for this question) 2.write a prog which takes time(HH:MM)as input and gives the angle between the hands as ouptut. 3.one puzzle

if you are given a task to represent all the days of a month (01,02,03 two dice. What numbers do u paint on faces of each die.

31) using

- Code for Quicksort - There's an array of unsorted numbers, we have to find the pair of numbers with least difference. Eg:

3,12,7,18,11. The answer should be 12,11 since the difference is least(1)

My first technical was about 1 and half hour.I was asked about data structures and c concepts.He asked me to do some coding.He asked me about Mergesort algorithm,write some code to find whether the machine is bigendian or little endian. Find Least common ancestor for a binary tree in efficient manner,String

reversals,and etc code and

They asked to write

2. pattern finding and matching in a string.

4.

two stack working as a queue.

5. For each node finding the left subtree node and right subtree node number.

6. File system basic program.

7. network programming basic program of socket.

1.Reversing a statement

ex:This

is good----o/p good is This.

2.Implement a queue efficiently using minimum stacks. 3.link the nodes in the binary search tree at the same level (i.e from left - right).

4.Tree traversals.

CISCO

1st round-(questions were based on resumes).he saw a project in my profile(My project was on a programming tool called 'splint'-used for statically checking C programs for security vulnerabilities and coding mistakes).I was asked

to explain

networking

got me placed). I was asked to explain the osi model.,

first three layers.,i gave him.,.,what are the functions of each layer,what are the protocols used (ARP,RARP,BOOTP,DHCP).,.y a particular protocol is advatageous in some

cases

how the routing is done,.,what are routing algos used(DVR,OSPF)

started the fourth layer he said me "its fine" .,.,!! he said me to about quick sort,,i explained good,,. he asked me about traversals in tree.,.i explained about inorder.,,.used for infix notations and its use in language processors.,so i needed not to explain the preorder and postorer,.,!! :P how to insert an element in sorted array,small code for dat(its primary for cse

guys ofcors.!!).

I went on why we need to check,how the tool is used

Then he askd my favrite subjets

and OS.,.,.(this was the part which

Next 15-20 min i explained the

signifiacance

of mac and ip

when i

2nd round-The first question was-why u need to use the IP when we have

mac

next he asked how an interupt works,., he gave me one interupt code asked me to find the fault-(u neither pass

arguments to interupts nor dey return

something

is never carried out., y virtual memory ??.,.,paging.,??

(basic

need)

every

one figure this out !!

the

code had both faults).,even i explained cases for how an interupt

shifting operators.,.,. how to set a particular bit in a byte

,(dont

shift any thing)

3rd round-this was by the main person:

1.multiprocessing

??

He asked me the basic element for this.,.Like many

think,its not the context switching,queue in memory, process control table .,.,its the 'timer' required.,!! 2.code for deleting a node in double linked list.,., ? 3.what are the advantageous of a sorted linked list.,?

4.volatile,static and global variables in c??

5.pointer to function,array of pointers to a function.,??

6.Best way for swapping

In the first round,the interviewer asked me to write some code on functions pointers,basics of C,passing variable number of arguments to a function,string operations,different operations on AVL trees,different stages of compiling a program,different layers of OSI model,socket programming and a few more.The first round ended up with a few puzzles.

??.,.,.,y??.,.,.,

type of function call used

,?

The second round was the coolest round I had.Questions based on Object oriented characteristics,basics of C such as a few codes based on bitwise operators,keywords like volatile,OS concepts such as semaphores,IPCs,a problem of real time operating systems based on scheduling algorithms,code conversion from java to C,endianness of architecture and a few questions on CAO and a few more questions.

The third round doesn't seem to be completely technical.Questions from concepts of OS,Networking such as router,switch,3-way hand shaking etc were asked.This interviewer asked me some general things such as background,future plans and finally asked if a had any questions to ask.

Round 1: This round was fully on operating systems and networks only. He started looking at my resume and strted with a subject called “Systems Programming”. He asked me wat is it and i explained him about the subject in detail. Then he asked me about interrupts what happens when an interrupt is called. I explained him everything in detailed fashion and he seemed to be satisfied with my answer. Then he switched to Operating systems and asked me about the role of scheduler during the interrupt. After that he asked me abt various scheduling algorithms, their advantages and disadvantages. Next he went for critical section and asked me about IPCs. After my answer he gave me a case of a low priority process executing a critical section using a semaphore and a high priority process coming for it in case of a priority based scheduling and asked me how i resolve this problem. I told him the different ways of

resolving this conflict (pre-emption of the low priority process by storing the contents in the stack etc.) and he seemed to be happy. He asked me about networks and asked me about the various steps involved when an email is sent. I explained him about the osi layers and the job of each layer in the process. He then asked me about RIP and ARP protocols and i explained everything in detail about them and the various types of routing (Distance vector routing and Link state routing) and the extentions of ARP (RARP, BOOTP, DHCP) the advantages of one over the other (Good that i have read their RFC’s for my end semester exam last semester). This ended my first round of interview, and i felt that i did well

Round 2: This was more focussed on algorithms and a little HR He started with questions like Why Cisco, What are your interests etc. Then he asked me about how i much i will be rating me in my C knowledge out of 10 (Be careful in answering questions of this sort).

Then he started with simple coding questions like how will you identify the first

bit in an integer that is 1 etc. I was able to answer it very easily

me a few probability questions questions. A few questions on OOPS included concepts like Virtual classes, and he asked me to give a real life example of each OOPS concept.I find that he was more interested in our approach to solve the problem rather than the actual solution.He asked me about the advanced data structures (B trees, B+ trees and Tries) , their advantages and disadvantages

, and the differences between each. This ended my 2nd round of interviews.

Round 3:

This round started with HR again! He asked me about my interests, what made me interested in Cisco, my career plans and why i am not interested in going for higher studies etc. He seemed to be satisfied with my answer and went for technical stuff. He started with C++ and OOPS, and asked me the questions on types like Static, Volatile etc and asked me to explain the difference betn a static variable and global variable. These continued with few coding questions (mainly Data Structures), questions on Operating Systems and networks. He asked me about the programmes i have done in my 3-2 in Computer Networks (I told him frm the basic TCP Chat server to Raw socket header capturing etc ). 1) if sorted array is given and one integer n is given as an input we have to return all pairs in array having there sum equal to n. this is very common question.

i gave answer with O(n) time compexity.(take two pointers one at the starting of

the array and one at the end , if sum of the numbers is n then return those two pointers, if some is less then increment the first pointer , else decrement the second pointer ) 2) he modified the previous problem. this time array is not sorted. this question is also very common.

Then he asked

Apply based on ur interest& Prepare based on the company! Do well!All the best for your placements