Q41. What type of a language is Python? Interpreted or Compiled?
Beginner's Answer: Python is an interpreted, interactive, objectoriented programming language. Expert Answer: Python is an interpreted language, as opposed to a compiled...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (338 available).
Beginner's Answer: Python is an interpreted, interactive, objectoriented programming language. Expert Answer: Python is an interpreted language, as opposed to a compiled...
An interpreted languageis a programming languagefor which most of its implementations execute instructions directly, without previously compiling a program into machine...
Python uses **indentation** (typically 4 spaces according to PEP 8) rather than curly braces (`{}`) or `begin`/`end` keywords to define blocks of code such as functions, ...
An example implementation of `my_func` returning the square of a given number `x`: ```python def my_func(x): return x ** 2 # Example: print(my_func(5)) # Output: 25 ```
Dynamic. In a statically typed language, the type of variables must be known (and usually declared) at the point at which it is used. Attempting to use it will be an err...
Strong. In a weakly typed language a compiler / interpreter will sometimes change the type of a variable. For example, in some languages (like JavaScript) you can add st...
In modern **Python 3**, **all strings are Unicode by default** (`str` type represents Unicode code points encoded in UTF-8): ```python # In Python 3, this is already a na...
Starting in **Python 3.10**, Python natively introduced the **`match / case`** statement (PEP 634 Structural Pattern Matching): ### Modern Python 3.10+ Pattern Matching: ...
A lambda statement is used to create new function objects and then return them at runtime. Example: my_func=lambdax:x**2 creates a function called my_func that return s t...
If a variable is def ined outside function then it is implicitly global. If variable is assigned new value inside the function means it is local. If we want to make it ...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.