1)Let the Universal Set, S, have 97 elements. A and B are
subsets of S. Set...
1)Let the Universal Set, S, have 97 elements. A and B are
subsets of S. Set A contains 45 elements and Set B contains 18
elements. If Sets A and B have 1 elements in common, how many
elements are in A but not in B?
2)Let the Universal Set, S, have 178 elements. A and B are
subsets of S. Set A contains 72 elements and Set B contains 95
elements. If Sets A and B have 39 elements...
For each of the following sets X and collections T of open
subsets decide whether the...
For each of the following sets X and collections T of open
subsets decide whether the pair X, T satisfies the axioms of a
topological space. If it does, determine the connected components
of X. If it is not a topological space then exhibit one axiom that
fails.
(a) X = {1, 2, 3, 4} and T = {∅, {1}, {1, 2}, {2, 3}, {1, 2, 3},
{1, 2, 3, 4}}.
(b) X = {1, 2, 3, 4} and T...
Consider the following variable definitions:
char a, *b, *c;
int d[2], *e;
int i, *j;
How...
Consider the following variable definitions:
char a, *b, *c;
int d[2], *e;
int i, *j;
How many total bytes does this code allocate for
variables? Assume a 32-bit representation for
integer and pointer values.
a sizeof(char)
b sizeof(char *)
c sizeof(char *)
d 2*sizeof(int)
e sizeof(int *)
i sizeof(int)
j sizeof(int *)
Total number of bytes
?
What is the output of the following piece of code? (Use the
above variable definitions).
j = &i;
*j =
50; /*
i = 50 */
e = &d[0];
*e...
Here are SQL declarations for three tables R, S, and T:
CREATE TABLE R(e INT PRIMARY...
Here are SQL declarations for three tables R, S, and T:
CREATE TABLE R(e INT PRIMARY KEY, f INT);
CREATE TABLE S(c INT PRIMARY KEY, d INT REFERENCES R(e) ON DELETE CASCADE);
CREATE TABLE T(a INT PRIMARY KEY, b INT REFERENCES S(c) ON DELETE CASCADE);
Suppose R(e,f) contains tuples
(1,0), (2,4), (3,5), (4,3), and (5,7).
Suppose S(c,d) contains tuples
(1,5), (2,2), (3,3), (4,5), and (5,4).
Suppose T(a,b) contains tuples
(0,2), (1,2), (2,3), (3,4), and (4,4).
As a result of the...