Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 18 1 pts A structure declaration does not create anything in memory until you create a new instance of the structure. unti u create

image text in transcribed
image text in transcribed
image text in transcribed
Question 18 1 pts A structure declaration does not create anything in memory until you create a new instance of the structure. unti u create a new instance of the True O False Question 19 1 pts Once you have created an instance of a structure, you can access its fields using the dot operator (a period). True O False Question 20 1 pts You can use the assignment operator(-) to assign one structure object to another. O True O False Question 13 1 pts Look at the following code sample that creates an array of Pet structure objects: struct Pet public string name: public int age public string type const int SIZE4: Petll cats new Pet ISIZE]: Which one of the following statements assigns the string "Pickles" to the name member of cats [21? o "Pickles" = cats[2]; O cats[2].name = "Pickles". cats.name[2] - Pickles; cats 2].name("Pickles"); Question 9 1 pts Look at the following code sample: struct Pet public string name; public int age: public string type: Pet hound new Pet() Which one of the following statements assigns the string "Beagle" to the hound object's type field? hound- new type("Beagle"); Ot ype "Beagle" hound.type "Beagle" Pet.hound.type("Beagle")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions