general question on executing file in drwx--x--x directory

suppose:

nevermind, i figured it out, haha...

I think that you need permission to read the directory before you can view any files or to run any programs stored there.
If you have execute permission on a directory, then this only means that you can "cd" there, but you will still need to have read permission.

This sounds like a homework question. How would you know the length of the name?