Python-institute

PCEP-30-02 practice test

Practice with 15 free Testara sample questions, or choose paid access to the full 292-question bank.

Provider
Python-institute
Question bank
292
Free sample
15 questions
Publisher
Testara

About this practice material

This page covers Testara's practice question bank for PCEP-30-02, a certification listed under Python-institute. Questions use original, exam-style scenarios and are not questions from the official certification exam.

Testara is an independent practice platform and is not affiliated with, endorsed by, or authorized by Python-institute. The certification credential is issued by Python-institute, not Testara. Certification and provider names belong to their respective owners.

Start practicing

The guest demo does not save an attempt. Sign in before buying access.

Try 15 questions free

Available without signing in

Free sample questions

These 15 questions and their explanations are server-rendered so you can inspect the material before opening the interactive demo.

  1. Question 1 · 1

    Insert the correct snippet so that the program produces the expected output. Expected output: Code:

    Choose one answer.

    Question illustration 1
    Question illustration 2
    • b = 0 not in list
    • b = list[0]
    • b = 0 in list
    • b = False
  2. Question 2 · 1

    What will be the output of the following code snippet?

    Choose one answer.

    Question illustration 1
    • 3
    • 2
    • 4
    • 1
  3. Question 3 · 1

    What is the output of the following snippet?

    Choose one answer.

    Question illustration 1
    • two
    • one
    • (‘one’, ‘two’, ‘three’)
    • three
  4. Question 4 · 1

    What is the expected output of the following code?

    Choose one answer.

    Question illustration 1
    • [3, 1, 25, 5, 20, 5, 4]
    • [1, 3, 4, 5, 20, 5, 25]
    • [3, 5, 20, 5, 25, 1, 3]
    • [1, 3, 3, 4, 5, 5, 20, 25]
    • [3, 4, 5, 20, 5, 25, 1, 3]
  5. Question 5 · 1

    Which of the following sentences is true?

    Choose one answer.

    Question illustration 1
    • str1 and str2 are different (but equal) strings.
    • str1 and str2 are different names of the same strings.
    • str1 is longer than str2
    • str2 is longer than str1
  6. Question 6 · 1

    The fact that tuples belong to sequence types means:

    Choose one answer.

    • they can be modified using the del instruction
    • they can be extended using the .append() method
    • they are actually lists
    • they can be indexed and sliced like lists
  7. Question 7 · 1

    What is the output of the following code?

    Choose one answer.

    Question illustration 1
    • [1, 1, 1]
    • [3, -1, 1]
    • [3, 1, 1]
  8. Question 8 · 1

    What is the expected output of the following code?

    Choose one answer.

    Question illustration 1
    • The code is erroneous.
    • 6
    • 5
    • 4
  9. Question 9 · 1

    What is the expected output of the following code?

    Choose one answer.

    Question illustration 1
    • ('Peter': 30, 'Paul': 31)
    • ('Peter', 'Paul')
    • ['Peter': 30, 'Paul': 31]
    • ['Peter', 'Paul']
  10. Question 10 · 1

    What is the output of the following snippet?

    Choose one answer.

    Question illustration 1
    • 2
    • 4
    • The snippet is erroneous (invalid syntax)
  11. Question 11 · 1

    What is the expected output of the following code?

    Choose one answer.

    Question illustration 1
    • (4)
    • 4
    • (4,)
    • 44
  12. Question 12 · 1

    Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:

    Choose one answer.

    Question illustration 1
    • is illegal
    • may be illegal if the tuple contains strings
    • can be executed if and only if the tuple contains at least two elements
    • is fully correct
  13. Question 13 · 1

    What is the output of the following snippet?

    Choose one answer.

    Question illustration 1
    • [1, 1, 2, 2]
    • [1, 1, 1, 2]
    • [1, 2, 1, 2]
    • [1, 2, 2, 2]
  14. Question 14 · 1

    What is the expected output of the following code?

    Choose one answer.

    Question illustration 1
    • 4
    • 6
    • 5
    • 3
  15. Question 15 · 1

    A data structure described as LIFO is actually a:

    Choose one answer.

    • stack
    • tree
    • list
    • heap

Each purchase applies to this certification. Prices are one-time payments, not monthly subscriptions.

Starter

$29 USD one time

Full access to one certification's question bank in standard practice mode for 60 days.

  • Full question bank for one certification
  • 60 days of access
  • Standard practice mode
  • Question notes and community discussions
  • Attempt scores and answer review

Professional

$49 USD one time

Full access to one certification's question bank, custom test controls and advanced analytics for 60 days.

  • Custom test builder
  • Timers and question selection
  • Randomized question and answer order
  • Advanced performance and weak-question analytics
  • Priority customer support
Try 15 questions free