Questions

  1. Which of the following statements are true?
    1. During serialization, XmlSerialization automatically includes private attributes in the generated XML class.
    2. In XmlSerialization, the XmlIgnore tag can be used to exclude any attribute that we don't want to include in the generated XML class.
    3. In binary serialization, private marked attributes are not serialized.
    4. Using the ISerializable interface, we can select the attributes and their tags that we want to be present in serialization.
  2. Which of the following statements are true?
    1. We can increase the size of an array collection type during program execution.
    2. Queues follow the LIFO model for accessing elements.
    3. A dictionary saves data in KeyValuePair, ensuring the uniqueness of key-value pairs present in the collection item.
    4. Both a list and dictionary allow random access to the data elements.
  3. You are working with a large group of student objects. You need to remove all duplicates and then group them by studentid. Which collections should we use?
    1. List
    2. Stack
    3. Dictionary
    4. Queue
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.71.21