Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
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
asked
in
Digital Logic
Dec 30, 2022
by
M.Zain
577
views
digital-logic
sequential-circuit
output
0
votes
1
answer
32
Unacacdemy AIMT 2
can anyone explain how the for loop works here..?
TusharKumar
asked
in
Programming in C
Dec 22, 2022
by
TusharKumar
527
views
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
asked
in
Programming in C
Oct 16, 2022
by
Jeetmoni saikia
285
views
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; }
SHWETAV SUMAN
asked
in
Programming in C
Oct 14, 2022
by
SHWETAV SUMAN
234
views
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
GO Classes
asked
in
Programming in C
Aug 6, 2022
by
GO Classes
637
views
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; }
GO Classes
asked
in
Programming in C
Aug 6, 2022
by
GO Classes
426
views
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.
Hrithik Vashishtha
asked
in
Programming in C
Jul 4, 2022
by
Hrithik Vashishtha
380
views
programming-in-c
output
1
vote
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 ???
Rajib Datta Roy
asked
in
Programming in C
Jun 2, 2022
by
Rajib Datta Roy
545
views
programming-in-c
output
6
votes
3
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}$
GO Classes
asked
in
Programming in C
May 2, 2022
by
GO Classes
986
views
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
GO Classes
asked
in
Programming in C
May 2, 2022
by
GO Classes
730
views
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$
GO Classes
asked
in
Programming in C
Apr 30, 2022
by
GO Classes
287
views
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
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
346
views
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
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
402
views
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$
GO Classes
asked
in
Programming in C
Apr 24, 2022
by
GO Classes
329
views
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$
GO Classes
asked
in
Programming in C
Apr 21, 2022
by
GO Classes
605
views
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 »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged output
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...