8.6 KB · commit 40bb182
| course_code | ECE 2215 |
|---|---|
| course_title | Database Systems |
| document_type | Class Test Questions |
Course Code: ECE 2215
Course Title: Database Systems
Document: Class Test (CT) Question Collection
| Parameter | Details |
|---|---|
| Institution | Rajshahi University of Engineering & Technology |
| Department | Electrical & Computer Engineering |
| Course No. | ECE 2215 |
| Course Title | Data Base Systems |
| Test Title | CT - 1 |
| Marks | 20 |
| Time | 30 minutes |
| Curriculum Standard | With CO Mapping |
Define data abstraction. Describe different types of data abstractions.
Marks: 05 | CO: CO1
Draw a schema diagram for ECE, including 5 tables (Students, Courses, Instructors, Classroom, Results).
Marks: 05 | CO: CO1
Describe the structure of a database application.
Marks: 02 | CO: CO1
Relations:
Write the relational algebra expressions for the following conditions using the relations above.
(Note: Sub-parts are numbered v, vi, vii, viii on the original question script).
Marks: 04 | CO: CO1
Describe the following relational algebra expression:
iii. ΠName(σMarks<50(STUDENT⋈STUDENT.Student_ID=COURSE.Student_IDCOURSE))
iv. Πcourse_id(σsemester="Fall"∧year=2017(section))−Πcourse_id(σsemester="Spring"∧year=2018(section))
(Note: Sub-parts are numbered iii, iv on the original question script).
Marks: 04 | CO: CO1
| Parameter | Details |
|---|---|
| Institution | Rajshahi University of Engineering & Technology |
| Department | Electrical & Computer Engineering |
| Course No. | ECE 2215 |
| Course Title | Data Base Systems |
| Test Title | CT - 2 |
| Marks | 20 |
| Time | 20 minutes |
| Curriculum Standard | With CO Mapping |
Consider the table and write SQL queries for the following queries:
STUDENT(StudentID,Name,Department,Semester,CGPA)
[Marks: 02 | CO: CO2][Marks: 02 | CO: CO2][Marks: 03 | CO: CO2][Marks: 03 | CO: CO2]Marks: 10 | CO: CO2
A university maintains information about Students, Courses, and Teachers. A student can enroll in several courses and each course can have many students. Each course is taught by one teacher, though a teacher may teach several courses.
[Marks: 04 | CO: CO3][Marks: 06 | CO: CO3]Marks: 10 | CO: CO3
| Parameter | Details |
|---|---|
| Institution | Rajshahi University of Engineering & Technology |
| Department | Electrical & Computer Engineering |
| Course No. | ECE 2215 |
| Course Title | Data Base Systems |
| Test Title | Class Test - 3 |
| Marks | 20 |
| Time | 30 Minutes |
| Curriculum Standard | With CO Mapping |
Consider the relation:
ENROLLMENT(StudentID,StudentName,CourseID,CourseName,InstructorID,InstructorName,Grade)
Assume the following functional dependencies:
\begin{aligned} \text{StudentID} &\rightarrow \text{StudentName} \\ \text{CourseID} &\rightarrow \text{CourseName}, \text{InstructorID} \\ \text{InstructorID} &\rightarrow \text{InstructorName} \\ (\text{StudentID}, \text{CourseID}) &\rightarrow \text{Grade} \end{aligned}$$ - **a)** Identify all the possible candidate key of the relation. `[Marks: 04]` - **b)** Identify the prime and non-prime attributes. `[Marks: 02]` - **c)** Identify the partial and transitive dependencies. `[Marks: 02]` - **d)** Determine the highest normal form satisfied by the given relation. Give a proper justification. `[Marks: 02]` **Marks:** 10   |   **CO:** CO3 --- ### Question 02 Mention the problems caused by an unnormalized relation. **Marks:** 03   |   **CO:** CO3 --- ### Question 03 Define normalization and state its main objective. **Marks:** 03   |   **CO:** CO3 --- ### Question 04 Justify the statement: "Every BCNF relation is in 3NF, but every 3NF relation is not necessarily in BCNF." **Marks:** 04   |   **CO:** CO3 --- ## Class Test 04 (Transactions, ACID & Conflict Serializability) | Parameter | Details | | :--- | :--- | | **Institution** | Rajshahi University of Engineering & Technology | | **Department** | Electrical & Computer Engineering | | **Course No.** | ECE 2215 | | **Course Title** | Data Base Systems | | **Test Title** | Class Test - 4 | | **Marks** | 20 | | **Time** | 30 Minutes | | **Curriculum Standard** | With CO Mapping | --- ### Question 01 Define a transaction? Explain the four ACID properties of a transaction with suitable examples. **Marks:** 06   |   **CO:** CO3 --- ### Question 02 Differentiate between a serial schedule and a concurrent schedule. Mention two advantages of concurrent execution of transactions. **Marks:** 04   |   **CO:** CO3 --- ### Question 03 Explains any two problems caused by concurrent execution. *(Note: Printed as "Explains any two problems caused by concurrent execution." in the original question script).* **Marks:** 04   |   **CO:** CO3 --- ### Question 04 Determine whether the schedule is conflict serializable or not. If it is serializable, give the equivalent serial order. | $T_1$ | $T_2$ | $T_3$ | | :---: | :---: | :---: | | $\text{Write}(A)$ | | | | | $\text{Read}(A)$ | | | | | $\text{Write}(B)$ | | $\text{Write}(B)$ | | | | | | $\text{Write}(B)$ | | | $\text{Write}(A)$ | | | | | $\text{Read}(B)$ | | | $\text{Read}(B)$ | | **Marks:** 06   |   **CO:** CO3