Programming in Python: GATE DA previous year questions
Programming in Python is part of Programming, Data Structures and Algorithms in the GATE DA syllabus. This page lists 10 past-paper questions on it from official GATE DA papers.
Programming in Python
- A recursive function in Python is given. def mystery(n): if n <= 0: return 1 else…
- Consider the given Python program. def fun(L, i=0): if i >= len(L)-1: return 0 if L[i] >…
- Consider the given Python program. def outer(): x = [] def inner(val): x.append(val)…
- Consider the following Python declarations of two lists. A=[1,2,3] B=[4,5,6] Which one…
- Consider the function computeS(X) whose pseudocode is given below: computeS(X) S[1] ← 1…
- Consider the following Python code: def count(child_dict, i): if i not in…
- Consider the following Python function: def fun(D, s1, s2): if s1 < s2: D[s1], D[s2] =…
- Consider the given Python program. def append_to_lst(val, lst=[]): lst.append(val)…
- Consider the following Python code snippet. def f(a,b): if (a==0): return b if (a%2==1)…
- Consider the following Python code snippet. A="this","that" B="that","other"…
More Programming, Data Structures and Algorithms chapters
- Stacks and Queues
- Trees
- Hash Tables
- Searching
- Basic Sorting
- Divide and Conquer: Mergesort and Quicksort
- Graph Theory and Graph Algorithms
Frequently asked questions
How many GATE DA questions are there on Programming in Python?
PrepWiser has 10 past-paper questions on Programming in Python from official GATE DA papers.
Are these real GATE DA questions?
Yes. Each one is from an official GATE DA paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE DA Pro.