Computer AwarenessModerateIBPS SO IT Officer · SBI Clerk Mains
In ENROLMENT(StudentID, CourseID, Grade), a student takes many courses and a course has many students, but a student takes a course only once. What is the primary key?
- A. StudentID on its own
- B. CourseID on its own
- C. The pair (StudentID, Grade)
- D. The pair (StudentID, CourseID)
Correct answer: D. The pair (StudentID, CourseID)
Neither ID alone is unique, since both repeat; together they identify one enrolment. A key made of two or more attributes is a composite key.
हिंदी में
ENROLMENT(StudentID, CourseID, Grade) में एक छात्र कई पाठ्यक्रम लेता है और एक पाठ्यक्रम में कई छात्र होते हैं, पर कोई छात्र एक पाठ्यक्रम केवल एक बार लेता है। प्राइमरी की क्या है?
- A. अकेला StudentID
- B. अकेला CourseID
- C. युग्म (StudentID, Grade)
- D. युग्म (StudentID, CourseID)
उत्तर: D. कोई भी ID अकेली अद्वितीय नहीं है, क्योंकि दोनों दोहराई जाती हैं; साथ मिलकर वे एक नामांकन की पहचान करती हैं। दो या अधिक एट्रिब्यूट से बनी की कंपोज़िट की कहलाती है।
More Computer Awareness questions
- Which pairing of computer generation and its key technology is WRONG?
- ENIAC, completed in 1945 to compute artillery firing tables, was built with which technology and which number system?
- The 'stored-program' concept, in which a computer's instructions are kept in the same memory as its data, is chiefly associated with:
- Herman Hollerith's punched-card tabulating machine, whose company later grew into IBM, was first used on a large scale for:
- Which early mechanical calculator could multiply, by repeated addition using a stepped drum, and not just add and subtract?
- Who is regarded as the first computer programmer for her notes containing an algorithm for Charles Babbage's Analytical Engine?