Fundamentals of Software Engineering 4351 Midterm 3

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/92

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

93 Terms

1
New cards

In the paper "Why Software Projects Fail", 48% of developers identified as the top reason for project failure.

changing and/or poorly documented requirements,
poorly documented requirements,
changing requirements

2
New cards

"The hardest part of building a software system is deciding precisely what to build. No other part of the conceptual work is as difficult as establishing… belongs to ____.

Fredrick Brooks

3
New cards

StatCounter is able to track mobile and desktop browser usage by using a device's camera to watch users accessing the web.

False

4
New cards

Mobile websites often show less information than their desktop counterparts

True

5
New cards

Phone numbers and addresses are typically of equal importance to desktop and mobile website users

False

6
New cards

A mobile user should never have access to the desktop version of a website when a mobile version is available

False

7
New cards

The web server detects mobile browsers by examining the User-Agent request header

True

8
New cards

Developers must test their mobile websites on a variety of mobile devices to ensure the websites work properly for all users.

True

9
New cards

A screen emulator is software that simulates how mobile device screens operate. Developers access the DevTools screen emulator by typing Ctrl-Shift-I in Chrome (Windows) or Command-Option-I (Mac)
The emulator is only capable of emulating the iPhone

False

10
New cards

The www.whitehouse.gov home page looks identical in desktop Chrome and in an emulated iPhone 6 browser

False

11
New cards

Most websites and web applications require the development of client-side technologies that interact with server-side technologies.

A front-end developer is a developer that is proficient in client-side technologies. A back-end developer is a developer that is proficient in server-side…

True

12
New cards

Business Logic

Programming logic on the front or back-end that determines how data can be created, displayed, stored, and changed.

13
New cards

Application Programming Interface (API)

Programmable actions that may be performed on the underlying data often used by the front-end to interact with the backend

14
New cards

Data modeling

Representing, storing, and retrieving application data in relational and non-relational databases.

15
New cards

Server and hosting environment

Issues regarding network throughput, cloud storage, virtualization, hardware constraints, multithreading, and data redundancy.

16
New cards

Testing framework

Automated tests that verify the web application components are working properly, independently and together.

17
New cards

User Interface

Visual part of the app

18
New cards

it is stated that an early criticism of agile processes was that it _.

avoided the problem of poorly defined requirements by simply not seeking it.

19
New cards

"If you don't get the requirements right, it doesn't matter how well you do anything else." belongs to ____

Karl Wiegers

20
New cards

a long running software principle, known as _, calls for problem decomposition.

divide-and-conquer

21
New cards

"Requirements errors account for 70 percent to 85 percent of the rework costs on a software project" belongs to ____

Karl Wiegers

22
New cards

In the paper "Why Software Projects Fail", talks about keeping sizes of teams working on a single software component small following the ____ rule:

pizzas, 2-pizza

23
New cards

"Requirements development is an iterative process. One should not expect to go through the steps in a one-shot, linear fashion.

True

24
New cards

According to StatCounter, the Safari mobile web browser is most often used to access the web in North America.

True

25
New cards

Web developers have a wide range of options when choosing a server-side programming platform or language. When choosing a server-side programming platform

True

26
New cards

The UML OOA State Chart Model can be used in creating the OOD Detailed Design, also known as _.

pseudocode

27
New cards

During the OO Design Workflow one goal of the iteration and incrementation of the OO Analysis artifacts is to identify the method

classes

28
New cards

During the Design Workflow another goal of the iteration and incrementation of the Analysis artifacts is to perform the detailed

design

29
New cards

During the data Design Workflow, the data Analysis artifact ERD Model is converted to the ____ Model.

relational

30
New cards

The input to the Design process is the specification document, a description of what the product is to do. The output is the design document, a description of ____ the product is to achieve this.

how

31
New cards

The use of Program Description Language (PDL) for representing the Detailed Design is an attractive alternative (_ is an earlier

pseudocode

32
New cards

This is an example of:
void performwordcount()

PDL, pseudocode

33
New cards

void elevatorEventLoop (void)
The above PDL- Program Design Language is generated for the UML_ model

statechart

34
New cards

The aim of the analysis workflow is to analyze and refine the requirements to achieve the detailed understanding of the requirements essential for developing a software product correctly and maintaining it easily. At first sight, however, there is no need for an analysis workflow. Instead, an apparently simpler way to proceed would be to develop a software product by continuing with further __ of the requirements workflow until the necessary understanding of the target software product has been obtained.

iterations

35
New cards

Ambiguities cannot arise if the requirements are expressed (say) in a mathematical notation. However, if a mathematical notation is used for the requirements, then the is unlikely to understand much of the requirements. As a result, there may well be miscommunication between client and developers regarding the requirements, and consequently, the software product developed to satisfy those requirements may not be what the client needs.

client

36
New cards

Many of these problems can be reduced by using the Unified Process. This is because diagrams together with descriptions of those diagrams are less likely to contain ambiguity, incompleteness, and contradictions.

UML

37
New cards

Below is a Finite State Machine Specification
What is this Specification for? Anderson ____

library

38
New cards

Below is a Finite State Machine Specification
What is the Initial State?
(Please use the labels from the figure above)

New Book

39
New cards

Below is a Finite State Machine Specification:
These are the Set of States: {New Book, Returned, On Shelves, Checked Out, On Hold, Returned, Hold}

What is the set of inputs?

{+, -, C, R, H}

40
New cards

Below is a Petri Net Specification:
This Petri Net Specification is described by C = {P, T, I, O}
Is this the set of Places?
P = {On Hold, On Shelves, Checked Out, Borrowers}

True

41
New cards

Below is a Petri Net Specification:
What is the input function for R?
(I(R) = {____})

Checked Out

42
New cards

Below is a Petri Net Specification:
What is the output function for R?
(O(R) = {____})

On Shelves

43
New cards

Is there such a thing as "Object Oriented Requirements"? Enter Yes or No

No

44
New cards

The overall aim of the Requirements workflow is for the development organization to determine the 's needs. The first step toward this goal is to gain an understanding of the application domain (or domain for short), that is, the specific environment in which the target product is to operate. The domain could be banking, space exploration, automobile manufacturing, or telemetry. Once the members of the development team understand the domain to a sufficient depth, they can build a business __ that is, use _ Diagrams to describe the Client's business processes.

In this question word3 is 3 words…

client, model, uml use case

45
New cards

Software development is . The development process usually begins when the client approaches….. The first task of the development team is to acquire a basic understanding of the application ____

expensive, domain

46
New cards

The term Requirements Engineering is sometimes used to describe what is performed during the Requirements Workflow… Once the initial set of Requirements has been drawn up, the process of refining and extending them is termed Requirements _

analysis

47
New cards

The first task of the development team is to acquire a basic understanding of the application _ that is, the specific environment in which the target software product is to operate.

domain

48
New cards

A variety of other constraints often are present, such as reliability … Another common constraint is the __ of the executable load image

size

49
New cards

The business MODEL is used to determine WHAT the Client's initial Requirements are… At this point the _ stops.

iteration

50
New cards

The ___ method can be used to check for the presence of a required character in an input field

indexOf()

51
New cards

What is the proper way to set valid to true if the number is valid, false otherwise?

function checkNumber() {
let number = numberWidget.value;
number = number.trim();
valid = ;
}

number.length === 10 && !isNaN(number)

52
New cards

What stylesheet method changes the color of an element with classname "myclass" to green?

stylesheet.insertRule(".myclass { color: green }");

53
New cards

In the following example, how is the head element accessed from a DOM?




DOm exmaple.


document.documentElement.children[0]

54
New cards

How is RESTful web service API called?

using a url and parameters

55
New cards

Which

defer

56
New cards

what function call cancels the interval? let timerId = setInterval(repeatMe, 1000);

clearInterval(timerId);

57
New cards

In a text box's keyup event handler, the event parameter's property is the text box object where the key up event occurred.

target

58
New cards

Why is a key sometimes needed to access a third-party-web-based API?

To obtain a key, a developer must agree to restrictions on data received

59
New cards

What does the span's style attribute method getPropertyValue("color") return?
TEST

"blue"

60
New cards

What document object method should be used to create a text string for inserting into a paragraph?

createTextNode()

61
New cards

What default object is used when no object prefix appears before a property or method call? Ex: alert("Hello");

window

62
New cards

A(n) _allows older browsers to function with newer features by providing missing functionality.

polyfill

63
New cards

How many times is showMe() called when the following code is executed?

let timerId = setTimeout(showMe, 3000);

function showMe() {
let div1 = document.getElementById("div1");
div1.style.display = "block";
timerId = setTimeout(showMe, 3000);
}

indefinitely

64
New cards

How is the age field accessed after the following code executes?
let obj = JSON.parse('{"name":"Bobby", "age":20}');

obj.age

65
New cards

x = 4 ** 4 is the same as __.

x = 4 * 4 * 4 * 4

66
New cards

What is output to the console?

function getSum(scores) {
if (!Array.isArray(scores)) {
}
if (scores.length != 2) {
throw new RangeError("Length error");
}
return scores[0] + scores[1];
}

try {
let sum = getSum([50, 60, 70]);
console.log(sum);
}
catch (ex) {
console.log(ex.message);
}

Length error

67
New cards

What is rainbow's data type?
let rainbow = ["red", "orange", "green", "purple"];

Array

68
New cards

Which Date method changes the time from 12 noon to 4 pm? let changeTime = new Date(2020, 5, 2, 12);

changeTime.setHours(16);

69
New cards

What if-else statement correctly conveys the following information? If age is at least 16, "You can learn to drive." is output.

if (age >= 16) {
console.log("You can learn to drive.");
}
else {
console.log("You need to wait a little longer.");
}

70
New cards

What code segment changes the year to 2021? let changeYear = new Date (2020, 6, 20);

changeYear.setFullYear(2021);

71
New cards

Which statement evaluates to true? let score = 10;

score == "10"

72
New cards

What is the correct format for calling the function and using 1 and 2 as arguments?

function multiplyNums(a, b) {
return a * b;
}

multiplyNums(1, 2);

73
New cards

What is output to the console?

function changeThings(someMovie) {
someMovie.title = "Race";
somemovie = {
title: "42",
rating: "PG-13"
};
}

let movie = {
title: "Greater",
rating: "PG"
};
changeThings(movie);
console.log(movie.title);

Race

74
New cards

Which function correctly sorts the values in a descending order? let nums = [10, 2, 15, 25, 40, 55, 5];

nums.sort(function (a, b) {
return b - a;
});

75
New cards

How many DOM nodes are created from the paragraph?

Feed the dog.

One for the p element and one for the paragraph text

76
New cards

Which of the following methods sets the text color in a div element to green?let div = document.querySelector("div");

div.style.setProperty("color", "green");

77
New cards

The _ website shows what features are supported by major browsers and frequency of use.

CanIUse

78
New cards

In the following JSON, the data type of friends is _.

{"friends": [{ "name":"Bobby"}, {"name":"Celia"}]}

array

79
New cards

_ is an object used to communicate with a web server.

XMLHttpRequest

80
New cards

Assuming the following:

Click Me

what event listener declaration pair would result in the given message sequence:

"You clicked on the p element."
"You clicked the div element."

document.getElementById("p1").addEventListener("click", function() { alert("You clicked the p element."); });

document.getElementById("div").addEventListener("click", function() { alert("You clicked the div element."); });

81
New cards

What will the webpage contain after executing the JavaScript?


The paragraph is: Paragraph with class

82
New cards

The CSS rule input:invalid _.

does not require JavaScript to validate

83
New cards

What does stringify() return?

JSON.stringify({"friends":
[{"name":"Bobby", "age":20},
{"name":"Celia", "age":30},
{"name":"Judy", "age":21}]},
["friends", "age"]);

string with no names

84
New cards

What is missing to complete the following code segment?

throw, finally

85
New cards

If parseInt() cannot return a number, ____ is returned

NaN

86
New cards

What is the correct format for logging "My favorite food is pizza."?let favFood = "pizza";

console.log("My favorite food is " + favFood + ".")

87
New cards

The variable findConst has _.

function musicTix(people, price) {
var findCost = people * price;
return findCost;
}

local scope

88
New cards

What does nums.indexOf(10) return?
let nums = [4, 8, 10, 6, 2];

2

89
New cards

Which statement changes the puppy object's name from Daisy to Darth?

puppy.name = "Darth";

90
New cards

Which method changes 10.2 to 11?

Math.ceil(10.2);

91
New cards

What code converts divideNums(a, b) into an arrow function?function divideNums(a, b) {return b / a;}

let divideNums = (a, b) => b / a;

92
New cards

Fill in the blank to eliminate the owner property from the pokemon object

delete

93
New cards

Complete the statement below to answer what is output to the console?

switch, It is sunny.