logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1491505 total)

Which option is a quality attribute mentioned in the chapter?
✅
❌
❌
❌
Переглянути це питання
In software architecture, what is a view?
❌
❌
❌
✅
Переглянути це питання
::Q8:: Architectural erosion happens when the descriptive architecture violates the prescriptive one.
Переглянути це питання

Consider: 

scores = {"Asha": 6, "Ben": 4, "Cara": 6, "Dan": 8} 

passed = [] 

distinct_scores = set() 

 

for name in scores: 

    if scores[name] >= 6: 

        passed.append(name) 

        distinct_scores.add(scores[name]) 

 

Explain what values name takes during the loop and what scores[name] retrieves. [2 marks] 

Переглянути це питання

After the loop finishes: 

  • What is stored in passed?
  • What values are in distinct_scores?
  • Why do these two collections have different lengths? 

You may give the set’s values in any order. [3 marks] 

Переглянути це питання

The following code now runs: 

saved = distinct_scores 

saved.add(10) 

 

print(10 in distinct_scores) 

State the output and explain why it occurs. [2 marks] 

Переглянути це питання

Answer these two independent questions: 

  • If saved = distinct_scores.copy() had been used instead, would adding 10 to saved also change distinct_scores? Explain briefly. Assume that 10 was not already present. [1 mark]
  • A student tries to retrieve an element using distinct_scores[0]. Explain why this does not work. [1 mark] 

Переглянути це питання
Functional requirements describe the functionality that supports business goals.
✅
❌
Переглянути це питання
::Q10:: Which of the following describes a good software architecture? _____
❌
❌
❌
✅
Переглянути це питання

What do these percentages tell you about the downprojection? Are these good values in your opinion?

Переглянути це питання