2 answers
1
2 answers
3
6 answers
4
3 answers
5
1 answer
6
2 answers
7
S: R1(x), W2(x), R2(x), R3(x), W3(x)If the above schedule S is conflict equal to S' then find S' ?a) R1(x), R3(x), W2(x), R2(x), W3(x)b) R1(x), R2(x), R3(x), W2(x), ...
4 answers
9
int i = 1; int main() { int a[]= { 0,1, 2} ; f(a[i], i); printf("%d", a[i]); } void f(int x, int y) { y++; x=5*i; }In above function f() uses " call by name" technique, w...
1 answer
10
void main() { int x=10, y=5; swap(x,y); print(x,y); } void swap(int a, int b) { int c, x=0; c=a; a=b; b=c; }what is output using call by text?a) 5 0b) 5 10c) 10 0d) ...
2 answers
12
0 answers
13
void strfind( char dest[], char src[] ){int i=0;while ((dest [i] = src[i]) != '\0')i++;printf("%s, %s", dest, src);}main(){ char A[] = {'g', 'a', 't', 'e', '\0' }; ...
1 answer
14
Consider the following C code:char A[20]; A="gate";Which of the following is correct?a) '\0' is automatically appended at the end of "gate".b) '\0' is not stored at the e...
2 answers
15
main() { int x, y= 100; float *P; P=&y; x=*P; printf("%d", x); }what is output?a) 100b) 1c) 0d) none
1 answer
16
main(){ int i= 1, j=2; j= j++ && i++ || i ; printf("%d, %d", i, j);}
1 answer
17
2 answers
18
1 answer
19
5 answers
21
The number of states required by a Finite State Machine,to simulate the behavior of a computer with a memory capable of storing 'm' words, each of length 'n' bits is?$m \...
1 answer
22
2 answers
23
A pair of dice is rolled again and again till a total of 5 or 7 is obtained. The chance that a total of 5 comes before a total of 7 is??
1 answer
25
$L= \{a^nb : n \geq 0\} \cup \{b^na : n \geq 1\}$