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 and answers in Programming
0
votes
1
answer
1
physics wallah dpp #clanguage #pointer
anirudhkumar18
answered
in
Programming
2 days
ago
by
anirudhkumar18
70
views
programming-in-c
pointers
physics-wallah
0
votes
2
answers
2
made easy test series for gate cse 2023
please help me out in solving this question. the solution provided there is not upto the mark
Ujjaval251
answered
in
Programming
2 days
ago
by
Ujjaval251
450
views
data-structures
heap-sort
heap
difficult
made-easy-test-series
0
votes
1
answer
3
isro 2018
Consider the following C code segment: #include main() { int i, j , x ; scanf("%d", &x); i = 1 ; j = 1; while ( i< 10 ) { j = j * i; i = i + 1; if (i == x) break ; } } For the program fragment above, which of the following statements about the variables i and j must be true after ... = (x - 1)!) ∧ (i = x )) D (( j = 9!) ∧ (i = 10)) V (( j = (x - 1)!) ∧ (i = x ))
dsujay748
answered
in
Programming
5 days
ago
by
dsujay748
886
views
programming-in-c
0
votes
1
answer
4
Practice question Avl trees
S1 : An insertion in an AVL with n nodes requires O(n) rotations. answer is false in answer key,but is guess for 1 insetion its O(1).so for n it will be O(n). tell me if i am wrong and correct me please.
Bharat Bhushan
answered
in
Programming
5 days
ago
by
Bharat Bhushan
55
views
data-structures
avl-tree
1
vote
2
answers
5
GATE CSE 2023 | Question: 25
The integer value printed by the $\textsf{ANSI-C}$ program given below is _______________ #include<stdio.h> int funcp(){ static int x = 1; x++; return x; } int main(){ int x,y; x = funcp(); y = funcp()+x; printf("%d\n", (x+y)); return 0; }
sreya97
answered
in
Programming
Feb 22
by
sreya97
1.2k
views
gatecse-2023
programming
programming-in-c
output
numerical-answers
1-mark
5
votes
6
answers
6
ISRO2020-18
Consider a $2$-dimensional array $x$ with $10$ rows and $4$ columns, with each element storing a value equivalent to the product of row number and column number. The array is stored in row-major format. If the first element $x[0][0]$ occupies the memory location ... , which all locations (in decimal) will be holding a value of $10$? $1018,1019$ $1022,1041$ $1013,1014$ $1000,1399$
Haris_md
answered
in
Programming
Feb 19
by
Haris_md
6.8k
views
isro-2020
programming
array
normal
2
votes
1
answer
7
GATE CSE 2023 | Question: 26
Consider the following program: int main() int f1() int f2(int X) int f3() { { { { f1(); return(1); f3(); return(5); f2(2); } if(X==1) } f3(); return f1(); return(0); else } return (X*f2(X-1)); } Which one of the following options represents the activation tree corresponding to the main function?
Hira Thakur
answered
in
Programming
Feb 16
by
Hira Thakur
1.0k
views
gatecse-2023
programming
programming-in-c
recursion
2-marks
0
votes
1
answer
8
Made Easy test series
answer given is 33
mahendrapatel
answered
in
Programming
Feb 8
by
mahendrapatel
174
views
programming-in-c
output
made-easy-test-series
0
votes
1
answer
9
ISRO CS 2018
#include <stdio.h> int main() { int i,j,x; scanf("%d ",x); i=1; j=1; while(i<10){ j=j*i; i=i+1; if(i==x) break; } return 0; }
striver23
answered
in
Programming
Feb 4
by
striver23
163
views
isro2018
programming-in-c
0
votes
1
answer
10
#madeeasy
is it ok to mark both and at least option in the case of MSQ, on my view in this question first option will always be true so marking the second is correct?
Pranavpurkar
answered
in
Programming
Feb 1
by
Pranavpurkar
104
views
programming-in-c
made-easy-test-series
query
0
votes
1
answer
11
#selfdoubt
how many topological sort possible for above graph?like this question https://gateoverflow.in/39669/gate-cse-2016-set-1-question-11
Pranavpurkar
answered
in
Programming
Jan 30
by
Pranavpurkar
74
views
programming
topological-sort
directed-acyclic-graph
0
votes
1
answer
12
Programming and Data Structure | Static int | Made Easy Test series (Modified)
Consider the following C code snippets, labeled as P1, P2 and P3, the output of P1 is X , of P2 is Y and of P3 as Z . What is the value of X+Y+Z P1 #include <stdio.h> int f(int n) { static int r=40; if (n==0 | ... 1,r)-r; } else return f(n-1,r)+(2*r); } int main() { printf("%d",f(6,40)); return 0; }
Souvik33
answered
in
Programming
Jan 29
by
Souvik33
144
views
data-structures
programming-in-c
0
votes
0
answers
13
TestBook testSeries board game question
Consider a board game in consist of m n grid. A coin is located at the top-left corner of an m n grid. The coin can only move either down or right at any point in time. The ultimate goal of the game places the coin at the bottom-right corner of the grid. ... path(m-1, n) + path(m, n-1); } Find the number of unique paths if grid order is 5 4. 38 25 35 28
Sahil_Lather
asked
in
Programming
Jan 28
by
Sahil_Lather
84
views
data-structures
programming-in-c
dynamic-programming
0
votes
0
answers
14
TestBook TestSeries BFS Question to find 4th enqueue element
Consider the following graph. If BFS is implemented on the following graph where the root node is 1 then which of the following set of the nodes are present in the queue after performing 4th enqueue operation? 3, 4, 5 4, 6, 5 3, 4 4, 5, 6
Sahil_Lather
asked
in
Programming
Jan 28
by
Sahil_Lather
79
views
data-structures
graph-algorithms
0
votes
0
answers
15
TestBook testseries TLB and C programming combined question
Consider the following C function executed in an OS with paging where the page size is 4 kilobytes. Further, assume that the system employs a 32-entry direct mapped TLB. int *alloc_and_init() { int counter, value=0, size=2048; int ... of the program, what is the number of TLB misses during the execution of the for loop? 0 1 2048 2
Sahil_Lather
asked
in
Programming
Jan 28
by
Sahil_Lather
36
views
operating-system
programming-in-c
data-structures
pointers
0
votes
1
answer
16
Programming
Someone please explain. Function of ‘^’
mahendrapatel
answered
in
Programming
Jan 25
by
mahendrapatel
107
views
programming-in-c
self-doubt
test-series
102
votes
6
answers
17
GATE CSE 2015 Set 1 | Question: 35
What is the output of the following C code? Assume that the address of $x$ is $2000$ (in decimal) and an integer requires four bytes of memory. int main () { unsigned int x [4] [3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}; printf ("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3); } $2036, 2036, 2036$ $2012, 4, 2204$ $2036, 10, 10$ $2012, 4, 6$
mahendrapatel
answered
in
Programming
Jan 25
by
mahendrapatel
22.3k
views
gatecse-2015-set1
programming
programming-in-c
normal
0
votes
0
answers
18
Made Easy
can anyone help me how to approach these type of questions..? And also please attach link of similar questions if possible . thanks in advance
TusharKumar
asked
in
Programming
Jan 24
by
TusharKumar
46
views
0
votes
3
answers
19
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 29
Consider the following declaration. int a, *b = &a, **c = &b; a = 4; **c = 5; If the statement b = (int *)**c Is appended to the above program fragment then Value of $b$ becomes $5$ Value of $b$ will be the address of $c$ Value of $b$ is unaffected None of these
Afsal Meeran
answered
in
Programming
Jan 24
by
Afsal Meeran
556
views
nielit2017oct-assistanta-it
programming
pointers
0
votes
2
answers
20
Programming and ds
How many number of add and remove operations are required to access 26th element of a queue of 50 elements,so that the original queue remains the same after the access is Note:-Direct accessing through the index is not included.
Afsal Meeran
answered
in
Programming
Jan 23
by
Afsal Meeran
94
views
programming-in-c
0
votes
1
answer
21
Ace Test series |C programming | What will be the output of the following program ?
What will be the output of the following program ? answer is 8 but I am getting 5, please explain where I am wrong
Shubhodeep
answered
in
Programming
Jan 18
by
Shubhodeep
221
views
programming-in-c
recursion
1
vote
2
answers
22
#self_doubt
what if a full binary tree contains both left and right sides as the max heap, then what will be the complexity of making it a proper max heap?
Johnny1001
answered
in
Programming
Jan 16
by
Johnny1001
96
views
time-complexity
algorithms
0
votes
2
answers
23
GATE CSE 2014 Set 2 | Question: 10 | Modified
Consider the function func shown below: int func(int num) { int count = 0; while (num) { count++; num>>= 1; } return (count); } The value returned by func(-435) is: 6 9 Will loop forever Depends on computer architecture
Johnny1001
answered
in
Programming
Jan 16
by
Johnny1001
202
views
gatecse-2014-set2
algorithms
identify-function
numerical-answers
easy
1
vote
3
answers
24
Linked List implementation of Queue
Which of the following is true about linked list implementation of queue? (a) In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end. (b) In push operation, if new nodes are ... (1) TC answer should be (b) But If we are allowed to use doubly linked list then answer should be C only ryt?
Johnny1001
answered
in
Programming
Jan 15
by
Johnny1001
42.6k
views
linked-list
data-structures
queue
58
votes
12
answers
25
GATE CSE 2017 Set 2 | Question: 55
Consider the following C program. #include<stdio.h> #include<string.h> int main() { char* c="GATECSIT2017"; char* p=c; printf("%d", (int)strlen(c+2[p]-6[p]-1)); return 0; } The output of the program is _______
Johnny1001
answered
in
Programming
Jan 15
by
Johnny1001
21.6k
views
gatecse-2017-set2
programming-in-c
numerical-answers
array
pointers
1
vote
1
answer
26
Made Easy Test Series | Prog And DS | Linked List
The following C function rearranges the members of a single-linked list of integers that is passed as a parameter. The list of numbers 1, 2, 3, 4, 5, 6, and 7 in the specified order is passed to the function when it is called. How many components will move about in the list once the function is finished running?
Souvik33
answered
in
Programming
Jan 11
by
Souvik33
162
views
programming-in-c
made-easy-test-series
data-structures
linked-list
0
votes
1
answer
27
Choose the size of the below struct. Struct{ Int a; Char b; Float c; } 2 4 7 10
Choose the size of the below struct. Struct{ Int a; Char b; Float c; } 1)2 2)4 3)7 4)10
rd8794
answered
in
Programming
Jan 11
by
rd8794
274
views
programming-in-c
0
votes
0
answers
28
Made Easy Test Series | Prog. and DS | Dynamic Memory Allocation | Malloc
Which line number contains an error or warning:
Souvik33
asked
in
Programming
Jan 9
by
Souvik33
220
views
programming-in-c
data-structures
memory-management
made-easy-test-series
numerical-answers
0
votes
0
answers
29
#madeeasy
Dknights
asked
in
Programming
Jan 7
by
Dknights
145
views
programming-in-c
made-easy-test-series
bad-question
0
votes
1
answer
30
Programming
Why nothing is printed for %c.
Overflow04
asked
in
Programming
Jan 3
by
Overflow04
124
views
programming
self-doubt
1
vote
1
answer
31
Made Easy Mock -1
how does the program is working..? answer – 8
TusharKumar
asked
in
Programming
Dec 29, 2022
by
TusharKumar
146
views
programming
numerical-answers
made-easy-test-series
0
votes
0
answers
32
Made easy test series question
Any one please let me know if there is any other way to this output?
Sgm
asked
in
Programming
Dec 28, 2022
by
Sgm
154
views
data-structures
programming
made-easy-test-series
doubt
0
votes
0
answers
33
UNacademy Tests
int fun(int arr[]); int fun(int arr[2]); Both the statements are same??? HELP
Rajender gill
asked
in
Programming
Dec 27, 2022
by
Rajender gill
130
views
programming-in-c
0
votes
1
answer
34
ZEAL SERIES
What should be the answer?
DAWID15
asked
in
Programming
Dec 23, 2022
by
DAWID15
176
views
programming-in-c
zeal
0
votes
1
answer
35
Unacacdemy AIMT 2
can anyone explain how the for loop works here..?
TusharKumar
asked
in
Programming
Dec 22, 2022
by
TusharKumar
169
views
programming-in-c
output
loop
2
votes
0
answers
36
How to approach this question
closed
h4kr
asked
in
Programming
Dec 22, 2022
by
h4kr
98
views
programming-in-c
0
votes
1
answer
37
Object Oriented Programming
Imagine a scenario where new child classes are introduced frequently from a base class. The method calling sequences for every child class are the same but the implementations are different among the child classes. Here which design pattern would you like to apply? Explain the reasons with examples j
rayhanrjt
asked
in
Programming
Dec 16, 2022
by
rayhanrjt
64
views
object-oriented-programming
programming
Help get things started by
asking a question
.
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
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
My journey from being a MSc student to AIR 239 in GATE CSE 2023 and qualified UGC-NET JRF.
NEEPCO Recruitment 2023
GATE CSE 2023 Results
IIIT Banglore MTech 2023-24
IIIT-Delhi MTech 2023-24
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Programming
(3.9k)
DS
(1.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.3k)
Others
(2.5k)
Admissions
(653)
Exam Queries
(844)
Tier 1 Placement Questions
(17)
Job Queries
(76)
Projects
(9)
Unknown Category
(866)
Recent questions and answers in Programming
Recent Blog Comments
congrats pranab
Congratulations @Pranab Paul 10 🥳
sir give access to these tests at least mid May...
Was there interview for mtech as well?
Check CCMT website for previous year cutoff for...