Python Institute PCEP-30-02 Exam Practice Questions (P. 1)
- Full Access (450 questions)
 - Six months of Premium Access
 - Access to one million comments
 - Seamless ChatGPT Integration
 
- Ability to download PDF files
 - Anki Flashcard files for revision
 - No Captcha & No AdSense
 - Advanced Exam Configuration
 
Question #1
                                    Insert the correct snippet so that the program produces the expected output.
Expected output:

Code:
                                
                              Expected output:

Code:
                                
          
          send
        
        
          light_mode
          delete
      
    Question #2
                                    Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:
                                
                              
                                - Ais illegal
 - Bmay be illegal if the tuple contains strings
 - Ccan be executed if and only if the tuple contains at least two elements
 - Dis fully correct
 
          
          send
        
        
          light_mode
          delete
      
    Question #3
                                    What is the expected output of the following code?
                                
                              
                                
          
          send
        
        
          light_mode
          delete
      
    Question #4
                                    What is the expected output of the following code?
                                
                              
                                
          
          send
        
        
          light_mode
          delete
      
    Question #5
                                    What is the expected output of the following code?
                                
                              
                                - A['Peter', 404, 3.03, 'Wellert', 33.3]
 - BNone of the above.
 - C[404, 3.03]
 - D['Peter', 'Wellert']
 
          
          send
        
        
          light_mode
          delete
      
    Question #6
                                    A set of elementary operations that can be performed by a CPU is called:
                                
                              - Aan instruction list
 - Ba binary code
 - Cthe ASCII code
 - Dan assembly order
 
          
          send
        
        
          light_mode
          delete
      
    Question #7
                                    DRAG DROP
-
Drag and drop the literals to match their data type names.
                                
                              -
Drag and drop the literals to match their data type names.
                                
          
          send
        
        
          light_mode
          delete
      
    Question #8
                                    DRAG DROP
-
Insert the code boxes in the correct positions in order to build a line of code which asks the user for a string value and assigns it to the answer variable. (Note: some code boxes will not be used.)
                                
                              -
Insert the code boxes in the correct positions in order to build a line of code which asks the user for a string value and assigns it to the answer variable. (Note: some code boxes will not be used.)
                                
          
          send
        
        
          light_mode
          delete
      
    Question #9
                                    DRAG DROP
-
Insert the code boxes in the correct positions in order to build a line of code which prints the values assigned to the x and y variables separated by a semicolon ( ; ) (Note: some code boxes will not be used.)
                                
                              -
Insert the code boxes in the correct positions in order to build a line of code which prints the values assigned to the x and y variables separated by a semicolon ( ; ) (Note: some code boxes will not be used.)
                                
          
          send
        
        
          light_mode
          delete
      
    Question #10
                                    DRAG DROP
-
Arrange the binary numeric operators in the order which reflects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.
                                
                              -
Arrange the binary numeric operators in the order which reflects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.
                                
          
          send
        
        
          light_mode
          delete
      
    All Pages




