Why would the instructor act this way? And why is it wrong?
There are many people who work in computers that have had to learn things by themselves without help "the hard way." Later on when they become expert and are in a position of training others, they feel that their students ALSO must learn as they did-- in a sink or swim fashion. It doesn't have to be this way, but it is nevertheless common especially in computer topics. People tend to behave towards others in the same way they were treated in the past.
Another factor might be that folks who aren't skilled at training, make the oversimplified assumption that answers should only address precisely what was asked in the question. That's wrong in the context of pedagogy (teaching). One of the most critical functions of the instructor is to understand the point of view of the student and "cue" their thought process in the form of questions like "socratic method." Instructors who are experienced and effective always ask many questions of their students. Instead of saying "google it" frequently, the instructor should recognize that students are having trouble with the subject and try to find the underlying causes.
There's something called "the curse of knowledge" and it is very easy trap for instructors who aren't skilled. An instructor who knows a topic operationally and functionally, has a point of view that makes it hard for them to realize how/when a student who lacks the same knowledge might develop a misconception in the subject-matter. This leads to a lack of empathy and impatience for questions that a beginner may ask. This is why being a teacher requires more than simply understanding the subject matter.
Since this is a stackexchange forum, folks are tending to blame the one's asking questions. That's not right for this context. There's a Calvinist-style tradition here where people are expected to demonstrate that they've exhausted all possible options before deigning to ask a question, regardless of whether or not the one asking even knows what those other options are. That's OK for someone reasonably well-versed in the subject matter who needs to look-up a piece of elusive information. It is NOT helpful for students that need some amount of direction and context to just "get started". That's why stackexchange sites are frequently hostile to newbies and those which are looking for a tutorial introduction to some subject-matter.
What can the OP do?
Go ahead and "google it" or find other sources of information and take the time to practice offline. Yes, of course, demonstrate some effort in asking questions like it was stackoverflow. In a classroom setting, however, cracking open a laptop and googling stuff is probably not a good use of time. In the time you spend searching for clues before daring to ask for clarification, other concepts are being presented that build upon each other, you'll miss those and fall further behind. The time to "google-stuff" is in the preparation before class and not in class.
Restructure your questions to be more open-ended. Ask questions that do not have a google-able answer. Instead of asking for facts or "what is?" questions, ask about intent, strategy or "what if?" questions. These lead the answerer to sketch out more context or gain some empathy about how you're looking at the problems. Most students do better if they gain a coherent mental picture of the subject rather a collection of disconnected details. The details can be googled later, IF you know what to look for and what to do with the information.
In the end it is your responsibility to workaround these problems. You can't force someone into being a better instructor. You have to D.I.Y. it in cases like this.