Mastering User Stories and Software Requirements
34 Questions
5 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is a benefit of using user stories in agile development?

  • Improving communication (correct)
  • Collecting software requirements
  • Conducting interviews
  • Encouraging vague information
  • What should be avoided in a focus group?

  • Vague information
  • Structured questionnaires
  • Leading questions (correct)
  • Observation of users
  • Which of the following is a property of the List class in C#?

  • Non-generic version
  • Count (correct)
  • Generic version
  • Grow and shrink
  • Which method of the List class would you use to delete an element at a specific index?

    <p>remove</p> Signup and view all the answers

    To make a button execute a group of code when it is clicked at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the button on the designer window?

    <p>Click event handler</p> Signup and view all the answers

    To make a ComboBox execute a group of code when it is selected at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the ComboBox on the designer window?

    <p>Selected index change event handler</p> Signup and view all the answers

    A List<T> collection uses ___ to identify each element in the collection while a Dictionary<TKey, TValue> uses ____ to identify each value in the collection.

    <p>Indexes, keys</p> Signup and view all the answers

    Which of the following is an advantage of observation of the users when collecting software requirements?

    <p>Gather more accurate and unbiased information</p> Signup and view all the answers

    Which of the following is NOT a benefit of studying the legacy system and analyzing the documents?

    <p>Identify the developer of the previous system</p> Signup and view all the answers

    Which of the following is a property of the List class in C# that returns the number of elements in the list?

    <p>Count</p> Signup and view all the answers

    Which method of the List class would you use to delete an element at a specific index?

    <p>RemoveAt</p> Signup and view all the answers

    To make a button execute a group of code when it is clicked at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the button on the designer window?

    <p>Click event handler</p> Signup and view all the answers

    To make a ComboBox execute a group of code when it is selected at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the ComboBox on the designer window?

    <p>SelectedIndexChanged event handler</p> Signup and view all the answers

    A List<T> collection uses ___ to identify each element in the collection while a Dictionary<TKey, TValue> uses ____ to identify each value in the collection.

    <p>Indexes, keys</p> Signup and view all the answers

    Which of the following is an advantage of using user stories in agile development?

    <p>Improved communication between the team and stakeholders</p> Signup and view all the answers

    What should be avoided in a focus group?

    <p>Leading questions</p> Signup and view all the answers

    Which of the following is an advantage of structured questionnaires?

    <p>Save time</p> Signup and view all the answers

    Which of the following is an advantage of observation of users when collecting software requirements?

    <p>Learn about the users’ environment</p> Signup and view all the answers

    Which of the following is not a benefit of studying the legacy system and analyzing the documents?

    <p>Identify the developer of the previous system</p> Signup and view all the answers

    Which of the following consists of five to ten users with a moderator?

    <p>Focus group</p> Signup and view all the answers

    Compared to an interview for user requirements, what does a structured questionnaire with close-ended questions take less of?

    <p>Time</p> Signup and view all the answers

    What are collections in C# similar to?

    <p>Arrays</p> Signup and view all the answers

    How does the number of elements in a collection in C# change dynamically?

    <p>Grow and shrink</p> Signup and view all the answers

    What is a reason you may still want to learn about arrays in C#?

    <p>Arrays can run faster than collections</p> Signup and view all the answers

    Which method of the List class would you use to delete an element at a specific index?

    <p>RemoveAt</p> Signup and view all the answers

    To make a button execute a group of code when it is clicked at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the button on the designer window?

    <p>Click event handler</p> Signup and view all the answers

    To make a ComboBox execute a group of code when it is selected at runtime in a C# Windows Forms App, what event handler should you generate by double-clicking on the ComboBox on the designer window?

    <p>SelectedIndexChanged event handler</p> Signup and view all the answers

    A List<T> collection uses ___ to identify each element in the collection while a Dictionary<TKey, TValue> uses ____ to identify each value in the collection.

    <p>Indexes, keys</p> Signup and view all the answers

    The ____ of an element in a List<T> collection may change when another element is removed from or inserted into the list.

    <p>Index</p> Signup and view all the answers

    The key to an element in a Dictionary<TKey, TValue> collection _____ when another element is removed from or inserted into the dictionary.

    <p>Is the same</p> Signup and view all the answers

    An allStudents collection that uses student ID as the key should look like this (assuming a student ID is an integer and a student is an instance of the Student class): Dictionary<int, Student> allStudents = new Dictionary<int, Student>();

    <p>True</p> Signup and view all the answers

    Suppose a collection of all friends with phone number is declared like this (assuming a phone number is a string and a friend is an instance of the Friend class): Dictionary<string, Friend> allFriends = new Dictionary<string, Friend>(); Then a friend with a phone number of (202)341-9988 is ___.

    <p>allFriends[&quot;(202)341-9988&quot;]</p> Signup and view all the answers

    Adding a key/value pair to a dictionary that already contains the key will ____.

    <p>Throw ArgumentException</p> Signup and view all the answers

    To access the value of a non-existing key of a dictionary collection will ___.

    <p>Throw KeyNotFoundException</p> Signup and view all the answers

    Study Notes

    Agile Development

    • A benefit of using user stories in agile development is that it provides a clear understanding of the requirements.

    Focus Groups

    • In a focus group, leading questions should be avoided.

    C# Lists

    • A property of the List class in C# is that it uses indexes to identify each element in the collection.
    • The Count property of the List class returns the number of elements in the list.
    • The RemoveAt method of the List class is used to delete an element at a specific index.

    C# Windows Forms App

    • To make a button execute a group of code when it is clicked at runtime, the Click event handler should be generated by double-clicking on the button on the designer window.
    • To make a ComboBox execute a group of code when it is selected at runtime, the SelectedIndexChanged event handler should be generated by double-clicking on the ComboBox on the designer window.

    C# Collections

    • A List collection uses indexes to identify each element in the collection, while a Dictionary uses keys to identify each value in the collection.
    • Collections in C# are similar to arrays.
    • The number of elements in a collection in C# changes dynamically.
    • A reason to learn about arrays in C# is that they are still used in some situations.

    Dictionary_Collections

    • The key to an element in a Dictionary collection remains constant when another element is removed from or inserted into the dictionary.
    • An example of a Dictionary collection is: Dictionary allStudents = new Dictionary();
    • Adding a key/value pair to a dictionary that already contains the key will throw an exception.
    • Accessing the value of a non-existing key of a dictionary collection will throw an exception.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Test 3.docx

    Description

    Improve your understanding of user stories and software requirements with this quiz. Test your knowledge on communication tools, interview participants, collecting information, and avoiding common pitfalls in focus groups.

    More Like This

    Teamwork and Agile Development Quiz
    5 questions
    Systems Requirements and Agile Development
    37 questions
    Use Quizgecko on...
    Browser
    Browser