I wrote two answers, the first was the same as the correct answer you give, and the second was: How are these black socks? Meaning, do you like them or do they fit well, etc.
"Aus was sind diese Socken ?" german translation
Wie sind diese schwarzen Socken? (.. Are they too big or too small, or do they fit?..... when a customer tries on different socks!)