Scripting-and-Programming-Foundations Exam Question 6
A function should determine the average of x and y.
What should be the function's parameters and return value(s)?
What should be the function's parameters and return value(s)?
Scripting-and-Programming-Foundations Exam Question 7
Which output results from the following pseudocode?


Scripting-and-Programming-Foundations Exam Question 8
Which problem is solved by DijkStra's shortest path algorithm?
Scripting-and-Programming-Foundations Exam Question 9
What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.
NumList = [1, 3, 6, 6, 7, 3]
x = 0
Count = 0
for Number in NumList
x = x + Number
Count = Count + 1
x = x / Count
Put x to output
NumList = [1, 3, 6, 6, 7, 3]
x = 0
Count = 0
for Number in NumList
x = x + Number
Count = Count + 1
x = x / Count
Put x to output
Scripting-and-Programming-Foundations Exam Question 10
A program adds a service fee to the total cost of concert tickets when the tickets are printed and mailed to customers. Another service fee is also added if the tickets are delivered overnight. Which control structure should be used?