Move your mouse over the down-vote button and you will see a tool-tip. The tool-tip will give lack of research effort as a reason to down-vote. A duplicate question always carries with it the suspicion that the asker did not do enough research *to search for existing equivalent questions*. I suggest that is why you see down-votes for duplicates.

How much research effort is enough? Remember, the asker is expecting strangers to provide expert advice for free. So expecting the asker to spend *much more* time researching the question than an expert would take to answer it is reasonable.

So one or two Google searches didn't find an answer? Not enough research, if you are a beginner. Because you might have to study a text book, or talk to your teacher. Ironically, experts asking fellow experts can do less searching, because their expertise enables them to formulate good searches. Google and SO are therefore rather poor means for answering *very* basic questions, by those new to programming.