Question 2: An image solution 

$ vi 02-square-bits
P1 21 21
11111110001010111111110000010000010100000110111010...