정보처리산업기사 기출문제·모의고사·오답노트·자동채점

2010년03월07일 1번

[데이터 베이스] A is a relation with cardinality 3 and degree 5 and B is relation with cardinality 4 and degree 2. When we combine relation A and B by the cartesian product, what relation does come out?

  • ① cardinality 4 and degree 2
  • ② cardinality 3 and degree 5
  • ③ cardinality 7 and degree 10
  • ④ cardinality 12 and degree 7
(정답률: 63%)

문제 해설

When we take the cartesian product of A and B, we create a new relation that contains all possible combinations of tuples from A and B. Since A has cardinality 3 and B has cardinality 4, the resulting relation will have a cardinality of 3 x 4 = 12.

The degree of the resulting relation will be the sum of the degrees of A and B, which is 5 + 2 = 7. Therefore, the correct answer is "cardinality 12 and degree 7".
이전 문제
다음 문제
AppStore에서 다운로드 APK 다운로드

연도별

진행 상황

0 오답
0 정답