# Module quiz: Programming Paradigms

1. **Which of the following can be used for commenting a piece of code in Python?** *(Select all that apply)*
    
    * ({ }) - Curly Brackets
        
    * <mark>· ( # ) - Hashtag *</mark>
        
    * ( @ ) - At the rate sign
        
    * <mark>(''' ''') - Triple quotation marks</mark>
        
2. **What will be the output of running the following code?**
    
    ```python
    value = 7
    class A:
        value = 5
    
    a = A()
    a.value = 3
    print(value)
    ```
    
    * <mark>7</mark>
        
    * 5
        
    * None of the above
        
    * 3
        
3. What will be the output of running the following code?
    
    ```python
    bravo = 3
    b = B()
    class B:
        bravo = 5
        print("Inside class B")
    c = B()
    print(b.bravo)
    ```
    
    * 3
        
    * None
        
    * <mark>Error</mark>
        
    * 5
        
4. **Which of the following keywords allows the program to continue execution without impacting any functionality or flow?**
    
    * continue
        
    * <mark>pass</mark>
        
    * skip
        
    * break
        
5. **Which of the following is not a measure of Algorithmic complexity?**
    
    * <mark>Execution time</mark>
        
    * Logarithmic Time
        
    * Exponential Time
        
    * Constant time
        
6. **Which of the following are the building blocks of Procedural programming?**
    
    * Variables and methods
        
    * <mark>Procedures and functions</mark>
        
    * All of the options.
        
    * Objects and Classes
        
7. **True or False: Pure functions can modify global variables.**
    
    * True
        
    * <mark>False</mark>
        
8. **Which of the following is an advantage of recursion?**
    
    * Recursion is memory efficient
        
    * Easy to debug
        
    * <mark>Recursive code can make your code look neater</mark>
        
    * Easier to follow
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731053479320/497c380d-6fe1-48d2-b137-c8ce782d0b1c.png align="center")
