A Relational Database Consists of A Collection of A) Tables B) Fields C) Records D) Keys Ans:A
A relational database consists of tables with rows and columns. A row is also called a tuple. The columns are called attributes and can have a domain of permitted values. The database schema defines the logical design and instances represent snapshots of the data. Keys such as super keys and candidate keys uniquely identify records. Relations between tables can be formed by joining attributes. Query languages are used to request information from the database.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2K views
A Relational Database Consists of A Collection of A) Tables B) Fields C) Records D) Keys Ans:A
A relational database consists of tables with rows and columns. A row is also called a tuple. The columns are called attributes and can have a domain of permitted values. The database schema defines the logical design and instances represent snapshots of the data. Keys such as super keys and candidate keys uniquely identify records. Relations between tables can be formed by joining attributes. Query languages are used to request information from the database.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25
1.
A relational database consists of a
collection of a) Tables b) Fields c) Records d) Keys Ans:A 2. A ________ in a table represents a relationship among a set of values. a) Column b) Key c) Row d) Entry Ans:C 3. The term _______ is used to refer to a row. a) Attribute b) Tuple c) Field d) Instance Ans:B 4. The term attribute refers to a ___________ of a table. a) Record b) Column c) Tuple d) Key Ans:B 5. For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute. a) Domain b) Relation c) Set d) Schema Ans:A 6. Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time. a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance Ans:D 7.Course(course_id,sec_id,semester) Here the course_id,sec_id and semester are __________ and course is a _________ a) Relations, Attribute b) Attributes, Relation c) Tuple, Relation d) Tuple, Attributes Ans:B 9. A domain is atomic if elements of the domain are considered to be ____________ units. a) Different b) Indivisbile c) Constant d) Divisible Ans:B 10. The tuples of the relations can be of ________ order. a) Any b) Same c) Sorted d) Constant ANS:a Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record? a) Candidate key b) Sub key c) Super key d) Foreign key Ans:C Consider attributes ID , CITY and NAME . Which one of this can be considered as a super key ? a) NAME b) ID c) CITY d) CITY , ID Ans:B The subset of super key is a candidate key under what condition ? a) No proper subset is a super key b) All subsets are super keys c) Subset is a super key d) Each subset is a super key Ans:A A _____ is a property of the entire relation, rather than of the individual tuples in which each tuple is unique. a) Rows b) Key c) Attribute d) Fields Ans:B Which one of the following attribute can be taken as a primary key ? a) Name b) Street c) Id d) Department Ans:C Which one of the following cannot be taken as a primary key ? a) Id b) Register number c) Dept_id d) Street Ans:D Using which language can a user request information from a database ? a) Query b) Relational c) Structural d) Compiler Ans:A Student(ID, name, dept name, tot_cred) In this query which attribute form the primary key? a) Name b) Dept c) Tot_cred d) ID Ans:d Which one of the following is a procedural language ? a) Domain relational calculus b) Tuple relational calculus c) Relational algebra d) Query language Ans:C The_____ operation allows the combining of two relations by merging pairs of tuples, one from each relation, into a single tuple. a) Select b) Join c) Union d) Intersection Ans:B The result which operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match. a) Join b) Cartesian product c) Intersection d) Set difference Ans:b The _______operation performs a set union of two “similarly structured” tables a) Union b) Join c) Product d) Intersect Ans:A Which one of the following is used to define the structure of the relation ,deleting relations and relating schemas ? a) DML(Data Manipulation Langauge) b) DDL(Data Definition Langauge) c) Query d) Relational Schema Ans:B(Data Definition language is the language which performs all the operation in defining structure of relation. Which one of the following provides the ability to query information from the database and to insert tuples into, delete tuples from, and modify tuples in the database ? a) DML(Data Manipulation Langauge) b) DDL(Data Definition Langauge) c) Query d) Relational Schema Ans:a(DML performs change in the values of the relation. Create table employee (name varchar ,id integer) What type of statement is this ? a) DML b) DDL c) View d) Integrity constraint Ans:B(Data Definition language is the language which performs all the operation in defining structure of relation. Department (dept name, building, budget) and Employee (employee_id , name, dept name,salary) Here the dept_name attribute appears in both the relations .Here using common attributes in relation schema is one way of relating ___________ relations. a) Attributes of common b) Tuple of common c) Tuple of distinct d) Attributes of distinct Ans:C