Category Archives: Interview Questions

Page table vs inverted page table

Introduction The purpose of this short post is to explain operating system’s page table vs inverted page table, mention their advantages and disadvantages in an easy to follow manner. Many students and beginners do not get the point behind these …

Read more »

Python mutex example

Introduction I highly recommend that you check out the following article to get a quick idea about different terms used in operating systems with regard to concurrency, multitasking and threading. Back to our topic, In this short post, I am …

Read more »

Static data member in C++

Introduction The distinction between regular and static variables in C++ is a such a confusing topic for many beginners including students and programers. In this short article, I am going to provide an brief explanation and hopefully remove the ambiguity. …

Read more »

Java Generic Cache Implementation

Problem Given the cache interface below //Generic Cache Interface public interface Cache<K, V> { public void put(K key, V value); public V get(K key); } We want to implement a generic cache class in order to improve compile time type …

Read more »

Java Singleton Cache Example

Problem Given the Java cache interface below, write a singleton class that implements the interface so that no warnings are generated without using @SuppressWarnings annotations //Generic Cache Interface public interface Cache<K, V> { public void put(K key, V value); public V get(K …

Read more »

Python Unittest Example

Some time ago, I applied for a software QA position and was given this assignment: Problem Given 2 input files with rows in the format: <account ID><billing ID><Sign-up Date in MM-DD-YYYY format> Write a python script to print: All accounts …

Read more »