In 1 Corinthians 6:9-10, the Apostle Paul lists specific categories of people who will not inherit the Kingdom of God: "Do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived: neither the sexually immoral, nor idolaters, nor adulterers, nor men who practice homosexuality, nor thieves, nor the greedy, nor drunkards, nor revilers, nor swindlers will inherit the kingdom of God."
Similarly, Galatians 5:19-21 lists the works of the flesh that exclude people from the Kingdom, including sexual immorality (fornication), idolatry, and other sins.
The option listing idolaters, fornicators, and the greedy matches the biblical text. All three categories appear explicitly in Paul's lists of those excluded from the Kingdom of God.
The other options include categories such as smokers, dancers, singers, and teachers, none of which appear in any biblical list of sins that exclude people from the Kingdom. While certain behaviours may be debated in various Christian traditions, the Bible does not name smoking, dancing, singing, or teaching as disqualifying sins. Only the option drawn directly from the scriptural text is correct.