City Guilds Model Questions Vol1 2017 Information Technology Question 23

Practice objective / multiple choice question 23 from the 2017 City Guilds Model Questions Vol1 Information Technology examination.

City Guilds Model Questions Vol1 2017 Information Technology Objective / Multiple Choice Medium Difficulty
Question 23 CITY_GUILDS_MODEL_QUESTIONS_VOL1 • 2017 • INFORMATION_TECHNOLOGY • objective

Consider the relation STUDENT(CourseID, StudentID, Name, Score, Instructor) where the primary key is \((CourseID, StudentID)\). The functional dependencies are:\n\(CourseID \rightarrow Instructor\)\n\(StudentID \rightarrow Name\)\n\((CourseID, StudentID) \rightarrow Score\)\n\n(a) Decompose the relation into a set of tables that are in Boyce‑Codd Normal Form (BCNF). How many tables result from the decomposition?\n\n(b) Write an SQL query that returns the names of instructors whose courses have an average student score greater than 85.

Answer Options

A. 3 tables; SELECT DISTINCT I.Instructor FROM R1 AS I JOIN R4 AS S ON I.CourseID = S.CourseID GROUP BY I.CourseID, I.Instructor HAVING AVG(S.Score) >= 85;
Correct Answer B. 3 tables; SELECT DISTINCT I.Instructor FROM R1 AS I JOIN R4 AS S ON I.CourseID = S.CourseID GROUP BY I.CourseID, I.Instructor HAVING AVG(S.Score) > 85;
C. 3 tables; SELECT DISTINCT I.Instructor FROM R1 AS I JOIN R4 AS S ON I.CourseID = S.CourseID GROUP BY I.CourseID, I.Instructor HAVING AVG(S.Score) > 90;
D. 2 tables; SELECT I.Instructor FROM R1 AS I JOIN R4 AS S ON I.CourseID = S.CourseID GROUP BY I.Instructor HAVING AVG(S.Score) > 85;
Correct Answer
B
Correct Option:
3 tables; SELECT DISTINCT I.Instructor FROM R1 AS I JOIN R4 AS S ON I.CourseID = S.CourseID GROUP BY I.CourseID, I.Instructor HAVING AVG(S.Score) > 85;

About This Question

This is City Guilds Model Questions Vol1 2017 Information Technology Question 23. It is one of the objective questions from the 2017 City Guilds Model Questions Vol1 Information Technology examination.

Difficulty level: Medium .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support