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

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy