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 AskHerOut
1
answer
1
IIT Kanpur
8. If India is a stronger team than Australia then India will lose the cricket series. Which of the following is logically equivalent: A. If India lose the cricket series then India is a stronger team than Australia, B. If India is weaker team than ... Australia or India will lose the cricket series, D. India is a stronger team than Australia or India will win the cricket series
8. If India is a stronger team than Australia then India will lose the cricket series. Which of the following is logically equivalent: A. If India lose the cricket series...
271
views
commented
Apr 13, 2018
1
answer
2
IIT Kanpur
7. Which of the following statements are known to be true. A. P is a subset of NP. B. NP is a subset of P. C. P is not a subset of NP. D. NP is not a subset of P.
7. Which of the following statements are known to be true. A. P is a subset of NP. B. NP is a subset of P. C. P is not a subset of NP. D. NP is not a subset of P.
5.5k
views
commented
Apr 13, 2018
1
answer
3
IIT Kanpur
5. Which of the following is correct for a finite group? A. The order of an element is always equal to the order of the group. B. The order of an element is always less or equal to the order of the group. C. The order of an element divides the order of the group. D. None of the above
5. Which of the following is correct for a finite group? A. The order of an element is always equal to the order of the group. B. The order of an element is always ...
277
views
commented
Apr 13, 2018
1
answer
4
IIT Kanpur Sample
3. Let α, β, γ be roots of equation x^3 + 3x^2 + 2x + 12. Then α^2 + β^2 + γ^2 is equal to .
3. Let α, β, γ be roots of equation x^3 + 3x^2 + 2x + 12. Then α^2 + β^2 + γ^2 is equal to .
159
views
answered
Apr 13, 2018
0
answers
5
Self Doubt
This code executes successfully int main() { char str[20]; gets(str); puts(str); return 0; } whereas the below code gives runtime error int main() { char *str; gets(str); puts(str); return 0; } why so?
This code executes successfullyint main() {char str[20];gets(str);puts(str);return 0;}whereas the below code gives runtime errorint main() {char *str;gets(str);puts(str);...
433
views
commented
Apr 7, 2018
1
answer
6
Stack and queue
Hi please verify me We can implement a stack using only one queue. Like first insert into queue and for popping a element from stack dequeue n-1 element from queue and enque into queue and then pop last element and do the same each time......try it and verify that I am right or wrong?
Hi please verify meWe can implement a stack using only one queue.Like first insert into queue and for popping a element from stack dequeue n-1 element from queue and enqu...
1.1k
views
commented
Apr 7, 2018
Programming in C
data-structures
queue
stack
+
–
3
answers
7
GATE CSE 2001 | Question: 19
Two concurrent processes $P1$ and $P2$ want to use resources $R1$ and $R2$ in a mutually exclusive manner. Initially, $R1$ and $R2$ ... . Exchange the statements $Q1$ and $Q3$ and statements $Q2$ and $Q4$. Is mutual exclusion guaranteed now? Can deadlock occur?
Two concurrent processes $P1$ and $P2$ want to use resources $R1$ and $R2$ in a mutually exclusive manner. Initially, $R1$ and $R2$ are free. The programs executed by the...
5.6k
views
commented
Jan 11, 2018
Operating System
gatecse-2001
operating-system
resource-allocation
normal
descriptive
+
–
6
answers
8
GATE IT 2006 | Question: 56
For each of the four processes $P_1, P_2, P_3,$ and $P_4$. The total size in kilobytes $(KB)$ ... $\text{S < P < T}$ $\text{S < T < P}$ $\text{T < S < P}$
For each of the four processes $P_1, P_2, P_3,$ and $P_4$. The total size in kilobytes $(KB)$ and the number of segments are given below.$$\small \begin{array}{|c|c|c|}\h...
29.2k
views
commented
Jan 10, 2018
Operating System
gateit-2006
operating-system
memory-management
difficult
+
–
1
answer
9
Number of WAR
Number of WAR dependencies possible R1 <- R3 + R2 R3 <- R3 + R5 R3 <- R2 + R3 Is it 2 or 3?
Number of WAR dependencies possibleR1 <- R3 + R2R3 <- R3 + R5R3 <- R2 + R3Is it 2 or 3?
599
views
commented
Dec 22, 2017
CO and Architecture
data-dependency
+
–
2
answers
10
pipeline_hazard
no of RAW,WAR and WAW ?
no of RAW,WAR and WAW ?
10.3k
views
commented
Dec 22, 2017
CO and Architecture
co-and-architecture
data-hazards
data-dependency
+
–
0
answers
11
#Instruction-pipeline Data hazard between two consecutive memory access instruction
Although the following instructions do not make much sense but if such case occurs, is data forwarding from MA of I1 to MA of I2 allowed? Or will it result in some stall? Please add some reference, I couldn't find any yet. I1: Load A //A<-Mem[address] I2: Store Adress2, A // Mem[Address2] <- A
Although the following instructions do not make much sense but if such case occurs, is data forwarding from MA of I1 to MA of I2 allowed? Or will it result in some stall?...
475
views
asked
Dec 22, 2017
CO and Architecture
co-and-architecture
pipelining
data-hazards
+
–
1
answer
12
Self doubt (natural number)
Natural numbers begin from 0 or 1?... now according to modern maths do we consider set of positive integers as natural numbers {0,1,2...}? ""Some definitions, including the standard ISO 80000-2,[1] begin the natural ... numbers, but in other writings, that term is used instead for the integers (including negative integers).""(SOURCE:WIKIPEDIA)
Natural numbers begin from 0 or 1?... now according to modern maths do we consider set of positive integers as natural numbers {0,1,2...}?""Some definitions, including th...
454
views
commented
Dec 16, 2017
Set Theory & Algebra
engineering-mathematics
discrete-mathematics
+
–
2
answers
13
Doubt
for all the above questions answer the following : a ) how many minimum relation tables are required which satisfy 1NF b) how many minimum relation tables are required which satisfy 3NF c) how many minimum relation tables are required which satisfy BCNF d) minimum tables required Note: please provide detailed answer
for all the above questions answer the following :a ) how many minimum relation tables are required which satisfy 1NFb) how many minimum relation tables are required whic...
2.6k
views
commented
Dec 10, 2017
Databases
databases
+
–
1
answer
14
normal forms
Q)Which of the following is false?? 1)Relation R in BCNF with atleast one simple candidate key is also in 4NF 2)Relation R in BCNF with all candidate key simple is also in 4NF 3)Relation R in 3NF with only one compound candidate key is also in BCNF 4)Relation R in 3NF with atleast one simple candidate key is also in 4NF Explain with example....
Q)Which of the following is false??1)Relation R in BCNF with atleast one simple candidate key is also in 4NF2)Relation R in BCNF with all candidate key simple is also in ...
2.6k
views
commented
Dec 6, 2017
0
answers
15
What kind of For loop is this
for( i = n, j = 0; i > 0; i /= 2, j +=i ) Why There is no condition check for j here
for( i = n, j = 0; i 0; i /= 2, j +=i )Why There is no condition check for j here
393
views
commented
Nov 26, 2017
Algorithms
programming-in-c
programming-in-c
+
–
1
answer
16
internet
consider the following program main() { int a=5; int*b=&a; printf("%p",b);// .................LINE 1 printf("%d",b);//...................LINE 2 printf("%u",b);//...................LINE 3 } ... will always print correct address. C)only line 1 and 3 will always print correct address. D)all the lines i.e line 1 line 2 line 3 will always print correct address.
consider the following program main(){int a=5;int*b=&a;printf("%p",b);// .................LINE 1printf("%d",b);//...................LINE 2printf("%u",b);//.................
462
views
commented
Nov 23, 2017
Programming in C
programming-in-c
+
–
2
answers
17
What is difference between the following languages a*b*
What is difference between the following languages a*b* and ambn { where m <= n }
What is difference between the following languages a*b* and ambn { where m <= n }
479
views
answered
Nov 23, 2017
Theory of Computation
regular-expression
+
–
1
answer
18
Use of macro instead of function is recommended.
Use of macro instead of function is recommended. (a) when one wants to reduce the execution time (b) when there is a loop with a function call inside (c) when a function is called in many places in a program (d) In (a) and (b) above Can some one explain how option 'b' is true?
Use of macro instead of function is recommended.(a) when one wants to reduce the execution time(b) when there is a loop with a function call inside(c) when a function is ...
3.4k
views
answered
Nov 6, 2017
Programming in C
programming-in-c
macros
functions
+
–
1
answer
19
Doubt
#include <stdio.h> #define A -B #define B -C #define C 5 int main(void) { printf("%d",A); return 0; } now my doubt here is, before compilaion i think macro will make printf part as, printf("%d",--5); which should give L-value ... ("%d",-(-5)); leading to no compiler error and giving answer as 5, but macro implicitly never put precedence braces() itself...
#include <stdio.h #define A -B #define B -C #define C 5 int main(void) { printf("%d",A); return 0; }now my doubt here is, before compilaion i think macro will make printf...
975
views
commented
Nov 5, 2017
Programming in C
macros
+
–
0
answers
20
Gateoverflow facebook group
Is there any difference between the execution of a+=2 and a=a+2 making the difference between various calls ?
Is there any difference between the execution of a+=2 and a=a+2 making the difference between various calls ?
411
views
commented
Oct 30, 2017
Compiler Design
compiler-design
+
–
1
answer
21
Online Test series
Ques: Can Round Robin algorithm be non-preemptive ? My answer: RR with largest Burst Time as Time Quantum is FCFS in nature and its non-preemptive Am I right ? Please corret me if am wrong.
Ques: Can Round Robin algorithm be non-preemptive ?My answer: RR with largest Burst Time as Time Quantum is FCFS in nature and its non-preemptiveAm I right ? Please corre...
455
views
commented
Oct 30, 2017
Operating System
round-robin-scheduling
+
–
1
answer
22
Doubt
Need some clarification regarding this answer Do comment please:
Need some clarification regarding this answer Do comment please:
772
views
commented
Oct 25, 2017
Programming in C
programming
+
–
0
answers
23
C doubt
void function ( char *a , char *b) { ++*a; *b++; } main () { int a=5, b=5; function (&a, &b); printf ("%d,%d",a,b); } Here a and b both are printing the value after execution of function code totally. Then ... that. Is preincrement and postincrement evaluate on line of printing? Why it is not print after increment of a and b both? Plz give brief description about this
void function ( char *a , char *b) { ++*a; *b++; } main () { int a=5, b=5; function (&a, &b); printf ("%d,%d",a,b); }Here a and b both are printing the value after execut...
704
views
commented
Oct 24, 2017
Programming in C
programming-in-c
+
–
1
answer
24
An undirected graph has an even number of vertices of odd degree.
What does it means ? An undirected graph has an even number of vertices of odd degree. But let a 4 vertex cycle graph if it not complete having even vertex and even degree each vertex .Is it rt?
What does it means ?An undirected graph has an even number of vertices of odd degree. But let a 4 vertex cycle graph if it not complete having even vertex and even degree...
6.9k
views
answered
Oct 24, 2017
Mathematical Logic
graph-theory
+
–
2
answers
25
C. interesting scenario.
Can you see why the output of the following code is 256? main () { int a=0x1ff; char *careful= &a; *careful = 0; printf("%d", a); }
Can you see why the output of the following code is 256?main () { int a=0x1ff; char *careful= &a; *careful = 0; printf("%d", a); }
515
views
answered
Oct 24, 2017
Programming in C
programming
programming-in-c
output
+
–
0
answers
26
C doubt
Inside a program loop if we write *ch1++ it will give "lvalue required" error but without any loop if we write even ++*ch1++; it will not give any lvalue error. Why?
Inside a program loopif we write*ch1++it will give "lvalue required" errorbut without any loop if we write even++*ch1++;it will not give any lvalue error. Why?
686
views
commented
Oct 24, 2017
Programming in C
programming-in-c
+
–
1
answer
27
database
What is the correct interpretion of this query
What is the correct interpretion of this query
437
views
commented
Oct 24, 2017
Databases
databases
+
–
1
answer
28
Self doubt
Design a dfa in which accepts all the strings in which every prefix the difference of 0 and 1 is not more than 2?
Design a dfa in which accepts all the strings in which every prefix the difference of 0 and 1 is not more than 2?
417
views
answer edited
Oct 22, 2017
Theory of Computation
theory-of-computation
+
–
1
answer
29
doubt
https://gateoverflow.in/30720/tifr2016-b-7 the above question is already discussed but still am not clear enuf can someone help
https://gateoverflow.in/30720/tifr2016-b-7the above question is already discussedbut still am not clear enufcan someone help
430
views
answered
Oct 22, 2017
Algorithms
asymptotic-notation
tifr2016
+
–
1
answer
30
DPDA: One Liners
1) Can a Deterministic PDA has two epsilon transition each reading different Stack symbol to perform a transition? 2) Can a transition be performed without reading Stack symbol at all. Like $ a, λ/ λ$?
1) Can a Deterministic PDA has two epsilon transition each reading different Stack symbol to perform a transition?2) Can a transition be performed without reading Stack s...
746
views
commented
Oct 22, 2017
Theory of Computation
theory-of-computation
pushdown-automata
dpda
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register