|
Accenture Interview Questions |
|
|
|
|
Interviewer: what are global and local variables?
me: local variables are only valid within the delimiters within which they are
declared. global variables are accessible to all function below which
the above which the global variable has been declared
Interviewer: what are macro?
me:i explained
Interviewer: what is a router?
me: i explained
Interviewer: how does a router select d shortest path of communication?
me:its an intelligent device and has a router algorithm in it which selects the shortest path
Interviewer: what's the difference b/w circuit switching nd packet switching?
me:i couldn't recollect so i told him don't i couldn't .. he moved on with a smile
Interviewer: asked me to write a program in assembly langaugue to find d factorial of a number
me: that's tough .. but i did it never the less ...he was impressed.
Interviewer: Write a program in C to accept names and roll numbers of students as long as the user wants
me: the catch here is "as long as the user wants" .. initially i did it fr 50
loops ... than he asked me the mistake and i told him its not indefinite
.. than he asked me to correct it .. i did it using malloc ..
|