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

What are two examples of valid function calls?

Choose 2 answers.

A.

function sample(float 2.0)

B.

GetHeight(integer 3, 4)

C.

round(4.723, 2)

D.

PrintSample()

The steps in an algorithm to calculate the positive difference in given values, x and y, are given in no particular order:

    Put Diff to output.

    Set Diff = x - y.

    If y > x, set Diff = y - x.

    Declare variable Diff.What is the first step of the algorithm?

A.

Put Diff to output.

B.

Set Diff = x - y.

C.

If y > x, set Diff = y - x.

D.

Declare variable Diff.

Which three statements describe a characteristic of a programming library?

A.

A library typically must be included before any function in the library is used

B.

A single library normally includes more than one function.

C.

Using libraries will always make a program run less efficiently.

D.

Libraries improve a programmer's productivity.

E.

A single program can only include one library.

F.

One library will contain one function but can have several variables.

What is an example of an algorithm?

A.

The list contains apples bananas, and oranges

B.

A webpage uses an HTML file type

C.

The sign of two integers determines the sign of the product

D.

Unplug the device, wait 30 seconds, and restart the device.

Which expression evaluates to 3.7 if float x = 17.0?

A.

X + 2 / 10

B.

(2 + x) / 10.0

C.

X + 2.0 / 10

D.

2 + x / 10

Given integer x = 12 and integer y = 4. What is the value of the expression x - y * 2?

A.

4

B.

6

C.

8

D.

14

A team of programmers describes the objects and functions in a program that compresses files before splitting the objects.

Which two waterfall approach phases are involved?

A.

Analysis and implementation

B.

Design and testing

C.

Implementation and testing

D.

Design and implementation

Which operator is helpful in determining if an integer is a multiple of another integer?

A.

/

B.

||

C.

+

D.

%

What is output by calling Greeting() twice?

A.

Hello!

B.

Hello!!

C.

Hello!Hello!

What is the output of the given flowchart if the input is 54?

A.

55

B.

56

C.

58

D.

60