Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged output
0
votes
0
answers
31
A sequential circuit has two D flip-flops, two inputs x and y, and one output Z is specified by the following next-state and output equations A(t+1) = xy’ + x B B(t+1) = xA +xB’ Z = A (a) Draw the logic diagram of the circuit. (b) List the state table for the sequential circuit. (c) Draw the corresponding state diagram.
M.Zain
599
views
M.Zain
asked
Dec 30, 2022
Digital Logic
digital-logic
sequential-circuit
output
+
–
0
votes
1
answer
32
Unacacdemy AIMT 2
can anyone explain how the for loop works here..?
can anyone explain how the for loop works here..?
TusharKumar
524
views
TusharKumar
asked
Dec 22, 2022
Programming in C
programming-in-c
output
loop
+
–
0
votes
0
answers
33
Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } } Now consider the following program fragment: P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1); Here ((P)y) denotes a typecast of y to P. The output produced by executing the above program fragment will be (A) 1 2 1 (B) 2 1 1 (C) 2 1 2 (D) 2 2 2
Jeetmoni saikia
297
views
Jeetmoni saikia
asked
Oct 16, 2022
Programming in C
programming-in-c
output
normal
+
–
0
votes
1
answer
34
yashwant kanetkar chapter 5 A(F) 18th edition
i dont know why the answer is not coming for the following snippet. I COULD NOT UNDERSTAND EXPLAINATION IN YASHWANT KANETKAR BOOK int main() { float x=1.1; while(x==1.1) { printf(“%f\n”,x); x=x-0.1; } return0; }
i dont know why the answer is not coming for the following snippet. I COULD NOT UNDERSTAND EXPLAINATION IN YASHWANT KANETKAR BOOKint main(){float x=1.1;while(x==1.1){prin...
SHWETAV SUMAN
228
views
SHWETAV SUMAN
asked
Oct 14, 2022
Programming in C
programming-in-c
output
reference-book
+
–
4
votes
1
answer
35
GO Classes Scholarship 2023 | Test | Question: 14
Consider the following C program given below. #include<stdio.h> main() { int a = 4; switch (a) { a--; case 4: printf("Science "); break; default: printf("Technology "); case ... ;Philosophy"); } } What will be the output of the program? Science Knowledge Philosophy Technology Knowledge Philosophy Science Knowledge
Consider the following C program given below.#include<stdio.h main() { int a = 4; switch (a) { a ; case 4: printf("Science "); break; default: printf("Technology "); case...
GO Classes
634
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
goclasses
programming
programming-in-c
output
1-mark
+
–
3
votes
3
answers
36
GO Classes Scholarship 2023 | Test | Question: 26
What will be the output of the following C program? int sum = 0; for (int i = 1; i <= 10; i++) for (int j = 1; j <= 10; j++){ sum += i * j; }
What will be the output of the following C program?int sum = 0; for (int i = 1; i <= 10; i++) for (int j = 1; j <= 10; j++){ sum += i * j; }
GO Classes
435
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
numerical-answers
goclasses
programming
programming-in-c
output
2-marks
+
–
2
votes
1
answer
37
I am not able to understand how the value of 'i' is 3 after the execution of the program, it must be 2.
#include <stdio.h int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i++; } i ; for (j = 7; j 4; j ) { int i = j/2; ...
Hrithik Vashishtha
385
views
Hrithik Vashishtha
asked
Jul 4, 2022
Programming in C
programming-in-c
output
+
–
1
votes
1
answer
38
Can anyone explain the conclusion of the outputs ?
int main() { int x=5,*p; p=&x; *p=x++ + *p; printf ("%d %d",x,*p); } We have this program now here *p= 5++ + (*p) -> *p= 5 + 5 =10 so x location is 10 and then the postfix x++= 10+1=11 so output is 11 11 ... 5 , Here x is not incrementing later . *p= x++ + 5; *p= 5+5=10 output 10 10 , when x is not taking the postfix increment ???
int main(){ int x=5,*p; p=&x; *p=x++ + *p; printf ("%d %d",x,*p);}We have this programnowhere *p= 5++ + (*p) - *p= 5 + 5 =10 so x location is 10and then the pos...
Rajib Datta Roy
547
views
Rajib Datta Roy
asked
Jun 2, 2022
Programming in C
programming-in-c
output
+
–
6
votes
4
answers
39
GO Classes Weekly Quiz 2 | Programming in C | Propositional Logic | Question: 2
What will be output printed by the following program? #include<stdio.h> main() { int c=4; switch(c) { c=c-1; case 4: printf("IITB "); break; default: printf("IISc "); case 3: printf("IITM " ... ;); } } $\text{IITB IITM}$ $\text{IITB IISc IITM}$ $\text{IITB}$ $\text{IITB IITM IITD}$
What will be output printed by the following program?#include<stdio.h main() { int c=4; switch(c) { c=c-1; case 4: printf("IITB ")...
GO Classes
1.0k
views
GO Classes
asked
May 2, 2022
Programming in C
goclasses_wq2
goclasses
programming
programming-in-c
output
1-mark
+
–
7
votes
2
answers
40
GO Classes Weekly Quiz 2 | Programming in C | Propositional Logic | Question: 3
Trace the execution of the following if statements and select the output from this code fragment int main() { int a = 3, b = 7 ; if ( (a + b) % 2 != 0 ) { printf("tetrahedron\n" ... a ) { printf("octahedron\n"); } else { printf("dodecahedron\n"); } } Tetrahedron Cube Octahedron Dodecahedron
Trace the execution of the following if statements and select the output from this code fragmentint main() { int a = 3, b = 7 ; if ( (a + b) % 2 != 0 ) { printf("tetrahed...
GO Classes
742
views
GO Classes
asked
May 2, 2022
Programming in C
goclasses_wq2
goclasses
programming
programming-in-c
output
1-mark
+
–
3
votes
2
answers
41
GO Classes Test Series 2024 | Programming | Test 3 | Question: 23
What will be the output of the following lines of code? int i = 0; int j = 0; char *s = "ceded"; while (s[i] != '\0') { j = j + s[i] - 'b'; i = i + 1; } printf("%d %d\n", i, j); $5\; 11$ $4\; 16$ $5\; 16$ $4 \;11$
What will be the output of the following lines of code?int i = 0; int j = 0; char *s = "ceded"; while (s[i] != '\0') { j = j + s[i] - 'b'; i = i + 1; } printf("%d %d\n", ...
GO Classes
294
views
GO Classes
asked
Apr 30, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
loop
output
2-marks
+
–
5
votes
1
answer
42
GO Classes Test Series 2024 | Programming | Test 2 | Question: 9
What will be the output of running file main.c? write.c *********************** extern int count; void write_extern() { count +=2; } main.c *********************** #include "write.c" #include<stdio.h> int count = 5; main() { write_extern(); write_extern(); printf("%d", count); } $0$ $5$ $9$ None of these
What will be the output of running file main.c?write.c * extern int count; void write_extern() { count +=2; }main.c * #include "write.c" #include<st...
GO Classes
347
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
1-mark
+
–
6
votes
3
answers
43
GO Classes Test Series 2024 | Programming | Test 2 | Question: 21
What will be the output of the following program? #include<stdio.h> int rec(int x, int y) { static int count = 0; if (x == 0) return count; count++; if (x > y) rec(x - y, y); else rec(x, y - x); return count; } main() { int i = 10, j = 2, n; n = rec(i, j); printf("%d", n); } $4$ $5$ $6$ Infinite loop
What will be the output of the following program?#include<stdio.h int rec(int x, int y) { static int count = 0; if (x == 0) return count; count++; if (x y) rec(x - y, y)...
GO Classes
411
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
recursion
output
2-marks
+
–
6
votes
1
answer
44
GO Classes Test Series 2024 | Programming | Test 2 | Question: 23
What will be the output of the program below- int i = 1; void my_extern1(void); void my_extern2(void); int main() { int count = 0; while (i++<5) { static int i = 3; i++; count +=i; my_extern1(); } printf("%d", ... (); } void my_extern2(){ extern int i; if (i++ < 3) my_extern1(); } Infinite recursion $9$ $4$ $5$
What will be the output of the program below-int i = 1; void my_extern1(void); void my_extern2(void); int main() { int count = 0; while (i++<5) { static int i = 3; i++; c...
GO Classes
325
views
GO Classes
asked
Apr 24, 2022
Programming in C
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
recursion
output
2-marks
+
–
3
votes
2
answers
45
GO Classes 2023 | Weekly Quiz 8 | Question: 3
#include <stdio.h> int main() { int i= 255; short int *s= (short int *)&i; printf("%d\n", *s); } What will be the output of the above program in little-endian and big-endian, respectively? $(65280\text{ is } 255\times2^8)$ $255,\; 0$ $65280,\; 0$ $0,\;0$ $0,\; 65280$
#include <stdio.h int main() { int i= 255; short int *s= (short int *)&i; printf("%d\n", *s); }What will be the output of the above program in little-endian and big-endia...
GO Classes
610
views
GO Classes
asked
Apr 21, 2022
Programming in C
goclasses_wq8
goclasses
programming
programming-in-c
output
2-marks
little-endian-big-endian
+
–
Page:
« prev
1
2
3
4
5
6
7
...
12
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register