Suggestions for testing if students use code to create their variables?

See the FAQ: How to do a minimal reproducible example reprex for beginners if that is available within your testing environment.