GATE Data Science & AI
130 questions · 3 years · 13 subjects
Public preview: use this branch page to find high-signal topics and keyed questions. Explanations are being added selectively, starting with recent and recurring concepts.
Subjects
By Year
High-yield topics
All trends →Practice Data Science & AI PYQs
4 questions shown in Python Programming. Filter for cleaner practice sessions.
Consider the following Python declarations of two lists. $$ \begin{aligned} & A=[1,2,3] \\ & B=[4,5,6] \end{aligned} $$ Which one of the following statements results in $A=[1,2,3,4...
Consider the following pseudocode. Create empty stack S set $x=0$, flag $=0$, sum $=0$ Push $x$ onto $S$ while ( $S$ is not empty) $\{$ if (flag equals 0){ Set $x=x+1$ Push $x$ ont...
Consider the following Python code snippet. $\operatorname{def} f(a, b)$ : if ( $a==0$ ): return b $$ \begin{aligned} &\begin{aligned} & \text { if }(\mathrm{a} \% 2==1) \text { :...
Consider the following Python code snippet. $\mathrm{A}=\{$ "this","that" $\}$ $B=\{$ "that","other" $\}$ $\mathrm{C}=\{$ "other","this"} while "other" in C : if "this" in A : $\ma...