If we convert the above diagram into the relational model, then which of the following is/are valid the attributes set for the relations? [MSQ]
S1: All strict schedules are cascadeless
S2: All cascadeless schedules are recoverable
Number of rows returned by the expression RS is _____
R(H,I,J,K,L,M,N,O)
H,I->J,K,L
J->M
K->N
L->O
A → BC
CD → E
B → D
E → A.
Which of the following is a canonical cover for R?
Which of the following is CORRECT about the decomposition?
S:R1(X), R2(Y), R3(Y), W2(Y), W1(X), W3(X), R2(X), W2(X)
Which of the following are not correct serialization of the aforementioned schedule?
The X data structure is:
#include<stdio.h>
struct Fraction
{
int num;
int denom;
};
void main()
{
struct Fraction f1;
struct Fraction *fPtr;
fPtr = &f1;
f1.num = 3;
fPtr.num = 10;
printf("%d", f1.num);
}
char *(*(* a[N]) ( )) ( );
void abc(char *s)
{
if(s[0]=='\0')return;
abc(s+1);
abc(s+1);
printf("%c",s[0]);
}
int main()
{
abc("123");
}
What will be the output of the above code?
The value of the following postfix expression after evaluation will be ______?
32 4 / 2 * 12 3 - +
#include<stdio.h>
void main()
{
int a,b;
b=2;
for(a=1;a<6;a++)
{
a=a+2;
b=b+a-2;
}
printf("%d\n",b);
}
A and B are storing head pointers of two lists. Using these given information which among the following operations can be performed?
Choose the correct options from the following: [MSQ]
What will be the output of the following program?
#include <stdio.h>
int main()
{
int a=10, b=20, c=30, d=40;
if(a<= b == d> c)
{
printf("TRUE");
}
else
{
printf("FALSE");
}
return 0;
}
#include<stdio.h>
void switch_check(int x)
{
switch(x)
{
case 0: printf("@");
case 1: printf("H");
case 2: printf("I");
case 3: printf("M");
case 4: printf("A");
case 5: printf("L");
case 6: printf("A");
case 7: printf("Y");
case 8: printf("A");
default: printf("!");
}
}
void main()
{
switch_check(2<<1 );
}
What is the output of the above code?
T(n) = 3T(n/3) + (√n)logn
2, 6, 8, 1, 4, 3
int bob(a, b)
if (a == b)
return a;
if (a > b)
bob(a - b, b);
else
bob(a, b - a);
h (k) = 1+k mod (m-1)
Assume the hash table has locations from 0 to 10.
Keys are 10, 22, 31, 4, 15, 28, 17, 27, 88, 59.
What is the key that is inserted at the location 0 Using linear probing
PPP QQQQ P Q RRR SSSS RRRRR QQQ SS RRR
If Huffman tree code has left child with ‘1’ and right child with ‘0’ from every node then what is the decoded message for 1001010001.
What are the common edges between minimum cost and maximum cost spanning tree?