Free Python Institute PCEP-30-02 Exam Questions

Become Python Institute Certified with updated PCEP-30-02 exam questions and correct answers

Page:    1 / 114      
Total 569 Questions | Updated On: Jun 15, 2026
Add To Cart
Question 1

What will be the output when the user provides the number 6?num = int(input('give a number: '))if num > 2:    if num < 5:        print('A')    else:        print('B')else:    print('C')


Answer: A
Question 2

What are built-in Python functions?


Answer: B
Question 3

What will be the output of the following code?def get_number():    for i in []:        yield i print(next(get_number()))


Answer: B
Question 4

What will be printed to the output after the following code is executed?secret_list = [[5, 4] for i in range(4)]print(secret_list[2][1])


Answer: C
Question 5

What will be the output of the following code?x = [    'a',    'b',    {        'one': 1,        'two':        {            'x' : 10,            'y' : 20,            'z' : 30        },        'three': 3    },    'c',    'd']print(30 in x[2])


Answer: D
Page:    1 / 114      
Total 569 Questions | Updated On: Jun 15, 2026
Add To Cart

© Copyrights DumpsCertify 2026. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.