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
Questions by smartmeet
0
votes
2
answers
1
Is there any difference between GO answer key and official answer key in both sets?
1.8k
views
asked
Feb 26, 2017
GATE
gate2017
+
–
2
votes
1
answer
2
Gatebook_Mocktest2(DS)
The intended purpose of this code is to precompute all the primes less than N. When it is finished executing, for r ∈ [2, N), bits[r] is supposed to equal 1 if and only if N is composite. Assume that the bits array is initialized to all zeroes. for ( int x = 2; x < N ... a natural number n < N is prime. (A) I only (B) I and II only (C) II and III only (D) I, II, and III
The intended purpose of this code is to precompute all the primes less than N. When it is finished executing, for r ∈ [2, N), bits[r] is supposed to equal 1 if and only...
515
views
asked
Feb 8, 2017
DS
gatebook-mt2
data-structures
space-complexity
time-complexity
asymptotic-notation
+
–
1
votes
0
answers
3
Gatebook_Mocktest2(DS)
Consider a data type whose elements are integers and whose operations are INSERT, DELETE, and FINDCLOSEST, with FINDCLOSEST(y) defined to be some element x in the current set such that|x-y| ≤ |xi-y| for all xi in the current set. Let where denotes the worst-case time ... to use in order to minimizeT? (A) A sorted list (B) An unordered list (C) An implicit heap (D) An AVL tree
Consider a data type whose elements are integers and whose operations are INSERT, DELETE, and FINDCLOSEST, with FINDCLOSEST(y) defined to be some element x in the curren...
363
views
asked
Feb 8, 2017
DS
gatebook-mt2
data-structures
avl-tree
+
–
0
votes
1
answer
4
Hashing
If h is any hashing function and is used to hash n keys into a table of size m, here n<=m, the expected number of collisions involving a particular key x is a) Less than 1 b) Less than n c) Less than m d) Less than n/2
If h is any hashing function and is used to hash n keys into a table of size m, here n<=m, the expected number of collisions involving a particular key x isa) Less than 1...
4.5k
views
asked
Feb 8, 2017
DS
hashing
data-structures
chaining
uniform-hashing
+
–
0
votes
3
answers
5
Data Structure In-Order Predecessor
If a node in a BST has two children, then its in-order predecessor has a) No left child b) No right child c) 2 children d) no child
If a node in a BST has two children, then its in-order predecessor hasa) No left childb) No right childc) 2 childrend) no child
7.0k
views
asked
Feb 8, 2017
DS
data-structures
tree
tree-traversal
+
–
0
votes
1
answer
6
GB Gatebook_Mocktest2(OS)
Which of the following statements is FALSE? (A) Each thread has own stack (B) Starvation implies deadlock (C) Smaller page size increases the page table size (D) User level process can not modify its own page table entries
Which of the following statements is FALSE?(A) Each thread has own stack(B) Starvation implies deadlock(C) Smaller page size increases the page table size(D) User level p...
524
views
asked
Feb 8, 2017
Operating System
gatebook-mt2
operating-system
+
–
0
votes
1
answer
7
Gatebook_MockTest2(Aptitude)
There are two examinations rooms A and B. If 10 students are sent from A to B, then the number of students in each room is the same. If 20 candidates are sent from B to A, then the number of students in A is double the number of students in B. The number of students in room A is: (A) 20 (B) 80 (C) 100 (D) 200
There are two examinations rooms A and B. If 10 students are sent from A to B, then the number of students in each room is the same. If 20 candidates are sent from B to A...
373
views
asked
Feb 8, 2017
Quantitative Aptitude
gatebook-mt2
+
–
3
votes
4
answers
8
Gatebook_Mocktest2(Operating Systems)
Process executes the following code for (i=0;i<5,i++) for (j=0;j<5,j++) fork(); The no of child processes created is ?
Process executes the following codefor (i=0;i<5,i++) for (j=0;j<5,j++) fork(); The no of child processes created is ?
1.0k
views
asked
Feb 7, 2017
Operating System
operating-system
fork-system-call
+
–
1
votes
2
answers
9
Gatebook_Mocktest2(Propositional Logic)
Which of the following conditions can be expressed by a Boolean formula in the Boolean variables p1,p2,p3,p4 and the connectives ∧ ∨, (without ¬ ) ? I. At least three of p1,p2,p3,p4 are true. II. Exactly three of p1,p2,p3,p4 are true. III. An even number ofp1,p2,p3,p4are true. (A) I only (B) II only (C) III only (D) I and III
Which of the following conditions can be expressed by a Boolean formula in the Boolean variables p1,p2,p3,p4 and the connectives ∧ ∨, (without ¬ ) ?I. At least three...
785
views
asked
Feb 7, 2017
Mathematical Logic
gatebook-mt2
mathematical-logic
propositional-logic
+
–
4
votes
1
answer
10
GateBook_MockTest2(Programming)
# include < stdio.h > main ( ) { float total 0.0, q = 1.0, p = 2.0; while (p/q> 0.001) { q = q + q ; total = total + p/q ; print f (“% f\n”, total) ; } } Which one of the following is the integer that best approximates the last number printed ? (A) 0 (B) 1 (C) 2 (D) 3
# include < stdio.h >main ( ){float total 0.0, q = 1.0, p = 2.0;while (p/q 0.001){q = q + q ;total = total + p/q ;print f (“% f\n”, total) ;}}Which one of the followi...
925
views
asked
Feb 7, 2017
Programming in C
programming-in-c
gatebook-mt2
+
–
5
votes
1
answer
11
GateBook Mock Test_2(Compilers)
Consider these three grammars. Which of the following statements is not true? (A) If w can be generated by G1, then it can be generated by G2. (B) If w can be generated by G2, then it can be generated by G3. (C) If w can be generated by G3, then it can be generated by G1. (D) If w can be generated by G2, then it can be generated by G1.
Consider these three grammars.Which of the following statements is not true?(A) If w can be generated by G1, then it can be generated by G2.(B) If w can be generated by G...
913
views
asked
Feb 7, 2017
Compiler Design
gatebook-mt2
compiler-design
grammar
gatebook-test-series
+
–
4
votes
3
answers
12
GateBook Mock Test_2(TOC)
Given TMs and L = {x/Every halts on input x } which of the following is true about L? (A) L is recursively enumerable but not recursive (B) L is Recursive but not Context free (C) L is Not Recursively Enumerable (D) L is regular
Given TMs and L = {x/Every halts on input x } which of the following is true about L?(A) L is recursively enumerable but not recursive(B) L is Recursive but not Context...
801
views
asked
Feb 7, 2017
Theory of Computation
gatebook-mt2
theory-of-computation
decidability
turing-machine
+
–
2
votes
1
answer
13
GateBook Mock Test_2(B-tree)
A B-tree of order m is a tree which satisfies the following properties: Every node has at most m children. Every node (except root) has at least ⌈m/2⌉ children maximium no of internal nodes an order 4 B tree can have with 20 keys.
A B-tree of order m is a tree which satisfies the following properties:Every node has at most m children.Every node (except root) has at least ⌈m/2⌉ children maximi...
921
views
asked
Feb 7, 2017
Databases
gatebook-mt2
data-structures
databases
b-tree
+
–
0
votes
0
answers
14
GateBook Mock Test_2(Algorithms)
The intended purpose of this code is to precompute all the primes less than N. When it is finished executing, for r ∈ [2, N), bits[r] is supposed to equal 1 if and only if N is composite. Assume that the bits array is initialized to all zeroes. for ( int x = 2; x ... number n < N is prime. (A) I only (B) I and II only (C) II and III only (D) I, II, and III
The intended purpose of this code is to precompute all the primes less than N. When it is finished executing, for r ∈ [2, N), bits[r] is supposed to equal 1 if and only...
474
views
asked
Feb 7, 2017
Algorithms
gatebook-mt2
data-structures
algorithms
space-complexity
time-complexity
+
–
0
votes
1
answer
15
GateBook Mock Test_2(Data Structure)
Consider a data type whose elements are integers and whose operations are INSERT, DELETE, and FINDCLOSEST, with FINDCLOSEST(y) defined to be some element x in the current set such that|x-y| ≤ |xi-y| for all xi in the current set. Let where denotes the ... use in order to minimizeT? (A) A sorted list (B) An unordered list (C) An implicit heap (D) An AVL tree
Consider a data type whose elements are integers and whose operations are INSERT, DELETE, and FINDCLOSEST, with FINDCLOSEST(y) defined to be some element x in the curren...
453
views
asked
Feb 7, 2017
DS
data-structures
avl-tree
gatebook-mt2
+
–
8
votes
5
answers
16
GateBook Mock-Test-2
Suppose datagrams are limited to 1,500 bytes (including header) between source Host A and destination Host B. Assuming a 20-byte IP header and a 20-byte TCP header, how many datagrams would be required to send an MP3 consisting of 4 million bytes?
Suppose datagrams are limited to 1,500 bytes (including header) between source Host A and destination Host B. Assuming a 20-byte IP header and a 20-byte TCP header, how m...
7.7k
views
asked
Feb 7, 2017
Computer Networks
computer-networks
gatebook-mt2
ip-packet
+
–
0
votes
1
answer
17
What is the value of ssthresh at the 24 th transmission round?
(A) 18 (B) 13 (C) 21 (D) 8
(A) 18 (B) 13 (C) 21 (D) 8
1.1k
views
asked
Feb 7, 2017
Computer Networks
thrashing
computer-networks
gatebook-mt2
+
–
0
votes
1
answer
18
OS-Common Doubt
In Priority scheduling algorithm, higher value of priority gets higher priority or lower value of priority gets higher priority? Means, Priorities: 1,2,3 for Processes-A,B,C Now, execution order will be A-B-C or C-B-A
In Priority scheduling algorithm, higher value of priority gets higher priority or lower value of priority gets higher priority? Means, Priorities: 1,2,3 for Processes-A...
299
views
asked
Feb 1, 2017
Operating System
operating-system
process-scheduling
priority
+
–
0
votes
1
answer
19
VirtualGate Test Series: Discrete Mathematics - Graph Theory
$G$ be a simple graph on $8$ vertices such that there is a vertices of degrees $1,2,3,4,5,6,7$ respectively, Then which of the following can be the degree of the last vertex$?$ $3$ $0$ $5$ $4$
$G$ be a simple graph on $8$ vertices such that there is a vertices of degrees $1,2,3,4,5,6,7$ respectively, Then which of the following can be the degree of the last ver...
512
views
asked
Jan 27, 2017
Graph Theory
discrete-mathematics
graph-theory
degree-of-vertices
virtual-gate-test-series
+
–
0
votes
1
answer
20
Lossless or Lossy (Explain with help of table drawing, if possible)
R(ABCDEG) and FD sets {AB->C, AC->B, AD->E, B->D, BC->A, E->G} D=( ABC, ACDE, ADG)
R(ABCDEG) and FD sets {AB->C, AC->B, AD->E, B->D, BC->A, E->G} D=( ABC, ACDE, ADG)
318
views
asked
Jan 27, 2017
Databases
databases
lossless-join
+
–
Page:
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register