Courseiva
Question 328 of 498

PCEP Practice Question: Functions, Tuples, Dictionaries and Exceptions

Match each Python string method to its action.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Converts all characters to uppercase

Converts all characters to lowercase

Removes leading and trailing whitespace

Splits a string into a list of substrings

Joins elements of an iterable into a single string

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

.upper(): Returns a copy of the string converted to uppercase

These are common string methods used for text manipulation. Correct matches: .upper() converts to uppercase, .lower() to lowercase, .strip() removes leading/trailing whitespace, .split() splits into a list. The distractors swap definitions to test understanding.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • .upper(): Returns a copy of the string converted to uppercase

    Why this is correct

    .upper() converts all lowercase letters in the string to uppercase.

  • .lower(): Returns a copy of the string converted to lowercase

    Why this is correct

    .lower() converts all uppercase letters in the string to lowercase.

  • .strip(): Returns a copy of the string with leading and trailing whitespace removed

    Why this is correct

    .strip() removes whitespace characters from the beginning and end of the string.

  • .split(): Splits the string into a list of substrings based on a delimiter

    Why this is correct

    .split() divides the string at the specified delimiter and returns a list of parts.

  • .upper(): Splits the string into a list of substrings

    Why it's wrong here

    Incorrect — .upper() converts to uppercase, not splits. The split action belongs to .split().

  • .strip(): Returns a copy of the string converted to uppercase

    Why it's wrong here

    Incorrect — .strip() removes whitespace, not converts case. The uppercase action belongs to .upper().

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PCEP practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCEP exam.