Computer Science 215 Quiz 8 Name ______________________ 1. Given the following structure definition, which of the following is syntactically correct. struct new a. v[2].a = 1; b. v.a[1] = 1; { int a; c. v.b[1] = 1.5; d. v[1].b = 1.5; float b[2] }; struct new v; 2. Given the following structure definition, which of the following is syntactically correct. struct new a. v[1].a = 1; b. v.a = 1; { int a; c. v.b[1] = 1.5; d. v.b[1] = 1.5; float b; }; struct new v[2]; 3. Given the following structure definition, which of the following is syntactically correct. struct new a. v[1].a[1] = 1; b. v[0].b[1] = 1; { int a; c. v.b[1] = 1.5; d. v.a[1] = 1.5; float b[2]; }; struct new v[3]; 4. Given the following two structures: struct image struct pix { { int rows; unsigned char r; int cols; unsigned char g; struct pix pixmap[1024][768]; unsigned char b; }; }; the order in which the structure definitions appears in a program must be: a. struct image before b. struct pix before struct pix struct image c. Either way works fine 5. Given the following definition: struct image* p; Which is the correct way to set the value of the red component of the pixel at row 10 column 15 to 250. a. p[10][15] = 250; b. p->pix[10][15] = 250; c. p.pix[10][15] = 250; d. p->pixmap[10][15] = 250;