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 Ram Swaroop
1
answer
1
MadeEasy Test Series 2019: Programming & DS - Hashing
Consider the hashing table with 'm' slots and 'n' keys. If the expected number of probes in unsuccessful search is 3. The expected number of probes in a successful search is_ Answer 1.647
Consider the hashing table with 'm' slots and 'n' keys. If the expected number of probes in unsuccessful search is 3. The expected number of probes in a successful search...
1.4k
views
commented
Jun 21, 2020
DS
programming-in-c
data-structures
hashing
made-easy-test-series
+
–
6
answers
2
GATE IT 2006 | Question: 50
Which one of the choices given below would be printed when the following program is executed? #include <stdio.h> void swap (int *x, int *y) { static int *temp; temp = x; x = y; y = temp; } void printab () { static int i, a = -3, b = -6; i = 0; while (i <= 4) { if ((i++)%2 == 1 ... $a = 12, b = 9$ $a = 3, b = 6$ $a = 3, b = 6$ $a = 6, b = 3$ $a = 15, b = 12$
Which one of the choices given below would be printed when the following program is executed?#include <stdio.h void swap (int *x, int *y) { static int *temp; temp = x; x ...
25.8k
views
commented
Jun 9, 2020
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
8
answers
3
GATE2011 AG: GA-4
There are two candidates $P$ and $Q$ in an election. During the campaign, $40\%$ of the voters promised to vote for $P,$ and rest for $Q.$ However, on the day of election $15\%$ of the voters went back on their promise to vote for $P$ ... instead voted for $P.$ Suppose$,P$ lost by $2$ votes$,$ then what was the total number of voters? $100$ $110$ $90$ $95$
There are two candidates $P$ and $Q$ in an election. During the campaign, $40\%$ of the voters promised to vote for $P,$ and rest for $Q.$ However, on the day of election...
8.8k
views
commented
May 10, 2020
Quantitative Aptitude
general-aptitude
quantitative-aptitude
gate2011-ag
percentage
+
–
2
answers
4
Memory Management
Please Explain.
Please Explain.
846
views
commented
Apr 13, 2020
Operating System
operating-system
memory-management
paging
virtual-memory
+
–
0
answers
5
How to Prepare SOP for IIITH - PGEEE
How to prepare SOP (Statement Of Purpose ) ? What are the important points to be taken in mind while preparing SOP
How to prepare SOP (Statement Of Purpose ) ?What are the important points to be taken in mind while preparing SOP
1.7k
views
commented
Apr 3, 2020
IIITH-PGEE
preparation
iiith-pgee
+
–
4
answers
6
ISRO2011-16
Consider a direct mapped cache with $64$ blocks and a block size of $16$ bytes. To what block number does the byte address $1206$ map to does not map $6$ $11$ $54$
Consider a direct mapped cache with $64$ blocks and a block size of $16$ bytes. To what block number does the byte address $1206$ map todoes not map$6$$11$$54$
9.2k
views
commented
Mar 28, 2020
CO and Architecture
isro2011
co-and-architecture
cache-memory
+
–
2
answers
7
GATE CSE 2020 | Question: 23
Consider a double hashing scheme in which the primary hash function is $h_1(k)= k \text{ mod } 23$, and the secondary hash function is $h_2(k)=1+(k \text{ mod } 19)$. Assume that the table size is $23$. Then the address returned by probe $1$ in the probe sequence (assume that the probe sequence begins at probe $0$) for key value $k=90$ is_____________.
Consider a double hashing scheme in which the primary hash function is $h_1(k)= k \text{ mod } 23$, and the secondary hash function is $h_2(k)=1+(k \text{ mod } 19)$. Ass...
14.0k
views
commented
Mar 21, 2020
Algorithms
gatecse-2020
numerical-answers
algorithms
hashing
1-mark
+
–
0
answers
8
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 51 (Page No. 178)
In the dining philosophers problem, let the following protocol be used: An even-numbered philosopher always picks up his left fork before picking up his right fork; an odd-numbered philosopher always picks up his right fork before picking up his left fork. Will this protocol guarantee deadlock-free operation?
In the dining philosophers problem, let the following protocol be used: An even-numbered philosopher always picks up his left fork before picking up his right fork; an od...
547
views
commented
Mar 18, 2020
Operating System
tanenbaum
operating-system
process-and-threads
deadlock-prevention-avoidance-detection
descriptive
+
–
0
answers
9
operating system
Consider the following proposed solution to dining Philosopher's problem to avoid deadlock. Consider the binary semaphore lock is initialized to 1. Which of the following is correct? Removing (i) and (ii) will not affect the code. The code will still work fine. Removing (iii) ... work fine. All (i), (ii), (iii) and (iv) are necessary. Removal of any of them will affect the code.
Consider the following proposed solution to dining Philosopher’s problem to avoid deadlock. Consider the binary semaphore lock is initialized to 1.Which of the followin...
1.1k
views
commented
Mar 18, 2020
2
answers
10
#dining-philoshpers problem
3.2k
views
commented
Mar 18, 2020
1
answer
11
MadeEasy Test Series: Operating System - Process Synchronization
question :
question :
1.4k
views
commented
Mar 18, 2020
Operating System
made-easy-test-series
operating-system
process-synchronization
+
–
3
answers
12
UGC NET CSE | June 2019 | Part 2 | Question: 11
Which type of addressing mode, less number of memory references are required? Immediate Implied Register Indexed
Which type of addressing mode, less number of memory references are required?ImmediateImpliedRegisterIndexed
6.5k
views
answered
Mar 11, 2020
CO and Architecture
ugcnetcse-june2019-paper2
co-and-architecture
addressing-modes
+
–
4
answers
13
ISRO2020-1
The immediate addressing mode can be used for Loading internal registers with initial values Perform arithmetic or logical operation on data contained in instructions Which of the following is true? Only $1$ Only $2$ Both $1$ and $2$ Immediate mode refers to data in cache
The immediate addressing mode can be used forLoading internal registers with initial valuesPerform arithmetic or logical operation on data contained in instructionsWhich ...
4.1k
views
commented
Mar 11, 2020
CO and Architecture
isro-2020
co-and-architecture
normal
addressing-modes
+
–
5
answers
14
ISRO2020-15
A stack organized computer is characterised by instructions with indirect addressing direct addressing zero addressing index addressing
A stack organized computer is characterised by instructions withindirect addressingdirect addressingzero addressingindex addressing
4.4k
views
answered
Mar 11, 2020
CO and Architecture
isro-2020
co-and-architecture
addressing-modes
normal
+
–
3
answers
15
GATE CSE 2006 | Question: 62, ISRO2016-50
A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a translation look-aside buffer (TLB) which can hold a total of $128$ page table entries and is $4$-way set associative. The minimum size of the TLB tag is: $\text{11 bits}$ $\text{13 bits}$ $\text{15 bits}$ $\text{20 bits}$
A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a translation look-aside buffer (TLB) which can hold a total of $128$ page table en...
26.1k
views
commented
Mar 8, 2020
Operating System
gatecse-2006
operating-system
virtual-memory
normal
isro2016
+
–
6
answers
16
GATE CSE 2006 | Question: 63, UGCNET-June2012-III: 45
A computer system supports $32$-bit virtual addresses as well as $32$-bit physical addresses. Since the virtual address space is of the same size as the physical address space, the operating system designers decide to ... more efficient now Hardware support for memory management is no longer needed CPU scheduling can be made more efficient now
A computer system supports $32$-bit virtual addresses as well as $32$-bit physical addresses. Since the virtual address space is of the same size as the physical address ...
26.3k
views
commented
Mar 8, 2020
Operating System
gatecse-2006
operating-system
virtual-memory
normal
ugcnetcse-june2012-paper3
+
–
9
answers
17
GATE CSE 2020 | Question: 16
What is the worst case time complexity of inserting $n$ elements into an empty linked list, if the linked list needs to be maintained in sorted order? $\Theta(n)$ $\Theta(n \log n)$ $\Theta ( n)^{2}$ $\Theta(1)$
What is the worst case time complexity of inserting $n$ elements into an empty linked list, if the linked list needs to be maintained in sorted order?$\Theta(n)$$\Theta(n...
26.8k
views
commented
Feb 18, 2020
DS
gatecse-2020
linked-list
1-mark
+
–
2
answers
18
GATE CSE 2020 | Question: 19
A multiplexer is placed between a group of $32$ registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The number of select lines needed for the multiplexer is ______.
A multiplexer is placed between a group of $32$ registers and an accumulator to regulate data movement such that at any given point in time the content of only one regist...
6.8k
views
answered
Feb 12, 2020
Digital Logic
gatecse-2020
numerical-answers
digital-logic
multiplexer
1-mark
+
–
4
answers
19
GATE CSE 2020 | Question: 18
Let $G$ be a group of $35$ elements. Then the largest possible size of a subgroup of $G$ other than $G$ itself is _______.
Let $G$ be a group of $35$ elements. Then the largest possible size of a subgroup of $G$ other than $G$ itself is _______.
9.4k
views
answer edited
Feb 12, 2020
Set Theory & Algebra
gatecse-2020
numerical-answers
group-theory
easy
1-mark
+
–
3
answers
20
GATE CSE 2020 | Question: 14
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram? Diamonds with double/bold border Rectangles with double/bold border Ovals with double/bold border Ovals that contain underlined identifiers
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?Diamonds with double/bold bor...
13.3k
views
answer edited
Feb 12, 2020
Databases
gatecse-2020
databases
er-diagram
1-mark
+
–
3
answers
21
GATE CSE 2020 | Question: 13
Consider a relational database containing the following schemas. ... WHERE pno = P4' GROUP BY pno) ; The number of rows returned by the above SQL query is $4$ $5$ $0$ $2$
Consider a relational database containing the following schemas.$$\overset{\text{Catalogue}} {\begin{array}{|c|c|c|} \hline \underline{\text{sno}} & \underline{\text{pno}...
14.1k
views
commented
Feb 12, 2020
Databases
gatecse-2020
databases
sql
1-mark
+
–
4
answers
22
GATE CSE 2020 | Question: 9
Consider the following statements. Symbol table is accessed only during lexical analysis and syntax analysis. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. Errors violating the condition any ... the above statements is/are TRUE? I only I and III only Ⅱ only None of Ⅰ, Ⅱ and Ⅲ
Consider the following statements.Symbol table is accessed only during lexical analysis and syntax analysis.Compilers for programming languages that support recursion nec...
14.7k
views
commented
Feb 12, 2020
Compiler Design
gatecse-2020
compiler-design
compilation-phases
runtime-environment
1-mark
+
–
3
answers
23
GATE CSE 2020 | Question: 7
Which one of the following regular expressions represents the set of all binary strings with an odd number of $1’$s? $((0+1)^*1(0+1)^*1)^*10^*$ $(0^*10^*10^*)^*0^*1$ $10^*(0^*10^*10^*)^*$ $(0^*10^*10^*)^*10^*$
Which one of the following regular expressions represents the set of all binary strings with an odd number of $1’$s?$((0+1)^*1(0+1)^*1)^*10^*$$(0^*10^*10^*)^*0^*1$$10^*...
23.8k
views
commented
Feb 12, 2020
Theory of Computation
gatecse-2020
regular-expression
normal
theory-of-computation
1-mark
+
–
2
answers
24
GATE CSE 2020 | Question: GA-6
Goods and Services Tax (GST) is an indirect tax introduced in India in $2017$ that is imposed on the supply of goods and services, and it subsumes all indirect taxes except few. It is a destination-based tax imposed on goods and services used, ... indirect taxes. GST does not have a component specific to UT. GST is imposed at the point of usage of goods and services.
Goods and Services Tax (GST) is an indirect tax introduced in India in $2017$ that is imposed on the supply of goods and services, and it subsumes all indirect taxes exce...
3.3k
views
answered
Feb 12, 2020
Verbal Aptitude
gatecse-2020
verbal-aptitude
verbal-reasoning
passage-reading
2-marks
+
–
1
answer
25
GATE CSE 2020 | Question: GA-5
There are multiple routes to reach from node $1$ to node $2$, as shown in the network. The cost of travel on an edge between two nodes is given in rupees. Nodes $\text{ }a\text{'}, \text{ }b\text{'}, \text{ }c\text{'}, \text{ }d\text{'}, \text{ }e\text{'},$ ... toll booths. Which is the cheapest route from node $1$ to node $2$? $1-a-c-2$ $1-f-b-2$ $1-b-2$ $1-f-e-2$
There are multiple routes to reach from node $1$ to node $2$, as shown in the network.The cost of travel on an edge between two nodes is given in rupees. Nodes $\text{‘...
4.3k
views
commented
Feb 12, 2020
Quantitative Aptitude
gatecse-2020
quantitative-aptitude
graph-theory
1-mark
+
–
3
answers
26
GATE CSE 2020 | Question: GA-4
The dawn of the $21$st century witnessed the melting glaciers oscillating between giving too much and too little to billions of people who depend on them for fresh water. The UN climate report estimates that without deep cuts to man- ... billions of people. Billions of people are responsible for man-made emissions. Billions of people are affected by melting glaciers.
The dawn of the $21$st century witnessed the melting glaciers oscillating between giving too much and too little to billions of people who depend on them for fresh water....
3.7k
views
answered
Feb 12, 2020
Verbal Aptitude
gatecse-2020
verbal-aptitude
verbal-reasoning
passage-reading
1-mark
+
–
6
answers
27
GATE CSE 2020 | Question: GA-2
His knowledge of the subject was excellent but his classroom performance was_______. extremely poor good desirable praiseworthy
His knowledge of the subject was excellent but his classroom performance was_______.extremely poorgooddesirablepraiseworthy
5.9k
views
answered
Feb 12, 2020
Verbal Aptitude
gatecse-2020
verbal-aptitude
english-grammar
meaning
1-mark
+
–
3
answers
28
ISRO2020-36
What is the complexity of the following code? sum=0; for(i=1;i<=n;i*=2) for(j=1;j<=n;j++) sum++; Which of the following is not a valid string? $O(n^2)$ $O(n\log\ n)$ $O(n)$ $O(n\log\ n\log\ n)$
What is the complexity of the following code?sum=0; for(i=1;i<=n;i*=2) for(j=1;j<=n;j++) sum++;Which of the following is not a valid string?$O(n^2)$$O(n\log\ n)$$O(n)$$O(...
9.0k
views
commented
Feb 10, 2020
Algorithms
isro-2020
algorithms
time-complexity
normal
+
–
2
answers
29
Time Complexity
What is the complexity of the following code? i = n while (i>=1){ for j = 1 to n x=x +1 i = i/2 } $\Theta(n)$ $\Theta( \log_2 n)$ $\Theta( n/\log_2 n)$ $\Theta( n \log_2 n)$
What is the complexity of the following code? i = n while (i>=1){ for j = 1 to n x=x +1 i = i/2 }$\Theta(n)$$\Theta( \log_2 n)$$\Theta( n/\log_2 n)$$\Theta( n \log_2 n)$
2.0k
views
commented
Feb 10, 2020
Algorithms
time-complexity
+
–
7
answers
30
GATE CSE 2006 | Question: 17
An element in an array $X$ is called a leader if it is greater than all elements to the right of it in $X$. The best algorithm to find all leaders in an array solves it in linear time using a left to right pass of the array solves it in linear time using ... pass of the array solves it using divide and conquer in time $\Theta (n\log n)$ solves it in time $\Theta( n^2)$
An element in an array $X$ is called a leader if it is greater than all elements to the right of it in $X$. The best algorithm to find all leaders in an array solves it i...
18.1k
views
commented
Feb 10, 2020
Algorithms
gatecse-2006
algorithms
normal
algorithm-design
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register