Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Software engineering Questions with correct answers

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
13-09-2023
Written in
2023/2024

Software engineering Questions with correct answers Define waterfall development - ANSW- When we go through stages of development, each one feeding into the other. So we end up designing early on, and then coding and testing later on The issue is this way does not give much

Show more Read less
Institution
Course

Content preview

Software engineering Questions with correct
answers

Define waterfall development - ANSW- When we go through stages of development,
each one feeding into the other.

So we end up designing early on, and then coding and testing later on

The issue is this way does not give much scope for going back through and working
after a phase has ended

What's the main issue with not designing a software correctly - ANSW- The cost to add
something new will gradually keep increasing, until it becomes to hard to add something
new.

What are the elements of simple design (4) - ANSW- - Have fewer elements
- Maximises clarity
- Minimise duplication
- Behaves correctly

What is test driven development - ANSW- - We write the test for a feature we want to
implement
- We write code to pass that test (simplest code)
- We then refactor to make the code better (clean up, remove duplication etc)
- Then we cycle again

Whats a good thing about TDD and having tests in the refactoring stage - ANSW- We
have a safety net in case it fails

What is behaviour driven development - ANSW- - This uses TDD, but focuses on
people thinking about the behaviour rather then the implementation


- So how it works is we will write out the functionality in natural language
- We will then use this to write out a test

Give me a example of Behaviour driven development - ANSW- CustomerLoopup

- find customer by id
- fails for duplicate customers
- ...

public class CustomerLoopupTest {

, @Test
findsCustomerById(){
}
...
}

Define refactoring - ANSW- Changing the design of code without changing functionality

In TDD when should we refactor - ANSW- In a green state, as we have a test to check
for functionality

Define technical debt - ANSW- Say we have a time constraint, and we copy a block of
code and we know we should refactor but we don't, this can cause technical debt to
build up, and if we don't pay it a system can become harder to work with

What's the con of doing many small refactoring's instead of one big one - ANSW- -
Harder to explain them
- Technical debt has built up over time, so longer to achieve the refactoring's

Describe composing methods - ANSW- When we take a large method, and split it up
into chunks.

Describe Separate Responsibility - ANSW- Say we have one for loop which does 2
things in it, we may want to split this up into 2 for loops which each do separate things,
which may make the code easier to follow

Describe inline variable - ANSW- When we take something which was assigned a
variable, and just use that something without assigning it.

Describe duplication between classes - ANSW- Literally in the name. Sometimes if we
have a lot of duplication, we may want to move the common codes into their own
objects

Describe rename to tidyup - ANSW- Sometimes the names we use are long and
unnecessary, so we can now rename to make it easier to read

Describe replace conditional with polymorphism - ANSW- - So in OOP we do not like
conditionals, we don't want to make decisions based on information we just got. Instead
we want the person we got the data from to make the decision for us

- So to make sure this happens we can replace the conditionals with polymorphism

7 refactoring terms - ANSW- - Separate Responsibility
- Compose Method
- Inline Variables
- Rename Variables

Written for

Course

Document information

Uploaded on
September 13, 2023
Number of pages
11
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.19
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions