Browse all practice questions for the Western Governors University (WGU) C173 Scripting and Programming Practice Test. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Western Governors University (WGU) C173 Scripting and Programming Practice Test course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • How is a dictionary defined in Python?
  • Why are programming libraries used in development?
  • What is a programming expression?
  • What happens if you define a function but do not call it?
  • What is the primary purpose of an IDE?
  • In JavaScript, how do you create a conditional statement?
  • Which statement correctly describes how branches and loops differ?
  • What does it indicate if a programmer is in the implementation phase of a project?
  • What is the first action a programmer should take to utilize an existing programming library?
  • What is the difference between a list and a tuple in Python?
  • In terms of syntax, what distinguishes markup languages?
  • What is the purpose of a 'return' statement in a function?
  • During which phase of an agile approach is an executable program created?
  • What does a syntax tree represent?
  • If a programmer wants a compiler to flag an error when an integer variable is assigned a string, which type of language should they choose?
  • Why are functions useful?
  • What is a common use of the 'for' loop in programming?
  • What does the algorithm output when the user types -1?
  • In floating-point division, what happens if both dividend and divisor are zero?
  • What phase of the waterfall approach is involved when a program is tested with various inputs to ensure correct output?
  • How is the control of a loop determined in programming?
  • What is the primary function of an operating system?
  • What is occurring when a programmer is adding features to iterate the fourth version of a program in an agile environment?
  • A variable should hold the names of all past U.S. presidents. Which data type should the variable be?
  • What is a key difference between object-oriented languages and non-object-oriented languages?
  • What does 'object-oriented programming' emphasize?
  • What does operator precedence determine in programming?
  • What is one major advantage of using a programming library?
  • Which loop is used when you know how many times you want to iterate?
  • What does HTTP stand for?
  • Which of the following is an example of a compiled language?
  • What UML diagram is commonly used during the testing phase to illustrate interactions?
  • What does the else clause in an if-else statement signify?
  • Which operator is used to compare two values for equality?
  • How do interpreted languages generally function on diverse machines?
  • Which of the following best describes a logical operator?
  • What is the significance of whitespace in programming?
  • When should a programmer develop an algorithm to solve a problem?
  • In algorithm design, what is the term used for the specific input values used to validate the algorithm?
  • How do you convert a string to an integer in Python?
  • An algorithm should output "OK" if all numbers in a list are non-zero. What is a valid test for this algorithm?
  • A car drove 200 miles using 10 gallons of fuel. Which operation should be used to compute the miles per gallon?
  • What is the purpose of initializing the `self` parameter in methods?
  • What is the key purpose of an algorithm in programming?
  • How do you save a value to a variable?
  • Which phase in the waterfall model directly follows the analysis phase?
  • How can you define a method in an object in Python?
  • How many relational operators are commonly used in programming?
  • What data structure is used to store a collection of similar items?
  • Which phase of the waterfall approach specifies the required order of events between program components?
  • What is the primary purpose of a use case diagram?
  • Which of the following is a characteristic of a good algorithm?
  • In Python, what is the role of the `pass` statement?
  • What is the purpose of the return statement?
  • Which UML diagrams specifically focus on activities?
  • What is the purpose of a programming library?
  • In which phase of SDLC do you primarily write code?
  • What is a function call?
  • What is the purpose of the modulo operator?
  • A variable should hold a person's height in meters. Which data type should the variable be?
  • Which of the following programming languages is considered dynamically typed?
  • What happens if a loop's condition is always true?
  • Which characteristic specifically describes interpreted languages?
  • What is the primary distinction between a compiled language and an interpreted language?
  • What are the four phases of SDLC?
  • What is one key advantage of interpreted programs?
  • How do you define a class in Python?
  • What does the term 'recursion' refer to in programming?
  • A program uses the number of seconds in a minute in various calculations. How should the item that holds this value be declared?
  • What will happen if an exception is not handled in a `try` block?
  • In which phase of an agile approach are program goals modified based on client feedback?
  • Which of the following languages is considered object-oriented?
  • Which concept is important for object-oriented programming?
  • In an agile approach, which phase would create a list of components needed to build an online auction site?
  • What is the typical use of the `filter()` function in JavaScript?
  • How can you determine the length of a list in Python?
  • Which elements are included in a class diagram?
  • What feature do languages exhibit when they use tags to specify text formatting?
  • How do you create a comment in HTML?
  • What is an infinite loop?
  • What is the purpose of the 'break' statement?
  • What does debugging involve in programming?
  • In looping constructs, what function does the condition serve?
  • A program determines if a user's age is high enough to run for U.S. president. The minimum age requirement is 35. How should the item that holds the minimum age be declared?
  • What second output should an algorithm provide if it checks an empty list?
  • What programming concept allows for the creation of objects?
  • What is the primary distinction between global and local variables?
  • What feature characterizes dynamically typed languages?
  • What is the purpose of using `self` in Python classes?
  • What does it mean if an algorithm completes the task with no output?
  • Which text accurately represents an algorithm?
  • Which phase of a waterfall approach focuses on defining a program's goals?
  • In programming, what does the term "debugging" refer to?
  • Which of the following programming languages is dynamically typed?
  • What is the function of a use case diagram?
  • How can you comment a single line in Java?
  • What does 'not a number' indicate in programming?
  • What kind of diagram would you use to show how the system will be implemented on a physical machine?
  • What characteristic describes a language that enables a programmer to create entities like person, teacher, and students with internal data and operations?
  • Given float x = 10.2 and float y = 1.0, what is the value of the expression x / y?
  • What is a common characteristic of functions in a programming library?
  • What does an index reference in an array represent?
  • How does a waterfall approach differ from an agile approach?
  • What is a function?
  • Given integer x = 3 and integer y = 5, what is the value of the expression ( x / 2.0) + y?
  • What characterizes an integer in programming compared to a float?
  • What activities take place in the planning phase of SDLC?
  • What best describes a library in programming?
  • What is the result of comparing two unequal values using the equality operator?
  • During which phase does a programmer create a second version of a program based on customer feedback?
  • What is a defined characteristic of a compiled language?
  • What is the main use of a sequence diagram in UML?
  • What is a binary search?
  • What are parameters and arguments?
  • What type of loop executes at least once regardless of the condition?
  • Which UML diagram is most useful during the implementation phase?
  • Which of the following best describes the role of comments in code?
  • When might you use an array in programming?
  • Which UML diagram can illustrate the relationship between different objects in the system?
  • Are programming libraries compiled or precompiled?
  • What are typical operations that can be performed on a data structure?
  • What is the result of dividing a zero integer by a nonzero integer?
  • What constitutes a valid identifier?
  • What is the primary function of different data types in programming?
  • What symbol is used for comments in Python?
  • What is the primary purpose of a variable in programming?
  • What keyword is used in Java to define a constant?
  • What does the `try` block do in error handling?
  • What happens when dividing two integers in programming?
  • Which UML diagram focuses on the order of messages passed between objects?
  • Which type of UML diagram is best for modeling workflows?
  • In an agile approach, which phase involves defining a hypothesis to find a problem in a program?
  • What does an output of 1 indicate in the given algorithm running on a five-element list of integers?
  • What is the result of `len([1, 2, 3])` in Python?
  • Which UML diagrams are structural?
  • How is asynchronous programming primarily managed in JavaScript?
  • What does IDE stand for?
  • How does recursion work in programming?
  • In Python, which keyword is used to handle exceptions?
  • What is an array?
  • What is a key characteristic of a class in Python?
  • Which control structure is guaranteed to run only one time?
  • What is the result of dividing a nonzero floating-point number by zero?
  • When does a programmer enter the implementation phase of the waterfall approach?
  • What is an operator in programming?
  • Which language typically supports the object-oriented programming paradigm most effectively?
  • What is a comment in programming?
  • What is a function parameter?
  • Which UML diagram is primarily used to represent functional requirements?
  • In JavaScript, what does a variable declaration typically look like?
  • What is the key difference between integer variables and floating-point variables?
  • Which UML diagrams represent behavioral aspects?
  • Which phase of the waterfall process is occurring when a company determines system requirements for tracking interactions?
  • Which programming language is not based on object-oriented design principles?
  • What differentiates a variable from a constant in programming?
  • What keyword is used to define a method in Python?
  • What is the goal of the analysis phase of the waterfall approach?
  • What does an activity diagram represent in UML?
  • In programming, what usually happens during the testing phase?
  • Which loop is used when you are unsure how many times you may need to iterate?
  • Which of the following is a characteristic of floating-point variables?
  • What is one common use for operators in programming?
  • What is typically done during the maintenance phase of a project?
  • What is a primary difference between a while loop and a do/while loop?
  • What is the main difference between `==` and `===` in JavaScript?
  • What is a linear search?
  • Which of the following languages are typically considered statically typed?
  • How can an item's type be converted in programming?
  • How does a markup language differ from a programming or scripting language?
  • Which keyword is used to create a function in Python?
  • How can a module be imported in Python?
  • What is the purpose of parentheses () in a programming expression?
  • When defining a function in JavaScript, which keyword is typically used?
  • What does the term 'variable' refer to in programming?
  • What is the purpose of an API?
  • Which of the following is NOT a logical operator?
  • Why is understanding data types important in programming?
  • Which operator is used for exponentiation in Python?
  • How do you create a loop in programming?
  • What does a return statement do?
  • How can a new array be created in Java?
  • What does UML stand for?
  • What is the function of a constructor in object-oriented programming?
  • What does scope refer to in programming?
  • What is a literal in programming?
  • What type of programming technique does recursion involve?
  • In JavaScript, how is a variable typically declared?
  • What is the main feature of a class in object-oriented programming?
  • What does JSON stand for?
  • What is the primary function of an if-else statement in programming?
  • What is the role of the `except` block in error handling?
  • Which characteristic specifically describes a markup language?
  • Which of the following programming languages is primarily interpreted?
  • What is the purpose of a version control system?
  • In the design phase of software development, which UML diagram is commonly utilized?
  • What is the function of `map()` in JavaScript?
  • Which operator should be used to determine if a number is evenly divisible by 5?
  • What type of information does a class diagram represent?
  • What is the output of 'print(2 + 3)' in Python?
  • How do you handle exceptions in Python?
  • What kind of operator is the == in the expression i == 20?
  • When comparing compiled and interpreted languages, which statement is true?
  • What does the term 'debugging' refer to?
  • What is an identifier in programming?
  • What distinguishes statically typed languages from dynamically typed languages?
  • Which keyword is used to create a loop in Python?
  • What are the three main components of a loop?
  • What does 'string interpolation' allow you to do?
  • What is a sentinel value in programming?
  • What would be the outcome of trying to access an undefined variable in JavaScript?
  • How do you check the type of a variable in Python?
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy