Free Practice Python Institute PCEP-30-02 Exam Questions 2025

Stay ahead with 100% Free Certified Entry-Level Python Programmer PCEP-30-02 Dumps Practice Questions

Page:    1 / 114      
Total 569 Questions | Updated On: Jan 26, 2025
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 will be the output after the user enters 0?
user_input = int(input('What is your value? '))
print(1/user_input)


Answer: C
Question 3

What will be the output of the following code?
if 1 == True:
        print('yes')
else:
        print('no')


Answer: C
Question 4

A set of rules which defines the ways in which words can be coupled in sentences is called: 


Answer: B
Question 5

What will be the output of the following code?
print(1 | 0 ^ 1 & ~0)


Answer: B
Page:    1 / 114      
Total 569 Questions | Updated On: Jan 26, 2025
Add To Cart

© Copyrights TheExamsLab 2025. All Rights Reserved

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