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 goclasses_wq4
5
votes
1
answer
1
GO Classes 2023 | Weekly Quiz 4 | Question: 2
Which of the following expressions will evaluate to true? INT_MIN is the minimum signed integer in the system which is using 2's complement representation for signed integers and variables are defined as follows: int x = 5, i = -7; ((x >> 2) << 2) <= x ~ 1&& 1 INT_MIN == -INT_MIN -10 < i <-1
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
537
views
goclasses_wq4
goclasses
programming
programming-in-c
number-representation
multiple-selects
2-marks
5
votes
4
answers
2
GO Classes 2023 | Weekly Quiz 4 | Question: 10
int find(int n) { int i, j, k, a = 1; for (i = 1; i <= n; i++) for (j = 1; j <= i; j++) for (k = 1; k <= j; k++) a = a + 1; return a; } What will be the value of find$(10)$?
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
576
views
goclasses_wq4
numerical-answers
programming
programming-in-c
loop
goclasses
2-marks
6
votes
2
answers
3
GO Classes 2023 | Weekly Quiz 4 | Question: 16
Which of the following(s) are true for following function int mystery(int a) { if(a == 256) return 3; return 1 + 2 * mystery(a*4); //line 3 } $\text{mystery(255)}$ is an example of infinite recursion if we replace line $3$ ... are $3, 7, 15, 31$ $\text{mystery(i)}$ gives output if and only if $i$ is $1$ or multiple of $4$
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
402
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
multiple-selects
1-mark
1
vote
3
answers
4
GO Classes 2023 | Weekly Quiz 4 | Question: 17
How many times is foo activated (called), including the first "$\text{foo}(3,12)$" $\text{max()}$ and $\text{min()}$ are functions that return maximum and minimum respectively. int foo(int a, int b) { if (a==b) { return b; } int mn =min(a,b), mx =max(a,b); return foo(mn,mn) + foo( mx - mn , mn); }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
386
views
goclasses_wq4
numerical-answers
goclasses
programming
programming-in-c
recursion
2-marks
3
votes
1
answer
5
GO Classes 2023 | Weekly Quiz 4 | Question: 18
What will be output of following program? void xyz(int i) { if(--i) { xyz(i++); printf("%d",i); } } main() { xyz(5); } It is an infinite recursion since no base case $2345$ $54321$ $1234$
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
321
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
1-mark
6
votes
2
answers
6
GO Classes 2023 | Weekly Quiz 4 | Question: 19
What will be the output printed by $\text{mystery}1(0,6)$? void mystery1(int a, int b) { if (a <= b) { int m = (a + b) / 2; printf("%d", m); mystery1(a, m-1); mystery1(m+1, b); } }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
326
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
1-mark
4
votes
3
answers
7
GO Classes 2023 | Weekly Quiz 4 | Question: 20
What will be output printed by $\text{mystery}2(6)$? void mystery2(int n) { if (n > 0) { printf("%d", n); mystery2(n-2); mystery2(n-3); printf("%d", n); } }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
385
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
1-mark
4
votes
3
answers
8
GO Classes 2023 | Weekly Quiz 4 | Question: 21
What will be the output printed by $\text{mystery}3(6)$? void mystery3(int n) { if (n == 0 || n == 1) return; mystery3(n-2); printf("%d", n); mystery3(n-1); }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
390
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
1-mark
3
votes
3
answers
9
GO Classes 2023 | Weekly Quiz 4 | Question: 22
Consider the following pair of mutually recursive functions. What does $g(g(2))$ evaluate to? int f(int n){ if (n==0) return 0; return f(n-1)+g(n-1); } int g(int n){ if (n==0) return 1; return g(n-1) + f(n); }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
494
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
2-marks
8
votes
2
answers
10
GO Classes 2023 | Weekly Quiz 4 | Question: 23
Consider the following recursive function. What is $f(0)?$ int f(int x) { if (x > 1000) return x - 4; else return f(f(x+5)); }
GO Classes
asked
in
Programming
Mar 26, 2022
by
GO Classes
457
views
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
2-marks
To see more, click for the
full list of questions
or
popular tags
.
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
DRDO Scientist -B
ISRO Scientist-B 2023
BARC RECRUITMENT 2023
COAP Responses | GATE CSE 2023
Interview Experience : M.Tech AI at IIT Jodhpur, Self Sponsored
Subjects
All categories
General Aptitude
(2.8k)
Engineering Mathematics
(9.7k)
Digital Logic
(3.4k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.4k)
Others
(2.4k)
Admissions
(665)
Exam Queries
(1.0k)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(867)
Recent questions tagged goclasses_wq4
Recent Blog Comments
@Shubham Sharma 2 Is it possible to get a...
are MSc.(CS) students eligible?
It is said that the gate score will have 80%...
Maybe we should raise our concern in Supreme...
Mtech(RA) CSE 2023 IIT Bombay project 14. Does...