In the series premiere of Star Trek: The Next Generation, "Encounter at Farpoint," the android Data (Brent Spiner) whistles a recognizable snippet of "Pop Goes the Weasel."
Early in the episode, as the crew explores the new Enterprise-D, Data attempts to mimic human behavior by whistling the familiar nursery rhyme melody. He doesn't perform the entire song—just a few bars—but the tune is unmistakable.
This small moment efficiently establishes Data's core character arc: his persistent, endearing efforts to understand and emulate humanity. The choice of a simple, childlike tune underscores his innocence and the gap between his vast computational ability and his lack of intuitive human experience. It's a quietly iconic beat that foreshadows seven seasons of Data's quest to become more human.