Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by Udhay Brahmi
3
answers
1
ISRO2020-74
Following declaration of an array of struct, assumes size of byte, short, int and long are $1,2,3$ and $4$ respectively. Alignment rule stipulates that $n$ - byte field must be located at an address divisible by $n$, the fields in the struct are not rearranged, padding is used ... is located at an address divisble by $8$, what is the total size of $C$, in bytes? $150$ $160$ $200$ $240$
Following declaration of an array of struct, assumes size of byte, short, int and long are $1,2,3$ and $4$ respectively. Alignment rule stipulates that $n$ – byte field...
3.5k
views
commented
Apr 9, 2022
Programming in C
isro-2020
programming
normal
structure
+
–
4
answers
2
ISRO2020-23
The post-order traversal of binary tree is $\text{ACEDBHIGF}$. The pre-order traversal is $\text{A B C D E F G H I}$ $\text{F B A D C E G I H}$ $\text{F A B C D E G H I}$ $\text{A B D C E F G I H}$
The post-order traversal of binary tree is $\text{ACEDBHIGF}$. The pre-order traversal is$\text{A B C D E F G H I}$$\text{F B A D C E G I H}$$\text{F A B C D E G H I}$$\t...
18.8k
views
commented
Apr 9, 2022
DS
isro-2020
data-structures
binary-tree
tree-traversal
normal
+
–
4
answers
3
ISRO2020-30
Consider the following page reference string. $1\ 2\ 3\ 4\ 2\ 1\ 5\ 6\ 2\ 1\ 2\ 3\ 7\ 6\ 3\ 2\ 1\ 2\ 3\ 6\ $ What are the minimum number of frames required to get a single page fault for the above sequence assuming LRU replacement strategy? $7$ $4$ $6$ $5$
Consider the following page reference string.$1\ 2\ 3\ 4\ 2\ 1\ 5\ 6\ 2\ 1\ 2\ 3\ 7\ 6\ 3\ 2\ 1\ 2\ 3\ 6\ $What are the minimum number of frames required to get a single ...
5.7k
views
commented
Apr 9, 2022
Operating System
isro-2020
operating-system
memory-management
page-replacement
page-fault
normal
+
–
2
answers
4
ISRO2020-62
What is output of the following ‘C’ code assuming it runs on a byte addressed little endian machine? #include<stdio.h> int main() { int x; char *ptr; x=622,100,101; printf("%d",(*(char *)&x)*(x%3)); return 0; } $622$ $311$ $22$ $110$
What is output of the following ‘C’ code assuming it runs on a byte addressed little endian machine?#include<stdio.h int main() { int x; char *ptr; x=622,100,101; pri...
5.9k
views
commented
Apr 9, 2022
Programming in C
isro-2020
programming
programming-in-c
normal
pointers
+
–
4
answers
5
UGC NET CSE | December 2019 | Part 2 | Question: 88
Match $\text{List-I}$ with $\text{List-II}$ ... $\text{(a)-(iii), (b)-(iv), (c)-(ii), (d)-(i)}$
Match $\text{List-I}$ with $\text{List-II}$:$$\begin{array}{llll} & \textbf{List I} && \textbf{List II} \\ \text{(a)} & \text{Micro operation} & \text{(i)} & \text{Speci...
978
views
commented
Apr 9, 2022
Others
ugcnetcse-dec2019-paper2
+
–
2
answers
6
UGC NET CSE | December 2019 | Part 2 | Question: 35
Let $a^{2c} \text{ mod } n = (a^c)^2 \text{ mod } n$ and $a^{2c+1}\text{ mod } n= a \cdot (a^c)^2\text{ mod }n$. For $a=7$, $b=17$ and $n=561$, What is the value of $a^b( \text{mod } n)$? $160$ $166$ $157$ $67$
Let $a^{2c} \text{ mod } n = (a^c)^2 \text{ mod } n$ and $a^{2c+1}\text{ mod } n= a \cdot (a^c)^2\text{ mod }n$. For $a=7$, $b=17$ and $n=561$, What is the value of $a^b...
1.4k
views
commented
Apr 9, 2022
Others
ugcnetcse-dec2019-paper2
+
–
2
answers
7
UGC NET CSE | December 2019 | Part 2 | Question: 79
Consider the following statements with respect to network security: Message confidentiality means that the sender and the receiver expect privacy Message integrity means that the data must arrive at the receiver exactly as they were sent. Message authentication means the receiver ... (ii) Only (i) and (iii) Only (ii) and (iii) (i), (ii) and (iii)
Consider the following statements with respect to network security:Message confidentiality means that the sender and the receiver expect privacyMessage integrity means th...
1.0k
views
commented
Apr 9, 2022
Others
ugcnetcse-dec2019-paper2
+
–
2
answers
8
UGC NET CSE | December 2019 | Part 2 | Question: 40
Consider a weighted directed graph. The current shortest distance from source $S$ to node $x$ is represented by $d[x]$. Let $d[v] =29$, $d[u]=15$, $w[u,v]=12$. What is the updated value of $d[v]$ based on current information? $29$ $27$ $25$ $17$
Consider a weighted directed graph. The current shortest distance from source $S$ to node $x$ is represented by $d[x]$. Let $d[v] =29$, $d[u]=15$, $w[u,v]=12$. What is th...
1.0k
views
commented
Apr 9, 2022
Others
ugcnetcse-dec2019-paper2
+
–
1
answer
9
UGC NET CSE | December 2004 | Part 2 | Question: 14
A function object : is an instance of a class for which operator ( ) is a member function is an instance of a class for which operator → is a member function is a pointer to any function is a member function of a class
A function object :is an instance of a class for which operator ( ) is a member functionis an instance of a class for which operator → is a member functionis a pointer ...
433
views
answered
Feb 14, 2022
Programming in C
ugcnetcse-dec2004-paper2
+
–
3
answers
10
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
Consider the following declaration.int a, *b = &a, c = &b; a = 4; c = 5;If the statementb = (int *) cIs appended to the above program fragment thenValue of $b$ becomes ...
956
views
answered
Feb 12, 2022
Programming in C
nielit2017oct-assistanta-it
programming
pointers
+
–
2
answers
11
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 12
If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operations? $O(n),O(n)$ $O(n),O(1)$ $O(1),O(n)$ $O(1),O(1)$
If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operations?$O(n),O(n)$$O(n),O(1)$$O(1),O(n)$$O(1),O(1)$
3.8k
views
answered
Feb 12, 2022
DS
nielit2017oct-assistanta-it
data-structures
queue
+
–
3
answers
12
#linkedlist #pointers #datastructure
Suppose you have a singly Linked List of n nodes and you want to insert a node in the middle of the Linked List, At least how many pointers do you need to handle to perform this task?
Suppose you have a singly Linked List of n nodes and you want to insert a node in the middle of the Linked List, At least how many pointers do you need to handle to perfo...
1.0k
views
answered
Feb 11, 2022
2
answers
13
Data Structure
How to use substitution method
How to use substitution method
405
views
answered
Feb 9, 2022
Programming in C
data-structures
+
–
1
answer
14
BARC 2020 CS interview question
In a program, you build a tree(non-empty) according to some inputs in the program. Now you have to shutdown your computer and the next day you need to work on this already build tree(do not build the tree again from scratch). How would ... something else to get the already build tree? The tree can be binary or non-binary but non-empty. Give a detailed explanation.
In a program, you build a tree(non-empty) according to some inputs in the program. Now you have to shutdown your computer and the next day you need to work on this alread...
432
views
answered
Feb 9, 2022
1
answer
15
Gate applied Test Series
Can anyone help explain the concept of enums through this question,please?
Can anyone help explain the concept of enums through this question,please?
288
views
answered
Feb 9, 2022
3
answers
16
&* Operator in C
#include <stdio.h> int main() { int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0; } Why both printf() line printing the same address value??
#include <stdio.h>int main(){ int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0;}Why both printf() line printing the s...
721
views
answered
Feb 9, 2022
Programming in C
programming
programming-in-c
pointers
+
–
2
answers
17
Pointers
main () { static char *s[] = { “ice”, “green”, “cone”, “please”, }; static char **ptr[] = {s+3,s+2,s+1,s}; char ***p = ptr; printf(“\n%s”, **++p); printf(“\n%s”, *--*++p+3); printf(“\n%s”, *p[-2]+3); printf(“\n%s”, p[-1][-1]+1); } cone, ase, reen ice, green, cone green, cone, please None of the above
main () {static char *s[] = {“ice”,“green”,“cone”,“please”,};static char ptr[] = {s+3,s+2,s+1,s};char *p = ptr;printf(“\n%s”, ++p);printf(“\n%s�...
577
views
answered
Feb 9, 2022
Programming in C
pointers
programming-in-c
array-of-pointers
+
–
1
answer
18
Ace BITS&BYTES, #Trees #B-Tree
What is the smallest and largest number of entries for 2_3 BTree (B2_3 Tree) of height 8 (i.e 8 levels) ? 255 & 6560 127 & 2186 6561 & 255 255 & 2186
What is the smallest and largest number of entries for 2_3 BTree (B2_3 Tree) of height 8 (i.e 8 levels) ? 255 & 6560127 & 21866561 & 255255 & 2186
546
views
answered
Feb 9, 2022
DS
data-structures
b-tree
tree
ace-booklet
+
–
2
answers
19
Gate@Zeal Test series
How to calculate the sizeof(arr2)?
How to calculate the sizeof(arr2)?
546
views
answered
Feb 9, 2022
Programming in C
test-series
+
–
1
answer
20
Telegram Test Series
229
views
answered
Feb 9, 2022
DS
test-series
+
–
1
answer
21
Testbook Test Series
Consider the following C program: #include <stdio.h> int r( ){ static int num = 7; return num--; } int main ( ) { for (r( ) ;r ( ) ;r ( ) ) printf(“ % d”, r( ) ); return 0; } Which one of the following values will be displayed on execution of the programs? 41 52 63 630
Consider the following C program:#include <stdio.h>int r( ){static int num = 7;return num ;}int main ( ) {for (r( ) ;r ( ) ;r ( ) )printf(“ % d”, r( ) );return 0;}Whi...
528
views
commented
Feb 9, 2022
DS
testbook-test-series
+
–
5
answers
22
MadeEasy Subject Test: Programming & DS - Trees
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.
959
views
answered
Feb 9, 2022
DS
made-easy-test-series
data-structures
tree
+
–
3
answers
23
ACE Test Series:C-program
What should be the ans. Isn’t the Function initialization should be outside main function? They are given inside main. If declaration would be outside main then ans should be C else i don’t think options are correct here. Anyone ?
What should be the ans. Isn’t the Function initialization should be outside main function? They are given inside main. If declaration would be outside main then ans sho...
761
views
answered
Feb 9, 2022
Programming in C
programming-in-c
ace-test-series
output
programming
+
–
2
answers
24
Please explain with some example that How Right to Left associativity takes place in case of Ternary operators?
Please explain with some example that How Right to Left associativity takes place in case of Ternary operators?
363
views
answered
Feb 8, 2022
4
answers
25
#university exam
What will be the complexity of merging two circular single linked list? You can consider the sizes of the linked lists are n1 and n2, respectively.
What will be the complexity of merging two circular single linked list? You can consider the sizes of the linked lists are n1 and n2, respectively.
539
views
answered
Feb 8, 2022
DS
linked-list
+
–
4
answers
26
number of ordered trees
The number of possible ordered trees with 3 nodes A, B, C is: (a) 16 (b) 12 (c) 6 (d) 10 what is ordered tree alignment?
The number of possible ordered trees with 3 nodes A, B, C is:(a) 16 (b) 12 (c) 6 (d) 10 what is ordered tree alignment?
19.3k
views
commented
Feb 8, 2022
DS
tree
+
–
3
answers
27
UGC NET CSE | October 2020 | Part 2 | Question: 23
A complete $n$-ary tree is a tree in which each node has $n$ children or no children. Let $I$ be the number of internal nodes and $L$ be the number of leaves in a complete $n$-ary tree. If $L=41$, and $I=10$, what is the value of $n$? $3$ $4$ $5$ $6$
A complete $n$-ary tree is a tree in which each node has $n$ children or no children. Let $I$ be the number of internal nodes and $L$ be the number of leaves in a complet...
3.8k
views
commented
Feb 8, 2022
DS
ugcnetcse-oct2020-paper2
data-structures
binary-tree
+
–
1
answer
28
###Doubt
Is there any shortcut method to find the optimal solution of 0/1 knapsack problem?
Is there any shortcut method to find the optimal solution of 0/1 knapsack problem?
182
views
answered
Feb 8, 2022
2
answers
29
Applied Test series: C-programming
I know the answer but need a good explanation for this question. Can anyone help. Thanks!
I know the answer but need a good explanation for this question. Can anyone help. Thanks!
554
views
answered
Feb 8, 2022
Programming in C
test-series
programming-in-c
operators
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register