Contextuality and truth-value assignment