PCED-30-02 試験問題を無料オンラインアクセス
| 試験コード: | PCED-30-02 |
| 試験名称: | PCED - Certified Entry-Level Data Analyst with Python |
| 認定資格: | Python Institute |
| 無料問題数: | 52 |
| 更新日: | 2026-12-02 |
Which of the following code snippets will output Truefor both printfunctions by correctly identifying the type of each variable and performing valid operations?
You are analyzing survey results from students about their favorite colors. The list colorsstores individual responses:
You want to:
- find the number of unique colors mentioned using NumPy, and
- determine how often each color was chosen using Counter.
Which code snippet correctly performs both tasks? Select the best answer.
from numpy import unique
You are writing a function named process_data()to read and process numerical input from a file. The function must:
- read the file data.txt,
- attempt to convert the first line into an integer,
- handle file, conversion, or index-related exceptions,
- print the value only if no error occurs,
- and always print a final message after execution.
Which implementation correctly and robustly meets all these conditions? Select the best answer.
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.