Question 11

A Python script checks membership using "a" in "apple". The developer wants to understand how membership works for strings. What result will this expression produce?
  • Question 12

    You have a list of test scores, where each entry includes a student name and a score. Some students appear more than once. You want to compute the average score for each student and store the results in a dictionary. Here's the partial code block:

    Which code correctly replaces the # MISSING CODE comment to calculate the average score for each student? Select the best answer.
  • Question 13

    A health researcher uses wearable devices to record physical activity and sends a survey to randomly selected participants across age groups.
    Why can this approach be effective? Select the best answer.
  • Question 14

    You are creating a presentation slide to communicate findings about student stress levels across four categories over a six-month period. You include the following line graph in your presentation:

    Your goal is to help your audience clearly understand trends in stress levels over time.
    What is the highest problem with this visual presentation? Select the best answer.
  • Question 15

    You are given a short Python script that uses both arithmetic and assignment operators. The variable x is initialized as 4, then updated using x *= 2 + 3. What will be printed when the final value of x is displayed?