Pass the WGU Courses and Certificates Scripting-and-Programming-Foundations Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

It is given that integer x = 41 and integer y = 16. What is the value of the expression (x % y)?

Options:

A.

-15


B.

-11


C.

-8


D.

9


Expert Solution
Questions # 2:

It is given that integer x=41 and integer y = 16. What is the value of the expression (x % 8) - y?

Options:

A.

-15


B.

-11


C.

-8


D.

1


Expert Solution
Questions # 3:

What is the proper way to declare a student's grade point average throughout the term it this item is needed in several places in a program?

Options:

A.

variable int gpa


B.

constant float gpa


C.

constant int gpa


D.

variable float gpa


Expert Solution
Questions # 4:

What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.

Question # 4

Options:

A.

5.0


B.

6.0


C.

6.1


D.

8.4


Expert Solution
Questions # 5:

What is the Agile phase that results in a list of objects to be written?

Options:

A.

Design


B.

Testing


C.

Implementation


D.

Analysis


Expert Solution
Questions # 6:

Which problem is solved by DijkStra’s shortest path algorithm?

Options:

A.

Given an increasing array of numbers is the number 19 in the array?


B.

Given the coordinates of five positions, what is the most fuel-efficient flight pain?


C.

Given two newspaper articles what is the greatest sequence of words shared by both articles?


D.

Given an alphabetized list of face entrants and a person's name, is the person entered in the race?


Expert Solution
Questions # 7:

What is a characteristic of an interpreted language?

Options:

A.

Is restricted to running on one machine


B.

Generates syntax errors during compilation


C.

Can be run by a user one statement at a time


D.

Has a programmer writing machine code


Expert Solution
Questions # 8:

Which expression has a value equal to the rightmost digit of the integer q = 7777?

Options:

A.

10 % q


B.

q % 10


C.

q / 10000


D.

q % 10000


Expert Solution
Questions # 9:

A programmer receives requirements from customers and decides to build a first version of a program. Which phase of an Agile approach is being carried out when the programmer starts writing the first version?

Options:

A.

Implementation


B.

Testing


C.

Design


D.

Analysis


Expert Solution
Questions # 10:

Which value would require an integer as a data type?

Options:

A.

The number of students in a section


B.

The cost of a dinner including tax and tip


C.

The weights of every patient involved in a pharmaceutical


D.

An approximation of the number pi to five decimal places


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions