Python Institute PCED - Certified Entry-Level Data Analyst with Python - PCED-30-02 模擬練習
An e-commerce site records every product view and purchase.
Which of the following best describes how these logs become marketing insights?
Which of the following best describes how these logs become marketing insights?
正解: D
解説: (PassTest メンバーにのみ表示されます)
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.
Why can this approach be effective? Select the best answer.
正解: A
解説: (PassTest メンバーにのみ表示されます)
A Python script includes the expression not False and True. The developer is unsure how logical operators are evaluated in terms of precedence. What will be the final Boolean result of this expression?
正解: A
解説: (PassTest メンバーにのみ表示されます)
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.
- 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.
正解: C
解説: (PassTest メンバーにのみ表示されます)
A Python script evaluates the expression len(" "). The programmer assumes it might be zero because it looks empty. What will the actual result be?
正解: C
解説: (PassTest メンバーにのみ表示されます)
A program uses slicing on a string "Python". The expression s[1:4] is evaluated. Which substring will be returned?
正解: C
解説: (PassTest メンバーにのみ表示されます)