Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged output
3
3 votes
3
3 answers
267
267 views
GO Classes DPP | GATE DA | Python Programming | Assignment Operators
What value will $\texttt{x}$ store after the execution of the code below?x = 4 x = 2Value of $\texttt{x}$ multiplied by $\texttt{2}$Square of $\texttt{x}$Value of $\text...
GO Classes
267
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-188
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
2
2 votes
2
2 answers
196
196 views
GO Classes DPP | GATE DA | Python Programming | Dictionaries
Consider the following Python code:scores = {"Ali": 8, "Mia": 10} scores["Ali"] += 2 scores["Noah"] = scores["Mia"] - 3 print(scores)What is the output of the code above?...
GO Classes
196
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-188
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
2
2 votes
2
2 answers
209
209 views
GO Classes DPP | GATE DA | Python Programming | For Loop
Consider the following Python code:total = 0 for n in [1, 2, 3, 4]: if n % 2 == 0: total += n else: total -= n print(total)What is the output of the code above?
GO Classes
209
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-188
programming-in-python
goclasses-python-&-dsa-practice-questions
output
numerical-answers
+
–
2
2 votes
3
3 answers
202
202 views
GO Classes DPP | GATE DA | Python Programming | String Slicing
Consider the following Python code:word = "python" result = word[1:4] + word[-1] print(result)What is the output of the code above?ythnythopythnthon
GO Classes
202
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-188
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
3
3 votes
1
1 answer
154
154 views
GO Classes DPP | GATE DA | Python Programming | List Methods
Consider the following Python code:nums = [2, 4, 6, 8] nums = nums + 3 nums.append(10) nums.pop(0) print(nums)What is the output of the code above?[2, 7, 6, 8, 10][7, 6...
GO Classes
154
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-188
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
2
2 votes
1
1 answer
175
175 views
GO Classes DPP | GATE DA | Python Programming | Mutable Default Arguments
Consider the following Python code:def append_val(val, my_list=[]): my_list.append(val) return my_list list1 = append_val(10) list2 = append_val(20, []) list3 = append_va...
GO Classes
175
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-189
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
1
1 vote
1
1 answer
157
157 views
GO Classes DPP | GATE DA | Python Programming | Nested List Aliasing
Consider the following Python code:m = [[1, 2], [3]] n = m.copy() r = [m[0], n ] * 2 m[0].remove(2) n += [4] r = r + [5]What is the result of evaluating $\texttt{r}$?[...
GO Classes
157
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-189
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
0
0 votes
1
1 answer
135
135 views
GO Classes DPP | GATE DA | Python Programming | List Reference Aliasing
Consider the following Python code:x = [ , [2, 3]] y = [x[0]] * 3 + x[1:] y[0].append(4) x[0] = x[0] + [5] y[3].pop()What is the result of evaluating $\texttt{y}$?[[1, 4,...
GO Classes
135
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-189
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
0
0 votes
1
1 answer
129
129 views
GO Classes DPP | GATE DA | Python Programming | Shallow Copy Aliasing
Consider the following Python code:a = [[0], ] b = a[:] c = a * 2 b[0].append(2) c = c + [3] a .append(4)What is the result of evaluating $\texttt{c}$ ?[[0, 2], [1, 4]...
GO Classes
129
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-189
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
0
0 votes
1
1 answer
136
136 views
GO Classes DPP | GATE DA | Python Programming | Nested List Aliasing
Consider the following Python code:p = [ , ] q = p * 2 q[0].append(3) q = q + [4] p .extend(q[0])What is the result of evaluating $\texttt{q}$ ?[[1, 3, 4], [2, 1, 3], ...
GO Classes
136
views
asked
Jun 1
Programming in Python
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-189
programming-in-python
goclasses-python-&-dsa-practice-questions
output
+
–
1
1 vote
1
1 answer
626
626 views
GATE DA 2026 | Question: 6
Consider the given Python program.def append_to_lst(val, lst=[]): lst.append(val) return lst print(append_to_lst(1)) print(append_to_lst(2)) print(append_to_lst(3, []))Wh...
gatecse
626
views
asked
Feb 23
Programming in Python
gateda-2026
programming-in-python
output
one-mark
+
–
0
0 votes
1
1 answer
823
823 views
GATE DA 2026 | Question: 48
Consider the given Python program.def fun(L, i=0): if i >= len(L)-1: return 0 if L[i] L[i+1]: L[i+1], L[i] = L[i], L[i+1] return 1+fun(L, i+1) else: return fun(L, i+1) d...
gatecse
823
views
asked
Feb 23
Programming in Python
gateda-2026
programming-in-python
output
numerical-answers
two-marks
+
–
12
12 votes
3
3 answers
2.2k
2.2k views
GATE CSE 2026 | Set 2 | Question: 50
Consider the following ANSI-C program.#include <stdio.h int main(){ int *ptr, a, b, c; a=5; b=11; c=20; ptr=&a; *ptr=c; ptr=&c; a=*(&b); c=*ptr-a; printf("%d",c); return(...
gatecse
2.2k
views
asked
Feb 23
Programming in C
gatecse-2026-set2
programming-in-c
pointers
output
numerical-answers
two-marks
+
–
18
18 votes
5
5 answers
4.3k
4.3k views
GATE CSE 2026 | Set 2 | Question: 51
Consider the following ANSI-C function.int func(int start, int end){ int length=end+1-start; if((length<1)||(start<0)||(end<0)){ return(0); } if(length%3==0){ return(func...
gatecse
4.3k
views
asked
Feb 23
Programming in C
gatecse-2026-set2
programming-in-c
recursion
output
numerical-answers
two-marks
+
–
18
18 votes
5
5 answers
3.9k
3.9k views
GATE CSE 2026 | Set 1 | Question: 24
Consider the following program in C:#include <stdio.h void func(int i, int j) { if(i < j) { int i = 0; while (i < 10) { j += 2; i++; } } printf("%d", i); } int main() { i...
gatecse
3.9k
views
asked
Feb 23
Programming in C
gatecse-2026-set1
programming-in-c
output
numerical-answers
one-mark
+
–
2
2 votes
1
1 answer
504
504 views
UGC NET CSE | June 2025 | Part 2 | Question: 10
Consider the following piece of C programming code:int x=128, y=110; do { If(x>y) x=x-y; else y=y-x; } while (x!=y) printf("%d",x);Which one will be the output?$18$$2$$92...
Shubham Sharma 2
504
views
asked
Sep 10, 2025
Programming in C
ugcnetcse-june2025
programming-in-c
output
+
–
0
0 votes
1
1 answer
406
406 views
UGC NET CSE | June 2025 | Part 2 | Question: 12
What will be the output of the following C programming code:int i, j; for(i=1; i<5; i+=2) for(j=1; j<i; j+=2) printf("%d", j);$1$$1 \quad 2$$1 \quad 3$$1 \quad 1 \quad 3$
Shubham Sharma 2
406
views
asked
Sep 10, 2025
Programming in C
ugcnetcse-june2025
programming-in-c
output
+
–
0
0 votes
1
1 answer
533
533 views
UGC NET CSE | June 2025 | Part 2 | Question: 30
What will be the output of the following C Programming code:void main () { int * i, a=12, b=2, c ; c=(a=a+b, b=a/b, a=a*b, b=a-b) i=& c ; printf("%d", (*i)); }$91$$90$$9...
Shubham Sharma 2
533
views
asked
Sep 10, 2025
Programming in C
ugcnetcse-june2025
programming-in-c
output
+
–
0
0 votes
1
1 answer
299
299 views
UGC NET CSE | January 2025 | Part 2 | Question: 27
Match the LIST-I with LIST-II$\begin{array}{|l|l|l|l|} \hline & \textbf{LIST-I} & & \textbf{LIST-II} \\ & \textbf{(FUNCTIONS)} && \textbf{(Uses of functions)} \\ \hline \...
Shubham Sharma 2
299
views
asked
Sep 10, 2025
Programming in C
ugcnetcse-jan2025
programming-in-c
file-system
output
+
–
0
0 votes
1
1 answer
256
256 views
UGC NET CSE | January 2025 | Part 1 | Question: 35
Match the $\textbf{List - I}$ with $\textbf{List - II}.$$\textbf{List - I}$(Question)$\textbf{List - II}$(Answer)A.The speed of a CPU is measured in $\_\_\_\_\_\_\_$.I.In...
Shubham Sharma 2
256
views
asked
Sep 10, 2025
CO & Architecture
ugcnetcse-jan2025
co-and-architecture
computer-networks
output
+
–
1
1 vote
2
2 answers
423
423 views
UGC NET CSE | August 2024 | Part 2 | Question: 5
#include<stdio.h void main() { int arr[]={1, 2, 3, 4, 5}; int *p=arr; printf("%d", *p++); printf("%d", *(p+1)); }Find the output of the above code?$1,2$$1,3$$2,3$$1,4$
Shubham Sharma 2
423
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
pointers
array
output
+
–
0
0 votes
1
1 answer
259
259 views
UGC NET CSE | August 2024 | Part 2 | Question: 7
#include<iostream.h using namespace std; void swap(int &x, int &y) { int temp = x; x=y; y= temp; } int main() { int a=5,b=10; swap(a,b); swap(a,b); cout<<a<<" " <<b; retu...
Shubham Sharma 2
259
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
output
+
–
0
0 votes
2
2 answers
408
408 views
UGC NET CSE | August 2024 | Part 2 | Question: 18
Consider the following code:#include<stdio.h void f1(char *x, char *y) { char *t1; t 1 = x; x= y; y = t 1;} void f2(char x, char y) { char *t1 ; t1 = *x; *x = *y; *y = ...
Shubham Sharma 2
408
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
pointers
output
functions
+
–
0
0 votes
1
1 answer
374
374 views
UGC NET CSE | August 2024 | Part 2 | Question: 19
Consider following C program :#include<stdio.h int main() { int x[]={2,4,6,8,10}; int a, b=0, * y = x+4; for(a = 0; a<5; a++) { b=b+(*y -a) - *(y -a); } printf("%d\n", b)...
Shubham Sharma 2
374
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
pointers
array
output
+
–
0
0 votes
1
1 answer
286
286 views
UGC NET CSE | August 2024 | Part 2 | Question: 21
What will be the output of the following $\text{C}$ code?#include<stdio.h void main() { int arr[5]={10,20,30,40,50}; int *p = (int*) (&arr+1); printf("\%d\%d", *(arr + 1)...
Shubham Sharma 2
286
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
array
pointers
output
+
–
0
0 votes
0
0 answers
210
210 views
UGC NET CSE | August 2024 | Part 2 | Question: 22
What is the output of code given below:#include<iostream.h using namespace std; class Base { public: Base(){ cout<<"Base Const"; } virtual ~Base() { cout<<"Base dest"; } ...
Shubham Sharma 2
210
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
object-oriented-programming
output
+
–
2
2 votes
1
1 answer
423
423 views
UGC NET CSE | August 2024 | Part 2 | Question: 73
Consider the following statements regarding combinational and sequential circuits.Output of combinational circuits depends on the only current input.Output of combination...
Shubham Sharma 2
423
views
asked
Sep 9, 2025
Digital Logic
ugcnetcse-aug2024
digital-circuits
combinational-circuit
sequential-circuit
output
+
–
0
0 votes
0
0 answers
193
193 views
UGC NET CSE | December 2023 | Part 2 | Question: 11
What is the output of the following program?#include <stdio.h int main() { int i = 3; while (i ) { int i = 10; i ; printf("%d", i); } printf("%d", i); }$990$$9990$$999-1$...
Shubham Sharma 2
193
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-dec2023
programming-in-c
output
data-structures
+
–
0
0 votes
1
1 answer
192
192 views
UGC NET CSE | December 2023 | Part 2 | Question: 16
What is the output of the following program?#include <stdio.h #define SQR(x) (x*x) int main() {int a, b = 3; a = SQR(b + 2); printf("%d", a); return 0; }$25$$11$Garbage v...
Shubham Sharma 2
192
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-dec2023
programming-in-c
output
+
–
0
0 votes
0
0 answers
106
106 views
NIELIT Scientific Assistant June 2025 | Question: 81
If the input to an $\text{LTI}$ system is a random signal with a known mean and variance, the output will have:The same mean and variance as the input signalThe same mean...
Shubham Sharma 2
106
views
asked
Jul 24, 2025
Probability
nielit-sta-2025
random-variable
probability
output
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
21
next »