1. AVA = A is called:
(A) Identity
law
(B) De Morgan’s law
(C) Idempotant
law
(D) Complement law
Ans C
1) Granulairity refers to
(a) Size of a database (b) Size of a data item
(c) Size of a record (d) .........
Answer: (a) size of a data item
|
(2) R = (A, B, C, D). We decompose it into R1 = (A, B), R2
= (C, D). The set offunctional dependencies is: A → B, C → D,
Then decomposition is a
(a) Dependency preserving but
lossy
(b)Dependency preserving and
lossless
(c) lossless (d) Neither lossy
nor dependency preserving
Answer: (b) Dependency preserving
but lossy |
1.The C language terminator is
a. semicolon
b. colon
c. period
d. exclamation mark
Decision variable
(d)
|
x
|
y
|
Point with Center
(0,0)
|
Point with Center
(100,90)
|
0
|
10
|
(0,10)
|
(100,100)
|
|
-17
|
1
|
10
|
(1,10)
|
(101,100)
|
-11
|
2
|
10
|
(2,10)
|
(102,100)
|
-1
|
3
|
10
|
(3,10)
|
(103,100)
|
13
|
4
|
9
|
(4,9)
|
(104,99)
|
-5
|
5
|
9
|
(5,9)
|
(105,99)
|
17
|
6
|
8
|
(6,8)
|
(106,98)
|
11
|
7
|
7
|
(7,7)
|
(107,97) |
1.What is the output of this C code?
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}