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
Answers by Kapil
4
votes
81
gatebook
Assume all frames have size F bits, and the propagation delay on the link is P sec, and the bandwidth is B bps. Assume also that the receiver piggybacks acknowledgements on frames going to the sender. What should the window size n (in frames) be at the sender in order to effectively use the bandwidth? (A) 2+2PB/F (B) 1+2PB/F (C) 2PB/F (D) 1+PB/F
Assume all frames have size F bits, and the propagation delay on the link is P sec, and the bandwidth is B bps. Assume also that the receiver piggybacks acknowledgements ...
633
views
answered
Nov 5, 2016
Computer Networks
sliding-window
+
–
4
votes
82
ME-Quick Sort
2.3k
views
answered
Nov 3, 2016
Algorithms
algorithms
made-easy-test-series
quick-sort
numerical-answers
+
–
24
votes
83
DMA -cycle stealing
Consider a system in which bus cycle takes 100 ns. Transfer of bus control from processor to device or device to processor, takes 250 ns. One of the IO device has data transfer rate of 75 KB/sec and employs DMA. Data are transferred one byte at a time. How ... with the bus when transferring a block of 256 bytes assuming DMA uses cycle stealing mode? 0.153 ms 0.546 ms 1.2ms 3.4ms
Consider a system in which bus cycle takes 100 ns. Transfer of bus control from processor to device or device to processor, takes 250 ns. One of the IO device has data tr...
7.3k
views
answered
Nov 3, 2016
CO and Architecture
dma
moderate
+
–
3
votes
84
Decidability and reducibility
Consider the language given below $L=\left \{ \left \langle M \right \rangle |M\ is\ TM \ and \ |L(M)|\ is\ prime\right \}$ is it deciable or not ? Explain with fact ?
Consider the language given below$L=\left \{ \left \langle M \right \rangle |M\ is\ TM \ and \ |L(M)|\ is\ prime\right \}$ is it deciable or not ? Explain with fact ?
492
views
answered
Oct 31, 2016
6
votes
85
SlowStart
I am getting 25..but ans given 20...please chk once
I am getting 25..but ans given 20...please chk once
509
views
answered
Oct 31, 2016
29
votes
86
Find Number Of Tokens and Lexemes
// comment printf("string %d ",++i++&&&i***a); return(x?y:z) Q1] Find Number of Tokens and Lexems in the above code snippet Q2 ] *** -> counted as 1 token or 3 tokens ? why it is so Q3 ] ... single token or separate token Q4 ] If the Question would have been count the number of unique lexemes and tokens what would have been the answer ?
// comment printf("string %d ",++i++&&&i *a); return(x?y:z)Q1] Find Number of Tokens and Lexems in the above code snippetQ2 ] * - counted as 1 token or 3 tokens ? wh...
12.6k
views
answered
Oct 25, 2016
Compiler Design
compiler-design
compiler-tokenization
+
–
2
votes
87
GATE Overflow | Programming | Test 1 | Question: 15
Which of the following statements produce a compile time error in C? int a = sizeof 3; *(1000) = 5; int a = 5; ((int)a)++; int b = 5, *a = &b; ((int*)a)++; 1, 2 and 3 2 only 2, 3 and 4 All 4
Which of the following statements produce a compile time error in C?int a = sizeof 3;*(1000) = 5;int a = 5; ((int)a)++;int b = 5, *a = &b; ((int*)a)++;1, 2 and 32 only2, ...
2.2k
views
answered
Oct 23, 2016
Programming in C
go-programming-1
programming
programming-in-c
+
–
7
votes
88
GATE Overflow | Programming | Test 1 | Question: 5
Consider the following usage of variable a where b is an appropriate pointer variable. int * b = &a; Which of the following declarations is invalid for a? auto int a; register int a; static int a; const int a; 1 and 2 4 only 2 only 2 and 4
Consider the following usage of variable a where b is an appropriate pointer variable.int * b = &a;Which of the following declarations is invalid for a?auto int a;registe...
1.7k
views
answered
Oct 23, 2016
Programming in C
go-programming-1
programming
programming-in-c
+
–
3
votes
89
self_doubt
when we do double "signal(S)" operation on a Binary semaphore'S' provided initial value of S=0, will the value of 'S' be 2 or it remains 1?
when we do double "signal(S)" operation on a Binary semaphore'S' provided initial value of S=0, will the value of 'S' be 2 or it remains 1?
336
views
answered
Oct 23, 2016
6
votes
90
Context free language
Is the language $L=\left \{ (0^{n}1^{n})^{*} |n\geq 0 \right \}$ is DCFL ?
Is the language $L=\left \{ (0^{n}1^{n})^{*} |n\geq 0 \right \}$ is DCFL ?
1.1k
views
answered
Oct 22, 2016
Theory of Computation
context-free-language
identify-class-language
dcfl
+
–
4
votes
91
GATE Overflow | Data Structures | Test 1 | Question: 1
The following C function takes a singly-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers 1,2,3,4,5,6,7 in the given order. What will be the contents of the list after the function completes ... 2,1,3,4,5,6,7 2,1,4,3,6,5,7 1,3,2,5,4,7,6 2,3,4,5,6,7,1
The following C function takes a singly-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing th...
552
views
answered
Oct 21, 2016
DS
go-ds-1
data-structures
linked-list
+
–
6
votes
92
TCP-Congestion Control
1.4k
views
answered
Oct 21, 2016
9
votes
93
Pipeline Efficiency
Will it be 6 or 7?
Will it be 6 or 7?
4.3k
views
answered
Oct 21, 2016
CO and Architecture
pipelining
co-and-architecture
+
–
6
votes
94
Basic doubt in B+ Tree Indexing
Q : One basic doubt that is coming to my mind is whether number of splits in the process of insertion in B+ Tree indexing going to change if we consider left biasing and right biasing approach.Plz present any example to show if possible..
Q : One basic doubt that is coming to my mind is whether number of splits in the process of insertion in B+ Tree indexing going to change if we consider left biasing and ...
1.1k
views
answered
Oct 19, 2016
Databases
databases
b-tree
indexing
+
–
3
votes
95
Memory
This is physically addressed so We have to search in TLB first but my question is if it is a HIT in TLB why do we need to search in Cache It should be only TLB(hit)*{Tlb access time + memory access time} and if there is miss in TLB then we look in the cache and Secondary meory Am I correct or Something is missing???
This is physically addressed so We have to search in TLB first but my question is if it is a HIT in TLB why do we need to search in Cache It should be only TLB(hit)...
529
views
answered
Oct 19, 2016
CO and Architecture
memory-management
co-and-architecture
+
–
9
votes
96
Operating System
Difference between with clear example Hadrware Interrupt, External Interrupt Software Interrupt, Internal Interrupt
Difference between with clear exampleHadrware Interrupt, External InterruptSoftware Interrupt, Internal Interrupt
1.3k
views
answered
Oct 19, 2016
Operating System
interrupts
+
–
16
votes
97
Operating System
Consider a paging system which stores its two-level page table in memory and its 16 most recently referenced entries in a TLB. If, a memory access takes 80 nsec, a TLB lookup takes 20 nsec and a page swap time takes 5000 nsec, how long does a data item take to access if the TLB hit rate is 95% and the page fault rate is 10% ?
Consider a paging system which stores its two-level page table in memory and its 16 most recently referenced entries in a TLB. If, a memory access takes 80 nsec, a TLB lo...
3.8k
views
answered
Oct 17, 2016
Operating System
operating-system
+
–
6
votes
98
Doubt in some basic things synchronisation
I have some fundamental doubts regarding the conditions which need to be followed for a correct synchronisation solution i.e. about mutual exclusion , progress and bounded wait. I m asking these. Plz address to these doubts but give a ... for the fact whether the bounded wait condition is satisfied or not? Also plz support your answer with proper reason..
I have some fundamental doubts regarding the conditions which need to be followed for a correct synchronisation solution i.e. about mutual exclusion , progress and bounde...
1.3k
views
answered
Oct 14, 2016
Operating System
operating-system
process-synchronization
+
–
1
votes
99
GATE Overflow | Data Structures | Test 1 | Question: 29
Which of the following is false? Arrays are better than linked lists for sorting due to better data locality. Asymptotic time complxity for FindMax is same on an unsorted array as that on a singly linked list. A doubly linked list ... as of a singly linked list. Given a fixed maximum size, a circular queue is preferrable to a normal queue
Which of the following is false?Arrays are better than linked lists for sorting due to better data locality.Asymptotic time complxity for FindMax is same on an unsorted a...
884
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
array
queue
+
–
1
votes
100
GATE Overflow | Data Structures | Test 1 | Question: 6
In an administrative office it is required to keep track of the application requests. An applicant can push his application forward by paying extra money. What would be an appropraite datastructure for storing the applications? Stack Queue Linked Lists Priority Queue
In an administrative office it is required to keep track of the application requests. An applicant can push his application forward by paying extra money. What would be a...
386
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
+
–
3
votes
101
GATE Overflow | Data Structures | Test 1 | Question: 10
With 5 distinct nodes, the maximum no. of binary trees that can be formed is _____
With 5 distinct nodes, the maximum no. of binary trees that can be formed is _____
829
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
binary-tree
numerical-answers
+
–
4
votes
102
GATE Overflow | Data Structures | Test 1 | Question: 19
What is the chromatic number of the following graph?
What is the chromatic number of the following graph?
504
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
graph-theory
graph-coloring
numerical-answers
+
–
2
votes
103
GATE Overflow | Data Structures | Test 1 | Question: 21
A vertex having no incident edge is called --------- pendent vertex end vertex isolated vertex none of these
A vertex having no incident edge is called -pendent vertex end vertexisolated vertex none of these
611
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
graph-theory
+
–
6
votes
104
GATE Overflow | Data Structures | Test 1 | Question: 24
You are given a linked list, $L$ of $n$ integers, and another linked list, $P$, of $k$ integers where $k <<< n$. $L$ is sorted in ascending order but $P$ is not necessarily sorted. The operation $\text{print_lots}(L,P)$ will ... space is available) ______________ ? $\Theta(n)$ $\Theta(n \log k)$ $\Theta(n k)$ $\Theta (n k\log k)$
You are given a linked list, $L$ of $n$ integers, and another linked list, $P$, of $k$ integers where $k <<< n$. $L$ is sorted in ascending order but $P$ is not necessari...
1.0k
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
linked-list
+
–
5
votes
105
GATE Overflow | Data Structures | Test 1 | Question: 20
Consider a complete graph on 10 vertices. Minimum no. of edge removals required to make a tree out of it will be ____
Consider a complete graph on 10 vertices. Minimum no. of edge removals required to make a tree out of it will be ____
624
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
tree
numerical-answers
+
–
2
votes
106
GATE Overflow | Data Structures | Test 1 | Question: 18
The maximum number of possible edges in an undirected simple graph with $100$ vertices and $5$ components is ___
The maximum number of possible edges in an undirected simple graph with $100$ vertices and $5$ components is ___
523
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
graph-theory
connected-components
numerical-answers
+
–
7
votes
107
GATE Overflow | Data Structures | Test 1 | Question: 27
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______
667
views
answered
Oct 13, 2016
DS
go-ds-1
data-structures
graph-theory
numerical-answers
+
–
5
votes
108
GATE Overflow | Algorithms | Test 1 | Question: 28
Match the following i. Dijkstra's Algorithm a. All pairs shortest path ii. Bellman Ford Algorithm b. Greedy iii. Floyd-Warshall Algorithm c. Reweighting iv. Johnson Algorithm d. Single source shortest path i - c, ii - d, iii - a, iv - b i - d, ii - a, iii - c, iv - b i - b, ii - d, iii - a, iv - c i - d, ii - b, iii - a, iv - c
Match the following i.Dijkstra's Algorithma.All pairs shortest pathii.Bellman Ford Algorithmb.Greedyiii.Floyd-Warshall Algorithmc.Reweightingiv.Johnson Algorithmd.Single ...
460
views
answered
Oct 12, 2016
Algorithms
go-alogrithms-1
algorithms
graph-algorithms
+
–
6
votes
109
GATE Overflow | Algorithms | Test 1 | Question: 19
Is an array that is sorted in decreasing order a max-heap? always yes always no sometimes only yes but not in presence of duplicates
Is an array that is sorted in decreasing order a max-heap?always yesalways nosometimes onlyyes but not in presence of duplicates
643
views
answered
Oct 12, 2016
Algorithms
go-alogrithms-1
algorithms
sorting
heap-sort
+
–
6
votes
110
GATE Overflow | Algorithms | Test 1 | Question: 8
Is the following implementation of hashCode() legal assming a hashtable of size 20? public int hashCode(x) { return 17; } yes no because it fills only one slot no because it does not ensure uniform filling no because the hashcode is independent of the key
Is the following implementation of hashCode() legal assming a hashtable of size 20?public int hashCode(x) { return 17; }yesno because it fills only one slotno because it ...
703
views
answered
Oct 12, 2016
Algorithms
go-alogrithms-1
algorithms
hashing
+
–
Page:
« prev
1
2
3
4
5
6
7
8
...
11
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register