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 Gangani_Son
2
answers
1
GATE IT 2008 | Question: 9
What Boolean function does the circuit below realize? $xz + \bar{x}\bar{z}$ $x\bar{z} + \bar{x}{z}$ $\bar{x}\bar{y} + {y}{z}$ $xy + \bar{y}\bar{z}$
What Boolean function does the circuit below realize?$xz + \bar{x}\bar{z}$$x\bar{z} + \bar{x}{z}$$\bar{x}\bar{y} + {y}{z}$$xy + \bar{y}\bar{z}$
9.3k
views
commented
Dec 19, 2018
Digital Logic
gateit-2008
digital-logic
circuit-output
decoder
normal
+
–
4
answers
2
ISRO2008-25
In the expression $\overline{\text{A}}(\overline{\text{A}}+\overline{\text{B}})$ by writing the first term $\text{A}$ as $\text{A + 0}$, the expression is best simplified as $\text{A+AB}$ $\text{AB}$ $\text{A}$ $\text{A+B}$
In the expression $\overline{\text{A}}(\overline{\text{A}}+\overline{\text{B}})$ by writing the first term $\text{A}$ as $\text{A + 0}$, the expression is best simplified...
4.9k
views
answered
Dec 18, 2018
Digital Logic
isro2008
digital-logic
boolean-algebra
+
–
2
answers
3
What is the return value of following function for 484? What does it to in general?
What is the return value of following function for 484? What does it to in general? bool fun(int n) { int sum = 0; for (int odd = 1; n > sum; odd = odd+2) sum = sum + odd; return (n == sum ... is odd or not (D) True, it checks whether a given number is perfect square. Any one can explain output of above program?
What is the return value of following function for 484? What does it to in general?bool fun(int n){ int sum = 0; for (int odd = 1; n sum; odd = odd+2) sum = ...
2.1k
views
answer selected
Dec 14, 2018
Programming in C
programming-in-c
functions
programming
loop
+
–
7
answers
4
GATE CSE 2003 | Question: 88
In the following $C$ program fragment, $j$, $k$, $n$ and TwoLog_n are integer variables, and $A$ is an array of integers. The variable $n$ is initialized to an integer $\geqslant 3$, and TwoLog_n is initialized to the value of $2^*\lceil \log_2(n) \rceil$ for (k = 3; k ... $\left\{m \mid m \leq n, \text{m is prime} \right\}$ { }
In the following $C$ program fragment, $j$, $k$, $n$ and TwoLog_n are integer variables, and $A$ is an array of integers. The variable $n$ is initialized to an integer $\...
12.3k
views
answered
Dec 14, 2018
Algorithms
gatecse-2003
algorithms
identify-function
normal
+
–
1
answer
5
Minimum Spanning tree
An undirected graph G has n nodes. Its adjacency matrix is given by an n × n square matrix whose (i) diagonal elements are 0‘s and (ii) non-diagonal elements are 1‘s. which one of the following is TRUE? 1) Graph G has multiple spanning ... , each of cost n-1 3) Graph G has a unique MST of cost n-1 4) Graph G has no minimum spanning tree (MST)
An undirected graph G has n nodes. Its adjacency matrix is given by an n × n square matrix whose (i) diagonal elements are 0‘s and (ii) non-diagonal elements ...
1.2k
views
commented
Dec 13, 2018
Algorithms
barc2016
algorithms
minimum-spanning-tree
easy
+
–
1
answer
6
Which of the following condition is sufficient to detect cycle in a directed graph?
Which of the following condition is sufficient to detect cycle in a directed graph? (A) There is an edge from currently being visited node to an already visited node. (B) There is an edge from currently being visited node to ... seen twice in DFS. (D) None of the bove here option B is right, but why not option A?
Which of the following condition is sufficient to detect cycle in a directed graph?(A) There is an edge from currently being visited node to an already visited node.(B) T...
13.4k
views
asked
Dec 12, 2018
Algorithms
graph-theory
depth-first-search
geeksforgeeks-test-series
graph-algorithms
+
–
1
answer
7
output of the program
#include <stdio.h> void print(int n, int j) { if (j >= n) return; if (n-j > 0 && n-j >= j) printf("%d %dn", j, n-j); print(n, j+1); } int main() { int n = 8; print(n, 1); } (A) 1 7 2 6 3 5 4 4 4 4 (B) 1 7 2 6 3 5 4 4 (C) 1 7 2 6 3 5 (D) 1 2 3 4 5 6 7 8 Answer is B. anyone can explain how?
#include <stdio.h void print(int n, int j){ if (j >= n) return; if (n-j 0 && n-j >= j) printf("%d %dn", j, n-j); print(n, j+1);} int main(){ int n = ...
7.3k
views
answer selected
Dec 12, 2018
Programming in C
programming-in-c
programming
recursion
+
–
6
answers
8
GATE CSE 1998 | Question: 2.12
What value would the following function return for the input $x=95$? Function fun (x:integer):integer; Begin If x > 100 then fun = x – 10 Else fun = fun(fun (x+11)) End; $89$ $90$ $91$ $92$
What value would the following function return for the input $x=95$?Function fun (x:integer):integer; Begin If x 100 then fun = x – 10 Else fun = fun(fun (x+11)) End;$...
13.9k
views
commented
Dec 6, 2018
Algorithms
gate1998
algorithms
recursion
identify-function
normal
+
–
5
answers
9
GATE IT 2005 | Question: 51
Let $T(n)$ be a function defined by the recurrence $T(n) = 2T(n/2) + \sqrt n$ for $n \geq 2$ and $T(1) = 1$ Which of the following statements is TRUE? $T(n) = \Theta(\log n)$ $T(n) = \Theta(\sqrt n)$ $T(n) = \Theta(n)$ $T(n) = \Theta(n \log n)$
Let $T(n)$ be a function defined by the recurrence$T(n) = 2T(n/2) + \sqrt n$ for $n \geq 2$ and$T(1) = 1$Which of the following statements is TRUE?$T(n) = \Theta(\log n)$...
9.4k
views
answered
Dec 6, 2018
Algorithms
gateit-2005
algorithms
recurrence-relation
easy
+
–
0
answers
10
#gate #1997
A language L is a subset of Pascal with the following constructs: a). Expressions involving the operators ‘+’ and ‘<‘ only b). Assignment statements c). ‘while’ statements and d). Compound statements with the syntax ‘begin…………..end’ Give an unambiguous grammar for L.
A language L is a subset of Pascal with the following constructs:a). Expressions involving the operators ‘+’ and ‘<‘ onlyb). Assignment statementsc). ‘while’ ...
232
views
asked
Dec 4, 2018
Compiler Design
usergate1997
usermod
grammar
+
–
1
answer
11
#geeksfoegeeks #gate #2017 #mocktest
Let G be a simple graph with 20 vertices and 8 components. If we delete a vertex in G, then number of components in G should lie between ____. (A) 8 and 20 (B) 8 and 19 (C) 7 and 19 (D) 7 and 20 Answer is (C) but i think also possible (B). anyone explain?
Let G be a simple graph with 20 vertices and 8 components. If we delete a vertex in G, then number of components in G should lie between ____.(A) 8 and 20(B) 8 and 19(C) ...
1.6k
views
asked
Dec 4, 2018
Programming in C
graph-theory
+
–
1
answer
12
graph
You are given a graph containing n vertices and m edges and given that the graph doesn’t contain cycle of odd length. Time Complexity of the best known algorithm to find out whether the graph is bipartite or not is ? A O(m+n) B O(1) C O(mn) D O(n2 plz explain this question
You are given a graph containing n vertices and m edges and given that the graph doesn’t contain cycle of odd length. Time Complexity of the best known algorithm to fin...
2.9k
views
answered
Dec 4, 2018
Algorithms
algorithm-design
time-complexity
+
–
7
answers
13
GATE IT 2005 | Question: 85b
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a packet to its destination and the cost of the path to the destination through that router. Initially, the ... $(t + 100)$ is : $>100$ but finite $\infty$ $3$ $>3$ and $\leq 100$
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to...
14.9k
views
commented
Dec 4, 2018
Computer Networks
gateit-2005
computer-networks
routing
normal
+
–
6
answers
14
GATE CSE 2002 | Question: 2.23, UGCNET-June2012-II: 26
A $B^+$ - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length $8$ bytes, disk blocks are of size $512$ bytes, and index pointers are of size $4$ bytes. Given the scenario, what ... of the degree (i.e. number of pointers per node) of the $B^+$ - tree? $16$ $42$ $43$ $44$
A $B^+$ - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length $8$ bytes, disk blocks are of size $512...
14.2k
views
answered
Nov 30, 2018
Databases
gatecse-2002
databases
b-tree
normal
ugcnetcse-june2012-paper2
+
–
7
answers
15
GATE CSE 2002 | Question: 2.12
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the furthest ... which of the following? $\log_2 n$ $\log_{\frac{4}{3}} n$ $\log_3 n$ $\log_{\frac{3}{2}} n$
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the rig...
23.5k
views
commented
Nov 29, 2018
DS
gatecse-2002
data-structures
binary-tree
normal
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register