The correct answer is list. When you call the `type()` function on a list literal like `[1, 2, 3]`, Python returns the type object `<class 'list'>`, and the value printed is the string representation of that type, which is `list`. This happens because `type()` examines the object passed to it and returns its class, and square brackets `[]` always denote a list in Python. On the Certified Associate Python Programmer PCAP exam, this tests your understanding of built-in functions and data type identification, a foundational skill for the control flow and collections objectives. A common trap is confusing the printed output with the actual type object itself—remember that `type()` returns a type, but when printed, it shows the class name. For a quick memory tip, think of `type()` as a mirror that reflects the object’s category: if you see brackets, you get list.
PCAP Strings Practice Question
This PCAP practice question tests your understanding of strings. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Consider the following Python code:
s = 'Python Programming'
print(s.split())
Refer to the exhibit. What type of value is printed?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
list
The code `print(type([1, 2, 3]))` outputs `<class 'list'>`, because the `type()` function returns the class type of the object, and the literal `[1, 2, 3]` is a list. The value printed is the string representation of the type object, which is `list`.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
list
Why this is correct
split() returns a list of words.
Related concept
Read the scenario before looking for a memorised answer.
✗
tuple
Why it's wrong here
split() does not return a tuple.
✗
string
Why it's wrong here
split() returns a list, not a string.
✗
dict
Why it's wrong here
split() does not return a dictionary.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Python Institute often tests the distinction between list literals `[]` and tuple literals `()`, and the trap here is that candidates may confuse the output of `type()` with the literal syntax itself, thinking the brackets determine the type name printed.
Detailed technical explanation
How to think about this question
The `type()` function in Python returns the type object of the argument, which when printed displays as `<class 'list'>`. This is distinct from the `isinstance()` function which checks inheritance. In real-world debugging, `type()` is often used to verify data structures before operations like indexing or iteration, especially when handling JSON deserialization where lists and tuples behave differently (lists are mutable, tuples are immutable).
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Strings — This question tests Strings — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: list — The code `print(type([1, 2, 3]))` outputs `<class 'list'>`, because the `type()` function returns the class type of the object, and the literal `[1, 2, 3]` is a list. The value printed is the string representation of the type object, which is `list`.
What should I do if I get this PCAP question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
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.
This PCAP 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 PCAP exam.
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.
Sign in to join the discussion.