Curves on a quadric surfaces over overline{F}_p