∑GateAndNet
PlannerSign Up

Python Programming, Data Structures & Algorithms — Solved PYQ & Mock Arena

Topic-wise Python Programming, Data Structures & Algorithms previous-year GATE & UGC NET questions with step-by-step LaTeX solutions

Showing 3 questions in Python & DSAClick A / B / C / D for instant verification
Q1GATE DA PythonPython Programming, Data Structures & AlgorithmsMCQMEDIUM
+2M • -0.67

What is the output of def f(x, a=[]): a.append(x); return len(a) when evaluated as print(f(10), f(20), f(30, []), f(40))?

⚡ Click an option above to verify instantly
Q2GATE DA 2025 PythonPython Programming, Data Structures & AlgorithmsMCQMEDIUM
+2M • -0.67

What is printed by the Python code d = {True: "yes", 1: "one", 1.0: "float"}; print(len(d), d[True])?

⚡ Click an option above to verify instantly
Q3GATE DA 2024 PythonPython Programming, Data Structures & AlgorithmsMCQEASY
+1M • -0.33

What are the values of -7 // 3 and -7 % 3 in Python 3 (compared to -2 and -1 in C/Java)?

⚡ Click an option above to verify instantly