- 01What Is Python Primarily Known As?Free→
- 02How Do You Start The Python Interactive Interpreter (REPL) From A Terminal?Free→
- 03In Python, How Are Code Blocks Defined?Free→
- 04How Do You Display "Hello World" In Python?Free→
- 05Which Extension Is Commonly Used For Python Files?Free→
- 06How Do You Write A Single-Line Comment In Python?Free→
- 07Python 3 Print Function Requires What Around The Text To Print?Free→
- 08Python Code Indentation Typically Uses How Many Spaces?Free→
- 09Which Function Retrieves Input From The User In Python 3?Free→
- 10Which Command Do You Use To Run A Python Script File From The Terminal?Free→
- 11Which Of The Following Is NOT A Built-In Data Type In Python?Locked→
- 12Strings In Python Are:Locked→
- 13Which Function Gives The Data Type Of A Variable In Python?Locked→
- 14In Python, Variables Are:Locked→
- 15Which Built-In Constant Represents The Absence Of A Value?Locked→
- 16Booleans In Python Are Represented By Which Keywords?Locked→
- 17Which Of The Following Is Immutable?Locked→
- 18To Convert A String '123' To An Integer:Locked→
- 19The Identity Operator 'Is' Checks If:Locked→
- 20Which Function Gives The Memory Address Of An Object?Locked→
- 21Which Operator Is Used For Exponentiation In Python?Locked→
- 22The Integer Division Operator In Python Is:Locked→
- 23The 'In' Operator Checks:Locked→
- 24Which Operator Has Higher Precedence: * Or + ?Locked→
- 25The Modulo Operator % Does What?Locked→
- 26X += 5 Is Equivalent To:Locked→
- 27The 'Not' Operator In Python Is Used For:Locked→
- 28Is' Checks Object Identity, While '==' Checks:Locked→
- 29Bitwise AND Operator Is Represented By:Locked→
- 30Which Is True About Short-Circuit Evaluation In Python?Locked→
- 31Which Keyword Introduces A Conditional Block?Locked→
- 32Elif' Is Used In Python To:Locked→
- 33A 'For' Loop In Python Typically Iterates Over:Locked→
- 34The 'While' Loop Continues Until:Locked→
- 35Break' In A Loop Does What?Locked→
- 36Continue' In A Loop Does What?Locked→
- 37Range(5)' Generates:Locked→
- 38The 'Else' Clause On A Loop Executes When:Locked→
- 39Pass' Statement Is Used For:Locked→
- 40Which Is Correct For An If-Else Block?Locked→
- 41How Do You Define A Function In Python?Locked→
- 42If A Function Doesn't Have A Return Statement, It Returns:Locked→
- 43Default Function Parameters Are Specified Using:Locked→
- 44*Args In A Function Definition Means:Locked→
- 45**Kwargs In A Function Definition Means:Locked→
- 46Variables Defined Inside A Function Are By Default:Locked→
- 47The 'Global' Keyword Is Used To:Locked→
- 48Return' Keyword In A Function Does What?Locked→
- 49Recursive Functions Are Functions That:Locked→
- 50Lambda Functions In Python Are:Locked→
- 51How Do You Import A Module Named 'Math' In Python?Locked→
- 52What Does `From Math Import Sqrt` Do?Locked→
- 53`__name__ == "__main__"` Is Used To:Locked→
- 54Where Does Python Look For Modules By Default?Locked→
- 55A Package Is Defined By The Presence Of:Locked→
- 56`Pip` Is Used To:Locked→
- 57Virtual Environments (Venv) Are Used To:Locked→
- 58`Dir(Module)` Function Returns:Locked→
- 59Using `Import Module As M` Does What?Locked→
- 60`Help(Module)` Function:Locked→
- 61Lists In Python Are:Locked→
- 62Tuples In Python Are:Locked→
- 63Which Method Adds An Item To The End Of A List?Locked→
- 64Negative Indexing In Lists Means:Locked→
- 65List Slicing Syntax `List[Start:End]` Returns:Locked→
- 66`List.sort()` Method Does What?Locked→
- 67To Quickly Create A List Of Squares, You Can Use:Locked→
- 68Tuples Can Be Used For:Locked→
- 69To Unpack A Tuple (X, Y) Into Variables A And B:Locked→
- 70`Enumerate(List)` Is Often Used To:Locked→
- 71A Dictionary In Python Is:Locked→
- 72A Set In Python Is:Locked→
- 73To Get All Keys Of A Dictionary As A List (In Python 3.X You Get A View), You Use:Locked→
- 74To Add A Key-Value Pair To A Dictionary:Locked→
- 75Which Data Structure Is Best For Checking Membership Quickly?Locked→
- 76Dictionary.get(Key) Method Does What If Key Not Found?Locked→
- 77Set Operations Like Union Or Intersection Are Available As:Locked→
- 78Keys In A Dictionary Must Be:Locked→
- 79`Pop` Method On A Dictionary Does What?Locked→
- 80To Remove Duplicates From A List, You Could Convert It To A:Locked→
- 81How Do You Get A Substring From Index 2 To 5 In A String S?Locked→
- 82Which Method Returns A String In Uppercase?Locked→
- 83`S.strip()` Does What?Locked→
- 84`S.find('X')` Returns:Locked→
- 85`S.split()` Without Arguments Splits A String By:Locked→
- 86`Join()` Method Is Used To:Locked→
- 87F-Strings Are Defined Using:Locked→
- 88`Str.upper()` Returns:Locked→
- 89`In` Operator On A String Checks For:Locked→
- 90`Str.replace(Old, New)` Returns:Locked→
- 91How Do You Open A File In Python For Reading?Locked→
- 92The `With` Statement Is Used With Files To:Locked→
- 93File.read() Without Arguments Reads:Locked→
- 94File.readline() Reads:Locked→
- 95File.write("Hello") Does What?Locked→
- 96R+' Mode In Open Means:Locked→
- 97To Ensure Safe File Handling Use:Locked→
- 98To Read All Lines Of A File Into A List:Locked→
- 99`With Open("Data.txt", "W") As F:` Does What If Data.txt Exists?Locked→
- 100Binary Mode Is Indicated By:Locked→
- 101How Do You Define A Class In Python?Locked→
- 102The __init__ Method In A Class:Locked→
- 103Self' Parameter In Methods Refers To:Locked→
- 104To Create An Instance Of A Class MyClass:Locked→
- 105Class Attributes Are:Locked→
- 106Instance Attributes Are Usually Set In:Locked→
- 107Inheritance In Python Is Defined By:Locked→
- 108`Isinstance(Obj, Class)` Returns True If:Locked→
- 109Encapsulation In Python Is Done By:Locked→
- 110OOP Stands For:Locked→
- 111Multiple Inheritance Means:Locked→
- 112The `Super()` Function Is Used To:Locked→
- 113`__str__` And `__repr__` Methods Are Special Methods Used For:Locked→
- 114@Property Decorator Is Used To:Locked→
- 115Static Methods In Python Are Defined Using:Locked→
- 116An Abstract Base Class (ABC) Requires Importing:Locked→
- 117An Abstract Method Must Be:Locked→
- 118Polymorphism Refers To:Locked→
- 119Operator Overloading Is Done By:Locked→
- 120Design Patterns In OOP Are:Locked→
- 121Try/Except Block Is Used For:Locked→
- 122If No Exception Occurs In A Try Block:Locked→
- 123`Raise` Keyword Does What?Locked→
- 124Finally Block Executes:Locked→
- 125Custom Exceptions Are Created By:Locked→
- 126Assert Statement Is Used To:Locked→
- 127Except Exception As E:Locked→
- 128Avoiding Bare Except (I.e. Except:) Is Recommended Because:Locked→
- 129Else Clause In Try-Except-Else Runs If:Locked→
- 130Try-Except-Finally Structure Ensures:Locked→
- 131An Iterator Is An Object That:Locked→
- 132`Iter()` Function Returns:Locked→
- 133`__next__()` Method In An Iterator Raises What When No More Items?Locked→
- 134A Generator Function Is Defined Using:Locked→
- 135Generator Expressions Look Like List Comprehensions But Use:Locked→
- 136Generators Are Memory Efficient Because:Locked→
- 137Infinite Generators Must Have A Condition To Stop Or They'll:Locked→
- 138Yield From' Is Used To:Locked→
- 139StopIteration Is Raised By __next__() To:Locked→
- 140Itertools Module Provides:Locked→
- 141A Decorator In Python Is Applied Using:Locked→
- 142Decorators Take A Function As Input And:Locked→
- 143`@Property` Is A Built-In Decorator To Create:Locked→
- 144Context Managers Use Which Methods?Locked→
- 145Using `With Open('File') As F:` Is An Example Of:Locked→
- 146The `Contextlib` Module Provides:Locked→
- 147Decorators Can Be Used To:Locked→
- 148Multiple Decorators On One Function Are Applied:Locked→
- 149The `With` Statement Calls __enter__ When:Locked→
- 150The Main Benefit Of Context Managers Is:Locked→
- 151Map(Function, Iterable) Returns:Locked→
- 152Filter(Function, Iterable) Keeps Elements Where:Locked→
- 153Reduce(Function, Iterable) In Functools Module Does What?Locked→
- 154A Lambda Function Is Defined Using:Locked→
- 155List Comprehensions Provide A Concise Way To:Locked→
- 156Any() Returns True If:Locked→
- 157All() Returns True If:Locked→
- 158Inline If In Comprehensions Allow:Locked→
- 159Functions As First-Class Objects Mean:Locked→
- 160Functional Style Is Often Beneficial Because:Locked→
- 161`Datetime` Module Provides:Locked→
- 162`Os` Module Is Commonly Used For:Locked→
- 163`Sys.argv` Is Used To:Locked→
- 164`Math` Module Provides:Locked→
- 165`Random` Module Is Used To:Locked→
- 166`Json` Module Allows:Locked→
- 167`Re` Module Is For:Locked→
- 168`Collections` Module Provides:Locked→
- 169`Argparse` Module Helps In:Locked→
- 170`Subprocess` Module Is Used To:Locked→
- 171A Virtual Environment In Python Is Created Using:Locked→
- 172Activating A Virtual Env On Unix Is Done By:Locked→
- 173`Requirements.txt` File Lists:Locked→
- 174`Pip Install -R Requirements.txt` Does What?Locked→
- 175`Pip Freeze` Outputs:Locked→
- 176Virtual Environments Help By:Locked→
- 177Pip Is A Package Manager For:Locked→
- 178Upgrading A Package With Pip:Locked→
- 179Conda Or Poetry Are:Locked→
- 180Dependency Conflicts Occur When:Locked→
- 181Unittest Is:Locked→
- 182A Unittest Test Case Is Created By Subclassing:Locked→
- 183Common Assertion Method In Unittest Is:Locked→
- 184Pytest Allows Tests To Be Simple Functions That:Locked→
- 185Fixtures In Pytest Are Used To:Locked→
- 186Mocking In Tests Is Used To:Locked→
- 187Running Subset Of Tests In Pytest Can Be Done By:Locked→
- 188`AssertRaises` In Unittest Is Used To:Locked→
- 189Coverage Tools Measure:Locked→
- 190TDD (Test-Driven Development) Means:Locked→
- 191GIL (Global Interpreter Lock) In CPython Affects:Locked→
- 192`Multiprocessing` Module Allows:Locked→
- 193Async/Await Syntax Is Used For:Locked→
- 194Parallelizing CPU-Bound Tasks Can Be Improved By:Locked→
- 195Profiling Code Helps By:Locked→
- 196`CProfile` Is A Tool For:Locked→
- 197Partitioning Large Datasets Can Help By:Locked→
- 198Caching Results Can Improve Performance By:Locked→
- 199`Functools.lru_cache` Decorator Can Be Used To:Locked→
- 200Async IO Helps When:Locked→
