Dear Reader, Below are four sample tech interview questions dealing with OS, memory management etc.
Question 1
This question is pertaining to memory allocation and fragmentation as a result of allocation rules adopted by storage systems. Here comes your question . With regards to memory allocation by storage systems the space between the last byte of the file and the first byte of the next cluster is a form of internal fragmentation called
a) File Slack b) Slack Space c) Cluster Overhang d) All The Above
Answer : d) All The Above. (One can call this space by names including file slack, slack space and cluster overhang)
Question 2
Consider an already excessively fragmented storage. Now if a large unit of data is to be stored it will be broken up into many pieces to accommodate it fully in spaces available. This is called as ____
a) Data Fragmentation b) Internal Fragmentation c) File System Fragmentation d) External Fragmentation
Answer : a) Data Fragmentation
Question 3
Which of the following can lead application crash (resulting in operating system signalling an exception to the application)
a) Passing invalid arguments to system calls
b) Accessing other system resources to which the application does not have permission
c) Executing privileged or invalid instructions
d) All the above
e) None of the above
Answer : All the above given factors can lead to crash of an executing application.
Question 4
The crash occuring due to sanity checking logic is
a) Website server crash b) Application Crash d) Operating System Crash d) All The Above
Answer : d) Operating System Crash
Reason :
Website server crash occurs when the script( like php, asp) is not able to connect to database (sql,sql server) and application crash is due to application level issues like Passing invalid arguments to system calls etc. However a failure in sanity checking logic means, operating system is not consistent as expected especially with regards to arithmetic operations.