Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

A sample function is shown.

Y = -2 ‘’ x - 2

What is returned for f(-1)?

A.

-3

B.

0

C.

2

D.

6

Which characteristic specifically describes an object-oriented language?

A.

Supports creating programs as items that have data plus operations.

B.

Supports creating programs as a set of functions.

C.

Requires a compiler to translate to machine code.

D.

Can be run on any machine that has an interpreter.

A software developer determines the mathematical operations that a calculator program should support When two waterfall approach phases are involved?

A.

Design and Testing

B.

Implementation and testing

C.

Design and implementation

D.

Analysis and design

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.

The algorithm only works for 10,6, 8

B.

The algorithm is correct

C.

The algorithm's correctness is unknown

D.

The algorithm is incorrect

A software team has been commissioned to create an animation application. Which event takes place during the analysis phase in the Agile approach?

A.

Deciding that new capabilities in the animation application will be written as functions without the need for any new objects

B.

Sending the application to customers for additional evaluation after new features are added

C.

Deciding to add five new capabilities to the animation application based on customer feedback

D.

Writing the code for five new capabilities

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?

A.

Implementation

B.

Testing

C.

Analysis

D.

Design

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?

A.

sign and horse and sign and horse

B.

sign and horsesign and horse

C.

sign and horse

D.

sign and horse

E.

sign and horse sign and horse

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.

if userInput = pwd

B.

h = h + 1

C.

(userInput != pwd) and (h <= 10)

D.

integer h = 0

A programmer is writing code using C. Which paradigm could the programmer be using?

A.

A procedural paradigm using dynamic types

B.

A procedural paradigm using sialic types

C.

A functional paradigm using dynamic types

D.

An event-driven paradigm using static types

A sample function is shown:

What is returned for F (3)?

A.

12

B.

4

C.

-20

D.

-5