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
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
5
votes
1
answer
21
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 16
Consider the following C code: double A[2][3] = {{1, 2, 3}, {4, 5, 6}}; Assume that A[0] = 0xFFAA0000 and the sizeof(double) is 8. What will be the value of `A[1]`? 0xFFAA0024 0xFFAA0003 0xFFAA000C 0xFFAA0018
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
480
views
goclasses2024-mockgate-14
programming
programming-in-c
array
1-mark
5
votes
2
answers
22
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 27
What is a statically allocated variable in C programming? A variable allocated at an absolute address in a program’s data space A variable allocated on the stack A variable allocated on the heap A variable which can NOT be defined as local variable
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
339
views
goclasses2024-mockgate-14
programming
programming-in-c
storage-classes-in-c
1-mark
7
votes
2
answers
23
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 33
On a $64$-bit system, which of the following C expressions is equivalent to the C expression $(x[2]+4)[3]?$ Assume $\mathrm{x}$ is declared as $\textsf{int}\ast \ast \textsf{x}$ $\ast((*(x+16))+28)$ $\ast((*(x+2))+7)$ $\ast(((* x)+2)+7)$ $(* \ast(x+2)+7)$
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
425
views
goclasses2024-mockgate-14
programming
programming-in-c
pointers
1-mark
4
votes
1
answer
24
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 34
Suppose you implement a queue using a singly linked list with head and tail pointers so that the front of the queue is at the tail of the list, and the rear of the queue is at the head of the list. What is the best possible worst-case running ... $O(n)$ for dequeue. $O(n)$ for enqueue and $O(1)$ for dequeue. $O(n)$ for both functions.
GO Classes
asked
in
DS
Feb 5
by
GO Classes
334
views
goclasses2024-mockgate-14
data-structures
queue
linked-list
1-mark
4
votes
1
answer
25
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 42
The provided C code is a version of the C string library function strlen(), which calculates the length of a given string. unsigned int mystrlen(char *c) { unsigned int i = 0; /* Your code here. */ } Which line of code creates a working and ... != '\0') i++; return i; while (*(c + i) != '\0') ++i; return i;
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
377
views
goclasses2024-mockgate-14
programming
programming-in-c
strings
multiple-selects
2-marks
4
votes
1
answer
26
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 43
What will be the output of the following C program? #include <stdio.h> void Mickey(int**, int, int); void Mouse(int, int*); int main() { int a = 2, b = 3, c = 4; int *points = &a; Mickey(&points, b, c); printf("%d", ... x; *p = **points+1; Mouse(z, p); return; } void Mouse(int z, int *p) { *p = *p+1; return; }
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
370
views
goclasses2024-mockgate-14
numerical-answers
programming
programming-in-c
functions
2-marks
5
votes
2
answers
27
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 44
Let $B$ be a binary search tree (BST) with eight nodes filled with the following set of eight integer keys $A=\{10,2,5,3,20,15,9,22\}$. The order in which these keys were inserted to create $B$ is not known. However ... are required to verify if all eight keys of $A$ are present in $B$. How many leaf nodes are present in B?
GO Classes
asked
in
DS
Feb 5
by
GO Classes
427
views
goclasses2024-mockgate-14
numerical-answers
data-structures
binary-search-tree
2-marks
7
votes
1
answer
28
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 45
Consider a stack whose elements are unsigned integers and support the following operations: PUSH a: Pushes the element 'a' onto the stack. ADD: Adds the two topmost elements, removes them, and pushes the result. SQR: ... once, count it as many times as it is used. Your final count should include initial 3 PUSH instructions.
GO Classes
asked
in
DS
Feb 5
by
GO Classes
493
views
goclasses2024-mockgate-14
numerical-answers
data-structures
stack
2-marks
4
votes
1
answer
29
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 54
Consider the following pseudocode procedure. Which of the following best describes procedure mystery? It returns a list of numbers from 1 to $n$. It prints every third number from 1 to $n$. It returns the sum of the numbers from 1 to $\mathrm{n}$. It returns the sum of the multiples of 3 from 1 to $n$.
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
202
views
goclasses2024-mockgate-14
programming
programming-in-c
functions
2-marks
0
votes
0
answers
30
Memory Based GATE DA 2024 | Question: 20
Consider the following Python code: S[1] = [1] x = [6, 3, 5, 4, 10] for i in range(2, len(x)): S[i] = [1] if x[i - 1]
GO Classes
asked
in
Programming
Feb 4
by
GO Classes
103
views
gate2024-da-memory-based
goclasses
programming
programming-in-python
0
votes
0
answers
31
Memory Based GATE DA 2024 | Question: 21
What does the following Python code do? \begin{verbatim} def fun(D, S_1, S_2): if S_1 < S_2: D[S_1], D[S_2] = D[S_2], D[S_1] fun(D, S_1 + 1, S_2 - 1) \end{verbatim}
GO Classes
asked
in
Programming
Feb 4
by
GO Classes
93
views
gate2024-da-memory-based
goclasses
programming
programming-in-python
2
votes
2
answers
32
Memory Based GATE DA 2024 | Question: 23
Consider a binary tree. Among the following traversal combinations, which of them can uniquely construct the tree? Inorder + Preorder Preorder + Postorder Only Inorder Inorder + Postorder
GO Classes
asked
in
DS
Feb 4
by
GO Classes
281
views
gate2024-da-memory-based
goclasses
data-structures
binary-tree
tree-traversal
0
votes
1
answer
33
Memory Based GATE DA 2024 | Question: 24
Consider a doubly linked list with the following operations: - Insert First (\texttt{InsertFirst}) \\ - Insert Last (\texttt{InsertLast}) \\ - Remove First (\texttt{RemoveFirst}) \\ - Remove Last (\texttt{RemoveLast}) The following operations are ... \ & a = \text{RemoveLast} \end{aligned} \] What is the value of \(a\) after these operations?
GO Classes
asked
in
DS
Feb 4
by
GO Classes
166
views
gate2024-da-memory-based
goclasses
data-structures
linked-list
numerical-answers
0
votes
1
answer
34
Memory Based GATE DA 2024 | Question: 40
Match the following: $ \begin{array}{|p{0.3\linewidth}|p{0.6\linewidth}|} \hline \textbf{Technique} & \textbf{Characteristic} \\ \hline FIFO & (ii) Queue \\ \hline Look Up & (i) Hash Table\\ \hline LIFO & (iii) Stack \\ \hline \end{array} $
GO Classes
asked
in
DS
Feb 4
by
GO Classes
164
views
gate2024-da-memory-based
goclasses
data-structures
stack
0
votes
0
answers
35
Memory Based GATE DA 2024 | Question: 49
Consider the following Python code: def countchildren(l, i): Some code Given lists if i > 2: return 1 ans = 1 for i in l.keys(): ans = ans + countchildren(l,i) return ans Example usage l = dict() l[1] = [2, 3] l[2] = [3, 4, 5] l[3] = [6, 7, 8] result = countchildren(l,1) print(result)
GO Classes
asked
in
Programming
Feb 4
by
GO Classes
94
views
gate2024-da-memory-based
goclasses
programming
programming-in-python
0
votes
0
answers
36
Memory Based GATE DA 2024 | Question: 55
Data Structure question: Binary tree question having four options involving no of internal nodes, leaf nodes, height etc.
GO Classes
asked
in
DS
Feb 4
by
GO Classes
191
views
gate2024-da-memory-based
goclasses
data-structures
binary-tree
1
vote
1
answer
37
Array, Memory Allocation
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
Mrityudoot
asked
in
Programming in C
Feb 2
by
Mrityudoot
246
views
memory-management
programming-in-c
array
1
vote
1
answer
38
Array
Does C support fractional Indices? float x = some fraction; Is float a[x] valid declaration?
Mrityudoot
asked
in
Programming in C
Feb 2
by
Mrityudoot
138
views
array
programming-in-c
6
votes
1
answer
39
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 16
Suppose we constructed the binary search tree shown by starting with an empty tree and inserting one element at a time from an input sequence, without any rotations or other manipulations. Which of the following assertions about the order of elements in ... $29$ came before $42.$ $3$ came before $14$ and $16$ came before $28.$
GO Classes
asked
in
DS
Jan 28
by
GO Classes
404
views
goclasses2024-mockgate-13
goclasses
data-structures
binary-search-tree
1-mark
3
votes
1
answer
40
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 17
Suppose that a binary min-heap stores six elements with priorities $10,20,30,40,50$, and $60$ in its array $\text{A}.$ What is the largest of these items that could be stored in $\text{A}[2]?$ (indexing starts from zero)
GO Classes
asked
in
DS
Jan 28
by
GO Classes
440
views
goclasses2024-mockgate-13
goclasses
numerical-answers
data-structures
binary-heap
1-mark
Page:
« prev
1
2
3
4
5
6
7
...
309
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)
Programming
(4.1k)
DS
(2.0k)
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 in Programming and DS
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:...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Aptitude Overflow