A sample function is shown.
Y = -2 ‘’ x - 2
What is returned for f(-1)?
Which characteristic specifically describes an object-oriented language?
A software developer determines the mathematical operations that a calculator program should support When two waterfall approach phases are involved?
A particular sorting takes integer list 10,8 and incorrectly sorts the list to 6, 10, 8.
What is true about the algorithm’s correctness for sorting an arbitrary list of three integers?
A software team has been commissioned to create an animation application. Which event takes place during the analysis phase in the Agile approach?
A programmer has been hired to create an inventory system for the books in a library. What is the waterfall phase in which waterfall outlining all the functions that need to be written to support the inventory system?
Consider the given function:
function K(string s1, string s2)
Put s1 to output
Put " and " to output
Put s2 to output
What is the total output when K("sign", "horse") is called 2 times?
Which line is a loop variable update statement in the sample code?
integer h = 0
do
Put "What is the password?" to output
String userInput = Get next input
if userInput != pwd
Put "Incorrect." to output
h = h + 1
while (userInput != pwd) and (h <= 10)
if userInput = pwd
Put "Access granted." to output
else
Put "Access denied." to output
A programmer is writing code using C. Which paradigm could the programmer be using?
A sample function is shown:
What is returned for F (3)?