Mastering User Stories and Software Requirements

BrotherlyVitality avatar
BrotherlyVitality
·
·
Download

Start Quiz

Study Flashcards

34 Questions

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

Improving communication

What should be avoided in a focus group?

Leading questions

Which of the following is a property of the List class in C#?

Count

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

remove

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?

Click event handler

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?

Selected index change event handler

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.

Indexes, keys

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

Gather more accurate and unbiased information

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

Identify the developer of the previous system

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

Count

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

RemoveAt

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?

Click event handler

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?

SelectedIndexChanged event handler

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.

Indexes, keys

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

Improved communication between the team and stakeholders

What should be avoided in a focus group?

Leading questions

Which of the following is an advantage of structured questionnaires?

Save time

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

Learn about the users’ environment

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

Identify the developer of the previous system

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

Focus group

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

Time

What are collections in C# similar to?

Arrays

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

Grow and shrink

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

Arrays can run faster than collections

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

RemoveAt

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?

Click event handler

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?

SelectedIndexChanged event handler

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.

Indexes, keys

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

Index

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

Is the same

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>();

True

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 ___.

allFriends["(202)341-9988"]

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

Throw ArgumentException

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

Throw KeyNotFoundException

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.

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.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser