This visual execution shows how Redis commands ZRANK and ZREVRANK work on a sorted set. First, members apple, banana, and cherry are added with scores 10, 20, and 15. ZRANK returns the position of a member when sorted from lowest to highest score. For banana, this is 2 because apple and cherry have lower scores. ZREVRANK returns the position from highest to lowest score. For banana, this is 0 because it has the highest score. If a member does not exist, both commands return nil. The variable tracker shows the sorted set state and ranks after each command. Key moments clarify why ranks are as they are and what happens if a member is missing. The quiz tests understanding of ranks and nil results. The snapshot summarizes syntax and behavior for quick reference.