WGU-SPF Exam Details

  • Exam Code
    :WGU-SPF
  • Exam Name
    :WGU Scripting and Programming Foundations
  • Certification
    :WGU University Certifications
  • Vendor
    :WGU University
  • Total Questions
    :141 Q&As
  • Last Updated
    :Jul 16, 2026

WGU University WGU-SPF Online Questions & Answers

  • Question 91:

    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. Constant float milesTraveled
    B. Variable float milesPerGallon
    C. Variable float milesTraveled
    D. Constant float milesPerGallon

  • Question 92:

    Which operation should be used to check if the difference of two values is greater than 1?

    A. Multiplication
    B. Subtraction
    C. Addition
    D. Division

  • Question 93:

    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. variable int gpa
    B. constant float gpa
    C. constant int gpa
    D. variable float gpa

  • Question 94:

    What are two example of valid function calls? Choose 2 answers.

    A. round_number(4.723, 2)
    B. convort_value(12) returns cVa1
    C. Printsample()
    D. CountFactors(96 integer)
    E. function Sample (float 2.0)
    F. GetHeight(integer 3, integer 4)

  • Question 95:

    What is one task that could be accomplish using a while loop?

    A. After inputting two numbers, the program prints out the larger of the two
    B. A user is asked to enter a password repeatedly until either a correct password is entered or five incorrect attempts have been made.
    C. When the user Inputs a number, the program outputs "True" when the number Is a multiple of 10
    D. The user inputs an integer, and the program prints out whether the number is even or odd and whether the number Is positive, negative, or zero.

  • Question 96:

    Which expression has a values equal to the rightmost digit of the integer q = 16222?

    A. Q / 100000
    B. 10 % q
    C. Q % 10
    D. Q % 10000````````````````````

  • Question 97:

    Which symbol is used in flowcharts to represent a decision point?

    A. Oval
    B. Rectangle
    C. Diamond
    D. Parallelogram

  • Question 98:

    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

  • Question 99:

    Which characteristic specifically describes an object-oriented language?

    A. Supports creating programs as a set of functions
    B. Requires a compiler to convert to machine code
    C. Can be run on any machine that has an interpreter
    D. Supports creating programs as items that have data plus operations.

  • Question 100:

    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.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only WGU University exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your WGU-SPF exam preparations and WGU University certification application, do not hesitate to visit our Vcedump.com to find your solutions here.