GATE 2016 (Session 1)
65 questions
MCQ 39 · NAT 261-mark 30 · 2-mark 35
Questions 31–35 of 65
Which of the following is NOT a superkey in a relational schema with attributes V,W, X, Y, Z and primary key V Y?
Answer: (B)
A superkey has to include the full primary key {V, Y}.
VWXZ has V but does not have Y so it is not a superkey. Every other option has both V and Y.
Answer: VWXZ
VWXZ has V but does not have Y so it is not a superkey. Every other option has both V and Y.
Answer: VWXZ
Which one of the following is NOT a part of the ACID properties of database transactions?
Answer: (D)
The four ACID properties are Atomicity, Consistency, Isolation and Durability. Deadlock-freedom is not in this list.
Answer: Deadlock-freedom
Answer: Deadlock-freedom
A database of resear charticles in a journal uses the following schema.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, YEAR, PRICE)
The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.
The database is redesigned to use the following schemas.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)
(VOLUME, NUMBER, YEAR)
Which is the weakest normal form that the new database satisfies,but the old one does not?
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, YEAR, PRICE)
The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.
| (VOLUME, NUMBER, STARTPAGE, ENDPAGE) | → | TITLE |
| (VOLUME, NUMBER) | → | YEAR |
| (VOLUME, NUMBER, STARTPAGE, ENDPAGE) | → | PRICE |
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)
(VOLUME, NUMBER, YEAR)
Which is the weakest normal form that the new database satisfies,but the old one does not?
Answer: (B)
Old schema: the primary key (VOLUME, NUMBER, STARTPAGE, ENDPAGE) decides every other attribute. The dependency (VOLUME, NUMBER) YEAR is a partial dependency, because a part of the key decides a non-key attribute. So the old schema is only in 1NF.
New schemas: YEAR is moved to (VOLUME, NUMBER, YEAR). The partial dependency is gone. In the first schema every non-key attribute depends on the whole key, and the second holds only the dependency on (VOLUME, NUMBER). So both schemas are in BCNF, and so also in 3NF and 2NF.
The new design meets 2NF, 3NF and BCNF, and the old one meets only 1NF. The weakest of these is 2NF.
Answer: (B)
New schemas: YEAR is moved to (VOLUME, NUMBER, YEAR). The partial dependency is gone. In the first schema every non-key attribute depends on the whole key, and the second holds only the dependency on (VOLUME, NUMBER). So both schemas are in BCNF, and so also in 3NF and 2NF.
The new design meets 2NF, 3NF and BCNF, and the old one meets only 1NF. The weakest of these is 2NF.
Answer: (B)
Which one of the following protocols is NOT used to resolve one form of address to another one?
Answer: (C)
Look at each protocol one by one:
- DNS: changes a hostname IP
- ARP: changes an IP MAC
- RARP: changes a MAC IP
- DHCP gives IP configuration to hosts. It does not change one form of address into another.
Answer: DHCP
- DNS: changes a hostname IP
- ARP: changes an IP MAC
- RARP: changes a MAC IP
- DHCP gives IP configuration to hosts. It does not change one form of address into another.
Answer: DHCP
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
Answer: (C)
We look at each statement one by one:
- HTTP is stateless, because every request is independent.
- FTP keeps session state (login and current directory) so it is stateful.
- TCP is a transport layer protocol. It is not an application layer protocol.
- POP3 keeps session state (authorization and transaction states) so it is stateful.
Answer: (ii) and (iv) only
- HTTP is stateless, because every request is independent.
- FTP keeps session state (login and current directory) so it is stateful.
- TCP is a transport layer protocol. It is not an application layer protocol.
- POP3 keeps session state (authorization and transaction states) so it is stateful.
Answer: (ii) and (iv) only