I'm not sure what you mean when you say
But if I want to give color to each tab based on flag as 1 or 0 how will I do that for every column.Is there any other ways to structure this type of data.
You might be better off reshaping the data. Currently it's in a "wide" format. If you reshape it to a "narrow" format, you'll be able to add the Question to the Columns shelf and SUM(Answer) to the rows. Then you can add another dimension to the color shelf.
You can use Tableau's Excel plugin (Installing the Tableau Add-In for Reshaping Data in Excel | Tableau Software) to reshape the data it will look something like this:
And then you can get this:
And now the color shelf is available to you. ...