A program calculates the average miles per gallon given miles traveled and gas consumed
How should the item that holds me miles per gallon be declared?
A program allows the user to play a game. At the end of each game, the program asks the user if they want to play again.
Which programming structure on its own is appropriate to accomplish this task?
Consider the given function.
What is the total output when F (sign, horse) is called 2 times?
The steps in an algorithm to find the maximum of integers a and b are given.
Which two steps of the algorithm should be switched to make the algorithm successful?
A programming loam is using the waterfall design approach to create an application. Which deliverable would be produced during the design phase?
An algorithm should output "OK" if a number is between 98.3 and 98.9, else the output is "Not OK." Which test is a valid test of the algorithm?
What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.
A function determines the least common multiple (LCM) of two positive integers (a and b). What should be the input to the function?
A programmer has been hired to create an inventory system for a library. What is the Waterfall phase in which outlining all the functions that need to be written to support the inventory system occurs?
The steps in an algorithm to calculate the positive difference in two given values, x and y, are given in no particular order:
What is the first step of the algorithm?
Which phase of a Waterfall approach defines specifics on how to build a program?
A programming team is using the Waterfall design approach to create an application. Which deliverable would be produced during the design phase?
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?
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?
An example of an behavioral diagram is shown.
What is generally visualized with a behavioral diagram"?
Which phase of an Agile approach would create a function that calculates shipping costs based on an item’s weight and delivery zip code?
Which operation should be used to check if the difference of two values is greater than 1?
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
Which data type should be used to hold the value of a person’s body temperature in Fahrenheit?