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 mohitbawankar
0
answers
1
resource allocation IMP doubt
Consider a scenario where 3 processes P1, P2 and P3 are sharing resources of the same type. The maximum need of the three processes is 4, 8, 6. It is also known that the maximum combined need of both processes P1 and P2 at a time is 9 and they ... diff diff q same concept they just reduce 1 from combined at last : :) 13 is 100% right for deadlock never arise ?????
Consider a scenario where 3 processes P1, P2 and P3 are sharing resources of the same type. The maximum need of the three processes is 4, 8, 6. It is also known that the...
375
views
asked
Jan 23, 2018
1
answer
2
PAGE FAULTS
Consider a binary search algorithm to search an element in array of ‘n’ numbers. Assume that this array spans over multiple pages with each page holding ‘p’ elements (n>p). Every memory access will generate a page fault until the search range is less than ‘p’. The minimum value of ‘p’ that reduces the page fault is
Consider a binary search algorithm to search an element in array of ‘n’ numbers. Assume that this array spans over multiple pages with each page holding ‘p’ eleme...
522
views
answered
Jan 22, 2018
2
answers
3
doubt
Consider a simple system running a single process. The size of physical frames and logical pages is 16 bytes. The RAM can hold 3 physical frames. The virtual addresses of the process are 6 bits in size. The program generates the following 20 virtual ... map to any logical page. Calculate the number of page faults genrated by the accesses above, assuming a LRU page replacement algorithm
Consider a simple system running a single process. The size of physical frames and logical pages is 16 bytes. The RAM can hold 3 physical frames. The virtual addresses of...
3.1k
views
answered
Jan 22, 2018
0
answers
4
PROGRAMMING
What is the output of following program? #include<stdio.h> void main() { int i=5; printf("%d %d %d %d %d \n", i, i++, i--, ++i, --i); }
What is the output of following program?#include<stdio.h>void main(){ int i=5; printf("%d %d %d %d %d \n", i, i++, i , ++i, i);}
237
views
asked
Jan 22, 2018
0
answers
5
CN DOUBT
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the relevant fields in the header of the third IP fragment generated by the router for this ... this mistake which i used ? ceil(data size without header/MTU with header ) this is right way of finding number of fragment? right?
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the rel...
299
views
asked
Jan 22, 2018
0
answers
6
doubt regarding BARC Registarion
if i select both ,and if i want to go trough only GATE score ..then its mandatory online test conduct by BARC?
if i select both ,and if i want to go trough only GATE score ..then its mandatory online test conduct by BARC?
319
views
asked
Jan 21, 2018
2
answers
7
Output Under Dynamic Scoping
#include<stdio.h> int x=10; int main() { static int x=10; x+=f1()+f2()+f3()+f1(); printf("%d",x); return 0; } int f1(){static int x=25;x++;return x;} int f2(){int x=50;x++;return x;} int f3(){x*=10;return x;} What is the output of the above code, if dynamic scoping is used.
#include<stdio.h int x=10; int main() { static int x=10; x+=f1()+f2()+f3()+f1(); printf("%d",x); return 0; } int f1(){static int x=25;x++;return x;} int f2(){int x=50;x++...
2.1k
views
commented
Jan 21, 2018
Programming in C
dynamic-scoping
programming
+
–
0
answers
8
file system IMP doubt
1.) A file system with 512 GB disk uses a file descriptor with 16 direct block addresses, 1 indirect block address, 1 doubly indirectly block address and 1 triple indirect block addresses. Size of each disk block is 256 bytes and the size of each disk block ... block addresses. The maximum size of a file on such a system is ___________ KB. // why ans is 2096KB ,not 80 KB
1.) A file system with 512 GB disk uses a file descriptor with 16 direct block addresses, 1 indirect block address, 1 doubly indirectly block address and 1 triple indirec...
340
views
asked
Jan 20, 2018
1
answer
9
duobt
please explain me this calculation part bold part In implicit form largest digit will be = 1.111...11∗21024=(2−211)∗21024 Second largest will be = 1.111...10∗21024=(2−210)∗21024 Hence sum will be (2−211)∗21024 + (2−210)∗21024 21025−21013+21025−21014=21026−21013(1+2)=21026−3∗21013
please explain me this calculation part bold partIn implicit form largest digit will be = 1.111...11∗21024=(2−211)∗21024Second largest will be = 1.111...10∗21024...
255
views
commented
Jan 19, 2018
0
answers
10
IEEE 754
In IEEE double precision format, the sum of the largest and 2nd largest implicit fractional numbers is
In IEEE double precision format, the sum of the largest and 2nd largest implicit fractional numbers is
938
views
commented
Jan 19, 2018
5
answers
11
GATE IT 2005 | Question: 81-b
A disk has $8$ equidistant tracks. The diameters of the innermost and outermost tracks are $1$ cm and $8$ cm respectively. The innermost track has a storage capacity of $10$ MB. If the disk has $20$ sectors per track and is currently at the end of the $5^{th}$ sector ... starting from the sector $4$ of the outer-most track? $13.5 \ ms$ $10 \ ms$ $9.5 \ ms$ $20 \ ms$
A disk has $8$ equidistant tracks. The diameters of the innermost and outermost tracks are $1$ cm and $8$ cm respectively. The innermost track has a storage capacity of $...
13.9k
views
commented
Jan 17, 2018
Operating System
gateit-2005
operating-system
disk
normal
+
–
0
answers
12
programming Q MOCK TEST
Consider the following program along with push and pop operations on stack which can contain atmost The decimal value equivalent to the binary number printed by above code is _______
Consider the following program along with push and pop operations on stack which can contain atmost The decimal value equivalent to the binary number printed by above cod...
568
views
commented
Jan 17, 2018
0
answers
13
The number of possibilities to place exactly one letter in its correct envelop ________.
Assume that there are 6 color letters L1, L2, L3, L4, L5 and L6 are to be placed in 6 same color envelop E1, E2, E3, E4, E5 and E6 (one letter for each envelop). The number of possibilities to place exactly one letter in its correct envelop ________.
Assume that there are 6 color letters L1, L2, L3, L4, L5 and L6 are to be placed in 6 same color envelop E1, E2, E3, E4, E5 and E6 (one letter for each envelop). The numb...
720
views
commented
Jan 17, 2018
Combinatory
combinatory
discrete-mathematics
engineering-mathematics
+
–
2
answers
14
MadeEasy Test Series 2018: Databases - Indexing
In a database file structure, the search key field is 9 bytes long, the block size is 1024 bytes, a record pointer is 7 bytes and a block pointer is 6 bytes. The largest possible order of a leaf node in a B+ tree implementing this file structure is ________. I am getting 63 as the answer, but in the solution, it's saying 64. Can anyone check?
In a database file structure, the search key field is 9 bytes long, the block size is 1024 bytes, a record pointer is 7 bytes and a block pointer is 6 bytes. The largest ...
1.7k
views
commented
Jan 17, 2018
Databases
databases
indexing
made-easy-test-series
madeeasy-testseries-2018
+
–
1
answer
15
Slop of Curve
please share your solution The maximum slope of the curve -x3+6x2+66x+666
please share your solution The maximum slope of the curve-x3+6x2+66x+666
455
views
commented
Jan 16, 2018
3
answers
16
multidimensional aaray
39 ) Suppose a multidimensional array is declared as m(2:8,-4:1,6:10). If the base address is 200 and there are 4 words per memory location, then the address of A[5,-1,8] by using row order is ______.
39 ) Suppose a multidimensional array is declared as m(2:8,-4:1,6:10). If the base address is 200 and there are 4 words per memory location, then the address of A[5,-1,8]...
15.3k
views
commented
Jan 15, 2018
1
answer
17
mock test programming
What will be the output of the following program, for k=8? #include<stdio.h> void main() { int i= 2, j=3, k; scanf("%d",&k); switch(k%2) { case 5<4:printf("k is even"); break; case 10>9: printf("k is odd") ... printf("end"); } } Doubt: 8%2=0 then which case it will print .? or directly it will print k is even bcs of mod=0
What will be the output of the following program, for k=8?#include<stdio.h void main() { int i= 2, j=3, k; scanf("%d",&k); switch(k%2) { case 5<4:printf("k is even"); bre...
538
views
asked
Jan 15, 2018
Programming in C
programming-in-c
+
–
1
answer
18
MOCK TEST compiler design
Consider the given below grammar S→ cAd A→ bA | aA | b If a recursive descent parser is used for string “cbababd” then number of back trackin worst case is:
Consider the given below grammarS→ cAdA→ bA | aA | bIf a recursive descent parser is used for string “cbababd” then number of back trackin worst case is:
1.6k
views
commented
Jan 15, 2018
Compiler Design
compiler-design
grammar
parsing
numerical-answers
test-series
+
–
1
answer
19
MOCK TEST DATA STRUCTURE
Consider a two-dimensional array with elements stored in the form of lower triangular matrix. The elements must be crossed to read A[4, 2] from the array A[–6, ..., + 8, –6,..., + 8] whose base address 1000 is ________. (Assume elements are stored in row major order)
Consider a two-dimensional array with elements stored in the form of lower triangular matrix. The elements must be crossed to read A[4, 2] from the array A[–6, ..., + 8...
776
views
commented
Jan 15, 2018
2
answers
20
mock gate COA
A nonpipelined processor operating at 1 MHz is converted into a synchronous pipelined processor with five stages requiring 3.5 μsec, 2.5 μsec, 3 μsec, 2.5 μsec and 3.5 μsec, respectively. The delay of the latches is 1 μsec. The speedup of the pipeline processor for a large number of ... ans is 3.33 speedup =(3.5+2.5+3+2.5+3.5)/4.5 =3.33 why my ans is wrong ? please explain
A nonpipelined processor operating at 1 MHz is converted into a synchronous pipelined processor with five stages requiring 3.5 μsec, 2.5 μsec, 3 μsec, 2.5 μsec and 3....
533
views
asked
Jan 14, 2018
1
answer
21
Mock DFS Q
Consider DFS over undirected graph with 4 vertices <A;B;C;D>. The discovery and finishing times of them in the order A to D are given. Select the option from following showing more than one connected components: 1) <(1,6), (2,5), (3,4), (8,10)> 2) <(6,7), (2,5), (3,4), (8,9)> 3) <(4,5), (2,8), (1,7), (3,6)> 4) <(7,8), (1,2), (5,6), (3,4)>
Consider DFS over undirected graph with 4 vertices <A;B;C;D>. The discovery and finishing times of them in the order A to D are given. Select the option from following sh...
511
views
commented
Jan 10, 2018
0
answers
22
MOCK TEST
Choose correct statements about Hasse diagram: (I) Maximal elements of this Hasse diagram are i, j. (II) Minimum element of this Hasse diagram are a, b, d. (III) Maximal elements of this Hasse diagram are b, d, i, j. (IV) Minimal element of this Hasse diagram is a. (V) Minimum element of this diagram is a.
Choose correct statements about Hasse diagram:(I) Maximal elements of this Hasse diagram are i, j.(II) Minimum element of this Hasse diagram are a, b, d.(III) Maximal ele...
481
views
comment edited
Jan 10, 2018
0
answers
23
mock test
#include<stdio.h> main ( ) { int new ( ); new ( ); (*new) ( ); } int new ( ) { printf (“Welcome”); } } prints Welcome Welcome prints Welcome results in a run-time error results in a compilation error
#include<stdio.h>main ( ){ int new ( ); new ( ); (*new) ( );}int new ( ){ printf (“Welcome”);}} prints Welcome Welcome prints Welcome results in a run-...
669
views
commented
Jan 10, 2018
0
answers
24
Mock test
The number of ways possible to form injective function from set A to set B, where set ‘A’ has 3 elements, set ‘B’ has 5 elements such that i^th element of set A should not be matched with i^th element of set B
The number of ways possible to form injective function from set A to set B, where set ‘A’ has 3 elements, set ‘B’ has 5 elements such that i^th element of set A s...
615
views
commented
Jan 10, 2018
0
answers
25
MOCK TEST
Consider an L1 cache, L2 cache, and main memory. The hit rates and hit times for each are: 70% hit rate, 5 ns hit time for L1. 90% hit rate, 14 ns hit time for L2. 100% hit rate, 150 ns hit time for main memory If there a total of 300 memory accesses, how many of these accesses are serviced from main memory?
Consider an L1 cache, L2 cache, and main memory. The hit rates and hit times for each are:70% hit rate, 5 ns hit time for L1.90% hit rate, 14 ns hit time for L2.100% hit ...
791
views
commented
Jan 9, 2018
1
answer
26
Test series
As we know that, PDA=Finite Automata + one Stack. Assume a modified PDA M1 in which, in place of stack if we use counter (where counter is able to count the number of occurrences of terminals in input string), i.e., PDA M1 = Finite Automata + one counter. Consider the given below languages: L1={an bn |n>0} L2={wwr| w ϵ {a,b}*} L3= {w | na(w) = nb(w)} Which language can M1 recognize?
As we know that, PDA=Finite Automata + one Stack. Assume a modified PDA M1 in which, in place of stack if we use counter (where counter is able to count the number of occ...
721
views
commented
Jan 9, 2018
1
answer
27
Digital test question about shift register.
2.6k
views
commented
Jan 7, 2018
2
answers
28
shift register
A 8-bit left-shift register and a D-flip flop are connected together as shown in the figure below and they are synchronized with the same clock. If the D-flip-flop is initially cleared, then the circuit will act as It will work like b7xor 0 b6 xorb5 b4 xorb3 b2xorb1 ??????? please give explain
A 8-bit left-shift register and a D-flip flop are connected together as shown in the figure below and they are synchronized with the same clock.If the D-flip-flop is init...
3.3k
views
asked
Jan 7, 2018
1
answer
29
DB lossless join and dependency preserving decomposition
Consider the following relational schema R(ABCDEFG) with FD set {AB → C, BC → A, AC → B, B → D, D → E}. The minimum relations required to decompose R into BCNF which satisfy lossless join and dependency preserving decomposition are ________.
Consider the following relational schema R(ABCDEFG) with FD set {AB → C, BC → A, AC → B, B → D, D → E}. The minimum relations required to decompose R into BCNF ...
4.3k
views
asked
Jan 7, 2018
4
answers
30
merge sort
1.2k
views
answered
Jan 6, 2018
Programming in C
merge-sort
algorithms
sorting
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register