Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8 How would an instance and a pointer for a cookie struct cool structure using t

ID: 3822356 • Letter: 8

Question

8 How would an instance and a pointer for a cookie struct cool structure using the new operator? A) cookie chocolate cookie new, char Name 13el oat flour B) cookie chocolate new cookie, int eggs C) cookie new chocolate cookie, oat sugar 7) float butter DO cookie chocolate new cookie 9) Any object has parts-what are they? Illustration 1 A) container, data type, sign, value, address, pointer B) data, amay, integer, scope, structure, pointer C) container, data type, name, value, address, scope are the parts of a Structure declaration: 1) In Ilustration 1, which line uses the keyword? D data, data type, address, value, pointer, structure A 8 100In Illustration 1, line 1, structure is a B) 2 A) Container B) Variable D 3 D) address 2) In llustration 1, what is the tag? A) cookie 11 In Illustration 1, How many variable members does the B) Name structure have? struct A) 1 D) 2 C) 6 3) Illustration 1, which line(s form the body? In D) 4. A) 2-8 12)In Illustration 1 How many amay members does the structure have? D) 5-7 2 In Alustration 1, which choice is a data member? C) 4 A) struct cookie 1 B) sugar, 13)How many structuue members can a structure like in DO float flour, Dlustration 1 have? A) 0 What symbols define the body of a structure? 1 A) Parenthesis C) unlimited B) Braces DO 6 Brackett D) Angle brackets 14 How are structure members directly dereferenced? Sugar Which creates or instantiates the memory for a structure y- sugar C) Sugar A) Declaration Sugar B) Definition Delineation 15 are structure members indirectly dereferenced How chi ookie- chip C) chip Which operator (valid only in C++) allocates anew D) y cookie chip. chunk of memory to hold a variable of type type and returns a pointer to that memory. A) const B) new struct D) data

Explanation / Answer

Answer 1) D) 3 is the correct option

Keyword used in this line is char.

Answer 2) A) cookie is the correct option

Answer 3) A) 2-8 is the correct option

Answer 4) B) Sugar is the correct option

Answer 5) B) braces {}, as the body is written with those braces only

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote