Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Yash4444
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Yash4444
0
votes
1
#self doubtef
To undo the effects of a committed transaction the only way is a) rollback transaction b) abort transaction c) execute a compensating transaction d)None of these
To undo the effects of a committed transaction the only way is a) rollback transaction b) abort transactionc) execute a compensating transaction d)None of these
803
views
answered
May 3, 2021
0
votes
2
NIELIT 2018-36
______ is NOT a part of the ACID properties Inconsistency Consistency Atomicity Isolation
______ is NOT a part of the ACID propertiesInconsistencyConsistencyAtomicityIsolation
944
views
answered
May 3, 2021
Databases
nielit-2018
databases
transactions-and-concurrency-control
+
–
1
votes
3
GATE CSE 2021 Set 2 | Question: 42
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes spawns two threads $T_1$ and $T_2$: int x = 0; // global Lock L1; // global main () { create a ... the value of $y$ as $2.$ Both $T_1$ and $T_2$, in both the processes, will print the value of $y$ as $1.$
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes ...
10.1k
views
answered
May 3, 2021
Operating System
gatecse-2021-set2
multiple-selects
operating-system
threads
2-marks
+
–
1
votes
4
Linked list
What does the following program do on two linked lists? Struct node *myFun (struct node * a, struct node * b) { Struct node *new = NULL ; If (a = = NULL) return (b) ; if (b = = NULL) return (a) ; If (a → data <= ... two linked lists by selecting the alternate nodes merges two sorted linked lists into final sorted linked list merges two linked lists by selecting the nodes in reverse.
What does the following program do on two linked lists? Struct node *myFun (struct node * a, struct node * b) { Struct node *new = NULL ; If (a = = NULL) return (b) ;...
1.1k
views
answered
Apr 26, 2021
DS
linked-list
data-structures
programming-in-c
+
–
0
votes
5
Linked List Problem
struct node* foo(struct node* a, struct node* b) { struct node* result, *rec; if(a==null) return b; else if(b==null) return a; else { rec=foo(a->next,b->next); result=a; a->next=b; b->next=rec; return result; } }
struct node* foo(struct node* a, struct node* b){ struct node* result, *rec; if(a==null) return b; else if(b==null) return a; else { rec=foo(a->next,b->next...
635
views
answered
Apr 26, 2021
Programming in C
data-structures
linked-list
algorithms
+
–
0
votes
6
Testbook - Linked List
int find (struct node * first, int n) { while (first data ! = n) first = first — next; if (first data = = n) return(1); else return (-1); in the above code segment if the value of 'n' is 5, then the function return 1, but if the value of 'n' is 9, then what does it do ?
int find (struct node * first, int n) { while (first data ! = n) first = first — next; if (first data = = n) return(1); else return (-1); in the above code segment if ...
1.0k
views
answered
Apr 23, 2021
DS
linked-list
data-structures
+
–
0
votes
7
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 ...
3.9k
views
answered
Feb 4, 2021
CO and Architecture
isro-2020
co-and-architecture
normal
addressing-modes
+
–
0
votes
8
Computer organization
A system which has lot of crashes, data should be written to the disk using A. Write-through B. Wtite-back C. Both
A system which has lot of crashes, data should be written to the disk usingA. Write-throughB. Wtite-backC. Both
1.7k
views
answered
Jan 26, 2021
CO and Architecture
co-and-architecture
write-through
write-back
+
–
0
votes
9
ISI2015-DCG-53
Four squares of sides $x$ cm each are cut off from the four corners of a square metal sheet having side $100$ cm. The residual sheet is then folded into an open box which is then filled with a liquid costing Rs. $x^2$ with $cm^3$. The value of $x$ for which the cost of filling the box completely with the liquid is maximized, is $100$ $50$ $30$ $10$
Four squares of sides $x$ cm each are cut off from the four corners of a square metal sheet having side $100$ cm. The residual sheet is then folded into an open box which...
369
views
answered
Aug 20, 2020
Quantitative Aptitude
isi2015-dcg
quantitative-aptitude
geometry
squares
+
–
0
votes
10
Fragmentation
400
views
answered
Aug 17, 2020
0
votes
11
Fragmentation overhead
Suppose a 1500 Byte datagram were to be sent over a link with MTU size of 296. We define IP control overhead as the ratio of control information you add in the form of IP header(s) to the IP payload length. What is the IP ... 1500 Byte datagram? Express answer as a percentage. What is IP control overhead associated with all the fragments? Express overhead in percentage.
Suppose a 1500 Byte datagram were to be sent over a link with MTU size of 296. We define IP control overhead as the ratio of control information you add in the form of IP...
1.2k
views
answered
Aug 16, 2020
Computer Networks
computer-networks
fragmentation
+
–
4
votes
12
Andrew S. Tanenbaum Edition 5th Exercise 3 Question 15 (Page No. 253)
Suppose that a message 1001 1100 1010 0011 is transmitted using Internet Checksum (4-bit word). What is the value of the checksum?
Suppose that a message 1001 1100 1010 0011 is transmitted using Internet Checksum(4-bit word). What is the value of the checksum?
7.3k
views
answered
Aug 14, 2020
Computer Networks
computer-networks
data-link-layer
tanenbaum
error-detection
checksum
+
–
0
votes
13
While Loop
How many times does the while loop gets executed if the following function is called as $f(120,13)?$ f(m,n) { ans := 1 while (m - n >= 0) { ans := ans * 2 m := m - n } return(ans) }
How many times does the while loop gets executed if the following function is called as $f(120,13)?$ f(m,n) { ans := 1 while (m - n >= 0) { ans := ans * 2 m := m - n ...
417
views
answered
Jan 18, 2020
0
votes
14
PGEE 2018
let 5,8,11,14,17,20.. be series then 320 will be which term of this series A) 104 B) 106 C) 962 D) 87
let 5,8,11,14,17,20.. be series then 320 will be which term of this series A) 104B) 106C) 962D) 87
904
views
answered
Dec 26, 2019
Set Theory & Algebra
iiith-pgee
sequence-series
+
–
0
votes
15
ISI2018-DCG-27
$\sum_{n=1}^{\infty}\frac{1}{n(n+1)}$ is $2$ $1$ $\infty$ not a convergent series
$\sum_{n=1}^{\infty}\frac{1}{n(n+1)}$ is$2$$1$$\infty$not a convergent series
374
views
answered
Nov 19, 2019
Quantitative Aptitude
isi2018-dcg
quantitative-aptitude
sequence-series
summation
+
–
3
votes
16
ISI2018-DCG-14
In a room there are $8$ men, numbered $1,2, \dots ,8$. These men have to be divided into $4$ teams in such a way that every team has exactly $2$ ... of such $4$-team combinations is $\frac{8!}{2^4}$ $\frac{8!}{2^4(4!)}$ $\frac{8!}{4!}$ $\frac{8!}{(4!)^2}$
In a room there are $8$ men, numbered $1,2, \dots ,8$. These men have to be divided into $4$ teams in such a way thatevery team has exactly $2$ members, andthere are no ...
455
views
answered
Nov 19, 2019
Combinatory
isi2018-dcg
combinatory
+
–
2
votes
17
ISI2018-DCG-13
In a certain town, $20\%$ families own a car, $90\%$ own a phone, $5 \%$ own neither a car nor a phone and $30, 000$ families own both a car and a phone. Consider the following statements in this regard: $10 \%$ families own both a car and a phone. $95 \%$ ... (iii) are correct and (ii) is wrong. (ii) & (iii) are correct and (i) is wrong. (i), (ii) & (iii) are correct.
In a certain town, $20\%$ families own a car, $90\%$ own a phone, $5 \%$ own neither a car nor a phone and $30, 000$ families own both a car and a phone. Consider the fol...
546
views
answered
Nov 18, 2019
Quantitative Aptitude
isi2018-dcg
quantitative-aptitude
percentage
+
–
3
votes
18
ISI2017-DCG-23
A determinant is chosen at random from the set of all determinants of order $2$ with elements $0$ or $1$ only. The probability of choosing a non-zero determinant is $\frac{3}{16}$ $\frac{3}{8}$ $\frac{1}{4}$ none of these
A determinant is chosen at random from the set of all determinants of order $2$ with elements $0$ or $1$ only. The probability of choosing a non-zero determinant is$\frac...
619
views
answered
Nov 17, 2019
Calculus
isi2017-dcg
probability
determinant
+
–
3
votes
19
ISI2017-DCG-28
A basket contains some white and blue marbles. Two marbles are drawn randomly from the basket without replacement. The probability of selecting first a white and then a blue marble is $0.2$. The probability of selecting a white marble in the first draw is $0.5$. What is the ... blue marble in the second draw, given that the first marble drawn was white? $0.1$ $0.4$ $0.5$ $0.2$
A basket contains some white and blue marbles. Two marbles are drawn randomly from the basket without replacement. The probability of selecting first a white and then a b...
910
views
answered
Nov 17, 2019
Probability
isi2017-dcg
probability
balls-in-bins
+
–
0
votes
20
Homomorphism and Inverse homomorphism
Let L1 = { anb2n | n >= 1}, and h(p) = a , h(q) = aa. If L2 = h-1(L1) . What will be the language? Please explain the operation of homomorphism for understanding. I am unable to follow inverse homomorphism.
Let L1 = { anb2n | n >= 1}, and h(p) = a , h(q) = aa.If L2 = h-1(L1) . What will be the language?Please explain the operation of homomorphism for understanding. I am unab...
1.4k
views
answered
Oct 26, 2019
Theory of Computation
theory-of-computation
homomorphism
+
–
1
votes
21
UGC NET CSE | June 2019 | Part 1 | Question: 29
Identify the reasoning in the following argument : ‘Use of teaching aids in the classroom to enhance learning is important in a similar way as that of the use of ICT for production of knowledge’. Hypothetical Analogical Inductive Deductive
Identify the reasoning in the following argument :‘Use of teaching aids in the classroom to enhance learning is important in a similar way as that of the use of ICT for...
652
views
answered
Oct 17, 2019
Verbal Aptitude
ugcnetcse-june2019-paper1
general-aptitude
logical-reasoning
+
–
0
votes
22
TIFR CSE 2013 | Part B | Question: 2
Consider polynomials in a single variable $x$ of degree $d$. Suppose $d < n/2$. For such a polynomial $p(x)$, let $C_{p}$ denote the $n$-tuple $(P\left ( i \right ))_{1 \leq i \leq n}$. For any two such distinct polynomials $p, q,$ the number of ... $d$ At most $n - d$ Between $d$ and $n - d$ At least $n - d$ None of the above.
Consider polynomials in a single variable $x$ of degree $d$. Suppose $d < n/2$. For such a polynomial $p(x)$, let $C_{p}$ denote the $n$-tuple $(P\left ( i \right ))_{1 \...
632
views
answered
Sep 26, 2019
Quantitative Aptitude
tifr2013
polynomials
non-gate
+
–
0
votes
23
NIELIT SB_2018_8
A software engineer has the capability of thinking 200 lines of code in five minutes and can type 200 lines of code in 10 minutes. He takes a break for five minutes after every ten minutes. How many lines of code will he complete typing after an hour? (1) 200 (2) 300 (3) 400 (4) 500
A software engineer has the capability of thinking 200 lines of code in five minutes and can type 200 lines of code in 10 minutes. He takes a break for five minutes after...
1.7k
views
answered
Sep 10, 2019
0
votes
24
TIFR-2014-Maths-A-11
Let $A$ be an $n \times n$ matrix with real entries such that $A^{k}=0$ (0-matrix), for some $k \in \mathbb{N}$. Then $A$ has to be the $0$ matrix Trace$(A)$ could be non-zero $A$ is diagonalizable $0$ is the only eigenvalue of $A$
Let $A$ be an $n \times n$ matrix with real entries such that $A^{k}=0$ (0-matrix), for some $k \in \mathbb{N}$. Then$A$ has to be the $0$ matrix Trace$(A)$ could be non-...
430
views
answered
May 31, 2019
Linear Algebra
tifrmaths2014
linear-algebra
matrix
+
–
0
votes
25
Kenneth Rosen Edition 7 Exercise 1.4 Question 14 (Page No. 53)
Determine the truth value of each of these statements if the domain consists of all real numbers. $\exists x (x^3 = -1)$ $exists x (x^4 < x^2)$ $\forall x ((-x)^2 = x^2)$ $\forall x (2x >x)$
Determine the truth value of each of these statements if the domain consists of all real numbers.$\exists x (x^3 = -1)$$exists x (x^4 < x^2)$$\forall x ((-x)^2 = x^2)$$\f...
524
views
answered
Mar 27, 2019
Mathematical Logic
kenneth-rosen
discrete-mathematics
mathematical-logic
propositional-logic
+
–
1
votes
26
Conditional probability
Oscar has lost his dog in either forest A (with a priori probability 0.4) or in forest B (with a priori probability 0.6). On any given day, if the dog is in A and Oscar spends a day searching for it in A, the conditional probability that he will find the dog that day is 0.25. ... +(1/2)*0.15; but the answer given is=(0.5*0.4*0.25)+(0.5*0.6*0.15); what is wrong with my logic?
Oscar has lost his dog in either forest A (with a priori probability 0.4) or in forest B (with a priori probability 0.6). On any given day, if the dog is in A and Oscar s...
1.8k
views
answered
Mar 1, 2019
Probability
conditional-probability
+
–
0
votes
27
Cache mapping
A byte-addressable computer has a small data cache capable of holding eight 32 bit words each cache block consists of one 32 bit word. When a given program is executed the processor reads data sequentially from the following hex addresses :200,204,208,20C ... ,2F4 this pattern is repeated four times. Assume that cache is initially empty. If direct mapping is used compute the hit ratio
A byte-addressable computer has a small data cache capable of holding eight 32 bit words each cache block consists of one 32 bit word. When a given program is executed th...
2.0k
views
answered
Feb 16, 2019
0
votes
28
Ace Test Series 2019: CO & Architecture - Hard Disk
460
views
answered
Feb 14, 2019
CO and Architecture
ace-test-series
co-and-architecture
disk
+
–
0
votes
29
Number system
If N=.xyzxyzxyz……… N is a repeating non terminating decimal number then the natural number by which N can be multiplied so that the resultant is a natural number is a)495 b)1001 c)891 d)4995
If N=.xyzxyzxyz……… N is a repeating non terminating decimal number then the natural number by which N can be multiplied so that the resultant is a natural number i...
581
views
answered
Jan 24, 2019
Quantitative Aptitude
number-system
+
–
0
votes
30
RRB ALP
No. of ways to arrange the word letters “SEEDING” such that all vowel together Are? 340 360 720 780
No. of ways to arrange the word letters “SEEDING” such that all vowel together Are?340360720780
368
views
answered
Jan 24, 2019
Quantitative Aptitude
combinatory
and
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register