Questions with numerical answers and no options. No negative marks for these questions.

Recent questions tagged numerical-answers

1 1 vote
2 2 answers
170
170 views
Consider the relation schema $R(A,B,C,D,E)$ with $F=\{AB \to D,\ AC \to E,\ A \to B,\ BC \to E,\ A \to E\}$.Consider the following functional dependencies:$A \to D$$AC \t...
2 2 votes
1 1 answer
126
126 views
Consider relation $S(D,E)$ with primary key $(D,E)$.The current instance of $S$ contains $(1,3)$, $(2,4)$, $(3,1)$.Relation $R(A,B,C)$ contains the foreign-key constraint...
3 3 votes
1 1 answer
128
128 views
Consider the relations $\text{Employee}(eid)$, $\text{Policy}(pid,eid)$, $\text{Dependent}(did,pid)$.The following foreign keys are defined:$\text{Policy}.eid$ $\text{ RE...
2 2 votes
1 1 answer
124
124 views
Consider the right-linear grammar,$$\begin{aligned}A &\to fB \mid gA \\B &\to gA \mid fC \mid f \\C &\to gA \mid fC \mid f\end{aligned}$$When this grammar is converted in...
3 3 votes
1 1 answer
147
147 views
Consider the right-linear grammar,$$\begin{aligned}S &\to aT \\T &\to abcS \mid b\end{aligned}$$If this grammar is converted into an NFA with one input symbol per transit...
1 1 vote
1 1 answer
134
134 views
A relation $R(A,B)$ currently contains $7$ tuples.The following SQL statement is executed:$\text{ALTER\ TABLE\ R\ ADD\ C\ INTEGER;}$Immediately after this command, and be...
2 2 votes
1 1 answer
129
129 views
3 3 votes
1 1 answer
153
153 views
A relation schema $R$ has $6$ attributes.Assume that the empty set is not considered a key.What is the maximum possible number of superkeys of $R$?
5 5 votes
1 1 answer
322
322 views
Consider the relation schema $R(A,B,C)$.The domain sizes of the attributes are:$|D_A|=2$$|D_B|=2$$|D_C|=3$Assume that there are no constraints other than the domain const...
4 4 votes
1 1 answer
168
168 views
Three processes $P_1$, $P_2$, and $P_3$ are scheduled using Round Robin.Assume:Each process has one kernel threadTime quantum $=\text{10 ms}$Context switch time $=\text{1...
2 2 votes
1 1 answer
103
103 views
A disk contains tracks numbered from $0$ through $199$.The disk head is currently at track $184$.The pending requests, in arrival-list order, are $184, 187, 176, 182, 199...
2 2 votes
1 1 answer
131
131 views
The following running times are observed for a program:$$\begin{array}{|c|c|}\hlineN & \text{Running time} \\\hline1000 & 0.1\text{ seconds} \\2000 & 0.3\text{ seconds} \...
0 0 votes
1 1 answer
79
79 views
A file system has:Cluster size = $\text{4 KB}$ Inode size = $\text{64 bytes}$ $1\text{M} = 2^{20}$ clusters reserved for storing inodes $512\text{M}$ clusters reserved fo...
0 0 votes
1 1 answer
74
74 views
Consider a UNIX file system with:Disk block size = $\text{4096 bytes}$All block pointers = $\text{32 bits}$Inode has $12$ direct pointers$1$ single-indirect pointer$1$ do...
1 1 vote
1 1 answer
87
87 views
Consider a file system with:Block size = $\text{2048 bytes}$ Disk block pointer size = $\text{32 bits}$ $12$ direct pointers $1$ single-indirect pointer $1$ double-indire...