0% found this document useful (0 votes)
23 views

Sample Question Bank

Uploaded by

Rohit Jindal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Sample Question Bank

Uploaded by

Rohit Jindal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Topics includes (PS, DSA, OOPS, OS, System Additional Cues / Remarks

design)
What are access modifiers?
Can extend it to sizeof operator like size of char,
Size of int data type pointers, and other data types. How to find size,
machine arch role.
What is the difference between struct and class?
What is operator overloading?
polymorphism in C++ / Java or any language Applicable for all coding languages, can be modified
candidate prefers or is being evaluated for? accordingly
Cover copy constructor and its understanding, when
Explain constructor in C++ with an example
to use which one, how to block copy, etc..
What is an abstract class and when do you use it?
Given a matrix of M * N elements (M rows, N
columns), return all elements of the matrix in spiral
order.
What are basic class/struct object size and padding
Discuss virtual memory management
Give the relative advantages and disadvantages of
load time dynamic linking and run-time dynamic Why to choose static vs dynamic library.
linking.
Explain the process of linking and loading?
What is meant by virtual memory? With the help
of a block diagram explain the data structures used
What is swapping? Why does one need to swap
areas of memory?
What is thrashing? When does it happen and how
does it affect performance?
what is a) Segmentation b) Free space
management c) Paging
Explain memory management techniques:
a) Partitioned memory allocation
b) Segmented allocation.
Recursion based problems
What do you mean by process synchronization
IPC and different IPC mechanisms
Process scheduling considerations and strategies.
Producer consumer problem
What is a deadlock in OS? What are the necessary
conditions for a deadlock?
Data Abstraction
When and when not to use. Inheritance vs
Explain inheritance with an example composition. More details related to virtual aspects,
etc..
What is Dynamic Binding
Write own string class
What is the significance of static data and member
functions in C++
Write a program to add two complex numbers
using object as arguments
Write down the example to overload unary and
binary operators in C++
How overriding is different from the overloading
Write down a detailed C++ program to
demonstrate the use of try, catch, throw and Can assess exception and error handling in general.
nested try.
Explain the STL and it's working and can ask for Can pick some STL types and discuss in detail. When
implementation. to use what DS type.
Can we call a virtual function from a constructor?
How do you allocate and deallocate memory in
C++?
Design a phone number insertion/searching in
phone directory
What are Shared pointers and their
implementation
Singleton pattern and how it can be implemented
An element greater than or equal to a target
element in a sorted array; Code covering all the
test cases.
Write efficient, non-predictable shuffling of integer
Modified
array or pack of cards.
Maximum sum in array problem
Write a function for zigzag traversal in a binary tree
Implementation of Least recently used (LRU) cache
Find a pair with maximum XOR in an integer array
Write an algorithm to find the maximum subarray
sum for a given array.
find the shortest path between a given node in a
graph to any other node in the graph.
What do you understand by load balancing?
What do you understand by load balancing?
Design a URL shortening service like TinyURL or
bit.ly
Forum-like systems like Quora
Design a parking lot system
Design a type-ahead search engine service
Design Tic-Tac-Toe game

More links to refer: interviewbit.com & indiabix.com

You might also like