University |Multiple Choice Questions|

DBMS (CS 403)

[Errors and Omissions are Accepted]


1). Which feature of database provides conversion from inconsistent state of DB to a consistent state ensuring minimum data loss?   
  • User accessible catalog        
  • Data processing        
  • Authorization service        
  • Recovery service

2). Which of the following statements is true about the views?   
  • View is always a complete set of all the tables in a database        
  • View can not be used for retrieving data        
  • The results of using a view are not permanently stored in the database.  
  • Rows can not be updated or deleted in the view     

3). Which of the following is true about TRUNCATE?   
  • Can be Rolled back.        
  • Activates Triggers.        
  • Is DML Command.        
  • Resets identity of the table.

4). Which of the following is the correct way to find out the size of cartesian product incase of CROSS JOIN?   
  • The number of columns in the first table multiplied by the number of columns in the second table.        
  • The number of columns in the first table multiplied by the number of rows in the second table.        
  • The number of rows in the first table multiplied by the number of columns in the first table.        
  • The number of rows in the first table multiplied by the number of rows in the second table.

5). Suppose there are 8 rows and 4 columns in TABLE1 and 3 rows and 4 columns in TABLE2; what is the size of the cartesian product incase of CROSS JOIN between these two tables?   
  • 24             
  • 32        
  • 12        
  • 16 

6). Which of the following is not one of the properties of Transaction?   
  • Atomicity        
  • Consistency        
  • Redundancy  
  • Durability     

7). Which of the following is INCORRECT about VIEWS?   
  • It is not possible to left out the data which is not required for a specific view.    
  • A database view displays one or more database records on the same page.        
  • Views can be used as security mechanisms        
  • Views are generally used to focus the perception each user has of the database.     

8). Each course section is assigned a particular faculty member, and each course section corresponds to a particular course. Conceptually, what is the relationship between faculty and course (not course section).       
  • 1:1        
  • 1:M        
  • M:M
  • Ternary 

9). Which of the following is used to add or drop columns in an existing table?  
  • ALTER  
  • HAVING        
  • SELECT        
  • THEN     

10). Which of the following is a correct way of selecting all the columns from a table called PERSONS?       
  • SELECT FROM * Persons        
  • SELECT * FROM Persons  
  • SELECT * WHERE Persons        
  • SELECT WHERE * Persons     

11). Which of the following is NOT a feature of Indexed sequential files?       
  • Records are stored in sequence and index is maintained.       
  • Dense and nondense types of indexes are maintained.       
  • Track overflows and file overflow areas can not be ensured.   
  • Cylinder index increases the efficiency    

12). Consider the given relations Student and Instructor as given below. Please note that Fname and Lname also denote the First Name and Last Name respectively.  Which of the following statements is correct with respect to the two relations given above?   
  • The two relations are not union-compatible since their attribute names differ.     
  • The two relations are union-compatible since they have the same type of tuples.       
  • The set operations such as CARTESIAN PRODUCT and DIVISION can be applied on these two relations.       
  • To find out the students who are not instructors, it is necessary to perform the operation Student ÷ Instructor.

13). Which of the following serves as a milestone or reference point in the log file?   
  • Constraints       
  • Relations       
  • Check points
  • Transactions identities 

14). Which of the following is not true regarding DB transactions?   
  • A set of database operations that are processed partly   
  • A database transaction is a logical unit of database operations       
  • A database transaction must be atomic       
  • A database transaction must contains the ACID property      

15). Which of the following are the general activities, which are performed during the development of application programs? 
  • Data input programs       
  • Editing       
  • Display       
  • All of given

16). Browser based forms are developed in the following tools EXCEPT   
  • HTML       
  • Scripting language       
  • Front Page       
  • Web-based Forms 

17). Which of the following is not a form of optical disk?   
  • CD ROM       
  • WORM       
  • Erasable Optical       
  • EEPROM

18). Which of the following is the correct description of cache hit?   
  • When data is found in the cache     
  • When data is removed in the cache       
  • The number of times the cache is accessed directly by the processor       
  • When data is lost from the cache 

19). In which of the following situations, Clustering is suitable:   
  • Frequently updating       
  • Relatively static    
  • Relatively deletion       
  • Relatively dynamic    

20). Only one type of constraint can be enforced in any table by CREATE command  
  • True       
  • False  

21). Which of the following is disadvantage of chaining technique to handle the collisions?   
  • Unlimited Number of elements       
  • Fast re-hashing       
  • Overhead of multiple linked lists   
  • Maximum number of elements must be known    

22). Consider the following relation R and its sample data. (Consider that these are the only tuples for the given relation) Which of the following statements is NOT correct?    
  • The functional dependency ProjNo -> DeptNo holds over R.       
  • The functional dependency (EmpNo, ProjNo) -> DeptNo holds over R.            
  • The functional dependency DeptNo -> ProjNo holds over R.       
  • The functional dependency EmpNo -> DeptNo holds over R. 

23). An entity type is   
  • Defined when the database is actually constructed        
  • A specific type such as an integer, text, date, logical etc        
  • A coherent set of similar objects that we want to store data on (e.g. STUDENT, COURSE, CAR)        
  • Defined by the database designer 

24). An entity can be logically connected to another by defining a ____. 
  • Hyperlink        
  • Common attribute      
  • Primary key        
  • Superkey 

25). You can’t modify more than one table at a time through a view.   
  • True    
  • False  

26). Which of the following is one of the purposes of using DML commands?   
  • Creating databases       
  • Destroying databases       
  • Inserting data in tables      
  • Non of the above  

27). What is the alternate name of Data Dictionary?
  • Index 
  • Metadata 
  • Data 
  • System Catalog 

28). IN function helps reduce the need to use multiple AND conditions.
  • True 
  • False

29). Which of the following is not true about De-normalization?
  • It is the process of attempting to optimize the performance of a database 
  • De-normalization is a technique to move from lower to higher normal forms of database modeling
  • It enhances the performance of DB 
  • In De-normalization it is required to add redundant data.    

30). Which of the following gives all the fields from employee table named as EMP?   
  •  SELECT * from EMP; 
  •  SELECT emp* from EMP' 
  •  SELECT emp_id where EMP; 
  •  SELECT * where EMP;   

31). Which of the following types of partitioning reduces the chances of unbalanced partitions?
  •  Vertical 
  •  List 
  •  Hash 
  •  Range   

 32). While recovering data, which of the following files does a recovery manager examines at first?
  • A system file
  • Log file 
  • Data dictionary 
  • Metadata   

33). ( M a r k s: 1 )    ALTER TABLE exams RENAME COLUMN Q_description TO Question_Descp, Std_ID to Student_ID. Syntax of ALTER TABLE is NOT correct.
  • True 
  • False   

34). Which of the following SQL commands deletes a record of an employee with the employee_id 12345, from a table named PERSON.
  • DELETE FROM person WHERE employee_id = ‘12345’ 
  • DELETE WHERE person FROM employee_id = 12345 
  • DROP FROM person WHERE employee_id = 12345 
  • DELETE WHERE person WHERE employee_id = 12345  

35). Which of the following is NOT a component of a DFD? Select correct option:
  • Dataflow 
  • Datastore 
  • External entities 
  • Relationship between external entities 

36). Laser records data by burning microscopic holes in the surface of the disk with a
  • Hard disk 
  • RAM 
  • Optical disk
  • Floppy disk  
     
37). Which of the following concepts is applicable with respect to 3NF?
  • Full functional dependency 
  • Any kind of dependency 
  • Transitive dependency  
  • Partial functional dependency   

28). Which of the following is NOT a feature of a good interface?
  •  Consistency 
  •  Process based      
  •  Data structure based  
  •  User friendly   

29). Making a change to the conceptual schema of a database but not affecting the existing external schemas is an example of
  • Physical data independence. 
  • Concurrency control 
  • Logical data independence. 
  • Functional dependency 

30). GRANT SELECT, UPDATE(Designation) ON Employee TO Amali,Hiruni WITH GRANT OPTION; What does this SQL statement do?
  • Grant permission to Amali,only to retrieve data from Employee table and grant permission to Hiruni, only to update the designation from Employee table. 
  • Grant permission to Hiruni in order to grant, select and update permission to Amali. 
  • Grant permission to Amali & Hiruni to update designation of employees in the Employee table 
  • Grant permission to Amali and Hiruni to update all data except designation in Employee table

31). Which key word is available in SQL to enforce referential integrity?
  • Check 
  • Primary Key 
  • Set Default 
  • Unique 

32). Which of the following statements are Data Definition Language command?
  • INSERT 
  • UPDATE 
  • GRANT 
  • TRUNCATE 

33). How many clustered index(es) do each database table have?
  • 1   

34). Which of the following is true about DELETE command?
  • Is DDL Command. 
  • Resets identity of the table 
  • Cannot activate a trigger     
  • Can be Rolled back  

35). Which of the following will be deleted relating to a table if you use TRUNCATE command?
  • All rows in a table             
  • Indexes 
  • Table structure and its columns 
  • Constraints  

36). Which of the following is not a feature of TRANSACTION?
  • Users should be able to regard the execution of each transaction as atomic. 
  • Each transaction, run by itself. 
  • Must preserve the consistency of the database 
  • Dependant on other concurrent transactions 

37). Suppose there are 4 fields in a table named CUST (customer_id, first_name, last_name, phone). Which of the following gives all the information of the customers in the table whose last name is ALI?
  • SELECT * FROM CUST WHERE last_name='ALI'; 
  • SELECT * FROM CUST WHERE last_name=ALI; 
  • SELECT * FROM CUSTOMER WHERE name=ALI; 
  • SELECT * FROM CUSTOMER WHERE last_name=ALI; 

38). Identify the correct statement with respect to normalization.
  • Normalization is a formal technique that can be used only at the starting phase of the database design. 
  • Normalization can be used as a top-down standalone database design technique. 
  • The process of normalization through decomposition must achieve the loss less join property at any cost whereas the dependency reservation property is sometimes sacrificed. 
  • The process of normalization through decomposition must achieve the dependency reservation property at any cost whereas the loss less join property is sometimes sacrificed.  

39). Which of the following is not true with respect to denormalization ?
  • A denormalized data model is not the same as a data model that has not been normalized 
  • Denormalization takes place before the normalization process 
  • It is an attempt to optimize the performance of database 
  • Denormalization process can not be initiated before the Database design 

40). Which of the following is incorrect with respect to indexed sequential files?
  • New records are added to an overflow file 
  • Record in main file that precedes it is updated to contain a pointer to the new record 
  • The overflow is merged with the main file during a batch update     
  • Multiple indexes for the same key field cannot be setup

41). DML commands are used for:
  • Inserting data into databases
  • Creating databases 
  • Destroying databases 
  • Creating DB objects 

42). Which of the following is INCORRECT with respect to file systems?
  • At the physical level, pointer or hashed address scheme may be employed to provide a certain degree of data independence at the user level. 
  • A logical record is concerned with efficient storage of information in the secondary storage devices. 
  • Some physical organisations use pointers to record blocks to locate records on disk. 
  • The efficiency of a file system depends on how efficiently operations such as retrieve, insert, update, delete may be performed on the information stored in the file. 

43). Which of the following is correct regarding Dataflow diagram?
  • Single DFD is required to represent a system 
  • The dataflow must be bidirectional 
  • Created at increasing levels of detail
  • Used to represent the relationships among the external entities 

44). Select the correct statement among the following on proper naming of schema constructs:
  • Entity type name applies to all the entities belonging to that entity type and therefore a plural name is selected for entity type. 
  • In the narrative description of the database requirements, verbs tend to indicate the names of relationship types.
  • The nouns arising from a database requirement description can be considered as names of attributes. 
  • Additional nouns which are appearing in the narrative description of the database requirements represent the weak entity type names.

45). Structural constraints of a relationship type refer to
  • Identifying the owner entity type relevant to a given entity type 
  • Whether the existence of an entity depends on it being related to another entity via the relationship type.
  • The role that a participating entity from the entity type plays in each relationship instance. 
  • The constraints applicable in granting access to tables, columns and views in a database schema.  

46). Identify the correct statement.
  • Entity integrity constraints specify that primary key values can be composite. 
  • Entity integrity constraints are specified on individual relations. 
  • Entity integrity constraints are specified between weak entities. 
  • When entity integrity rules are enforced, a tuple in one relation that refers to another relation must refer to an existing tuple.  

47). What is the impact of setting multiple indexes for the same key, in index sequential files?
  • Multiple indexes for the same key can not be set 
  • It increases efficiency
  • It decreases efficiency 
  • It will increase complexity as the access time will be increased  

48). Which of the following is not true regarding Indexes?
  • Index can be defined even when there is no data in the table 
  • It support Range selections 
  • It can be created using ‘Create Index’ statement 
  • It can not be created on composite attributes  

49). The main memory of a computer system is also known as
  • ROM 
  • RAM  
  • PROM 
  • Hard disk  

50). _______is a control that enables users to select one option from an associated list; users can also type an option.
  • Combo box
  • Button  
  • Text box 
  • Static area 

51). Which of the following is not true about relational tables? 
  • Column values are of the same kind.        
  • Each row is unique.        
  • Each column must have a unique name.        
  • The sequence of rows is significant.

52). What is the maximum limit of keys in context with Indexed sequential files?      
  • 7        
  • 255    
  • 1        
  • 235    

53). Structural constraints of a relationship type refer to      
  • Identifying the owner entity type relevant to a given entity type        
  • Whether the existence of an entity depends on it being related to another entity via the relationship type.  
  • The role that a participating entity from the entity type plays in each relationship instance.        
  • The constraints applicable in granting access to tables, columns and views in a database schema.

54). Which of the given techniques is/are used to improve query performance in database?      
  • Good File organization        
  • Indexing
  • Both Indexing and Good File organization        
  • Select only one record per query

55). _______ is a control that users click to perform an action, set or toggle a state, or set an option.      
  • Button 
  • Text box        
  • Input form        
  • Report

56). _______is a control that enables users to select one option from an associated list; users can also type an option.      
  • Combo box
  • Button        
  • Text box        
  • Static area

57). In which of the following, Materialized Views are suitable      
  • Data warehousing        
  • Decision support        
  • Mobile computing        
  • All of the Given

58). A software package designed to store and manage databases      
  • Database        
  • DBMS
  • Data model        
  • Data    

59). A superkey that does not contain a subset of attributes that is itself a superkey is called a ____.      
  • Candidate key 
  • Primary key        
  • Superkey        
  • Secondary key    

60). A ____ relationship exists when an association is maintained within a single entity.      
  • Unary
  • Ternary        
  • Binary        
  • Weak          

61). Which of the following is NOT one of the ways of resolving deadlocks?      
  • Undoing all the updates made by the particular transaction which is the cause of deadlock.        
  • A message is passed to the victim and depending on the system the transaction may or may not be started again automatically.        
  • Picking a list of all previously completed transactions and undoing all the updates. 
  • Rollback `victim' transaction and restart it.  

62). Consider the relation Interview(CandidateNo, InterviewDate, InterviewTime, StaffNo, RoomNo) and the following functional dependencies. FD1 : CandidateNo, InterviewDate -> InterviewTime, StaffNo, RoomNo FD2 : RoomNo, InterviewDate, InterviewTime -> StaffNo, CandidateNo FD3 : StaffNo, InterviewDate -> RoomNo Which of the following is correct?      
  • The relation Interview is in 3NF
  • The relation Interview is in BCNF.        
  • The FD3 violates 3NF.        
  • The FD2 violates 2NF. 

63). Which of the following is one of the purposes of using DDL commands?      
  • Inserting records into databases        
  • Updating records into databases        
  • Manipulating databases        
  • Creating and destroying databases

64). Which of the following statements creates a database named COMPANY.      
  • CREATE DATABASE company        
  • CREATE DB company        
  • ADD DATABASE copmany        
  • CREATE company DATABASE 

65). Consider a transaction which includes following operations Z= Z + 10 Write Z ... Suppose that the value of Z after addition and the execution of this operation is 17. Now against the write operation the entry made in the log file will be What does Z reflects in the above entry?      
  • Object being updated
  • Identity of the transaction        
  • Object value        
  • Identity of the next transaction to be executed 

66). Which of the following is not true about input forms?      
  • Provide an easy, effective, efficient way to enter data into a table        
  • Especially useful when the person entering the data is not familiar with the inner workings        
  • Provide different controls to add data into the tables        
  • One input forms can populate one table at a time 

67). Which of the following is an example of volatile memory?     
  • RAM        
  • ROM        
  • Flash memory        
  • CPU  

68). Which of the following is Advantage of Re-Hashing technique to handle the collisions?      
  • Collisions don’t use primary table space        
  • Unlimited number of elements        
  • Fast access through use of main table space   
  • Overhead of multiple linked lists 

69). Materialized views and Indexes are NOT similar by the following way(s).      
  • They consume storage space        
  • They must be refreshed when the data in their master tables changes.        
  • They can be accessed directly using a SELECT statement    
  • All of the Given 

70). Select 'NORTH', CUSTOMER From CUST_DTLS Where REGION = 'N' Order By CUSTOMER Union Select 'EAST', CUSTOMER From CUST_DTLS Where REGION = 'E' Order By CUSTOMER The above statement:      
  • Has an error - the string should be in double quotes.        
  • Has an error - ORDER BY clause.    
  • Does not have an error.       
  • Has an error - the string in single quotes 'NORTH' and 'SOUTH'. 

71). Who is responsible for authorizing access to the database, for coordinating and monitoring its use ?       
  • Database Designers        
  • Database Administrators       
  • End Users        
  • Application Programmers 

72). A ____ entity has a primary key that is partially or totally derived from the parent entity in the relationship. 
    
  • Strong        
  • Weak  
  • Business        
  • Relationship  

73). Which of the following SQL keywords is not used with DDL statements?      
  • Table        
  • Update     
  • Create        
  • Alter 

74). Identify the constraint that limits the values that can be placed in a column.      
  • NOT NULL        
  • CHECK     
  • FOREIGN KEY        
  • UNIQUE  

75). Suppose there are 4 fields in a table named WORKER (Id, first_name, last_name, joining_year). Which of the following gives all the information of the workers who have joined after 1965?     
  • SELECT * FROM WORKER WHERE joining_Year>1965;        
  • SELECT * FROM WORKER WHERE joining_Year>'1965';        
  • SELECT * FROM WORKER AND joining_Year>'1965';        
  • SELECT *  WHERE joining_Year>1965;      

76). Which of the following enforces a relation into 1st normal form?     
  • The domain of attribute must include only atomic values.  
  • Every non-key attribute is fully functionally dependent on primary key         
  • Non-key  attribute is non-transitively dependent on primary key.         
  • Every non-key attribute is partially dependent on super key 

77). Which of the following is NOT a feature of HASH ACCESS?     
  • Indexes to search or maintain    
  • Very fast direct access        
  • Inefficient sequential access        
  • Use when direct access is needed, but sequential access is not. 

78). Which of the following is true about application programs?      
  • Develop before the database design        
  • Tools selection is made after the development database        
  • Meant to perform different operations by the user      
  • Must to design before the designing and developing database      

79). Which of the following is incorrect with respect to indexed sequential files?      
  • New records are added to an overflow file        
  • Record in main file that precedes it is updated to contain a pointer to the new record        
  • The overflow is merged with the main file during a batch update        
  • Multiple indexes for the same key field cannot be setup

80). A relation (from the relational database model) consists of a set of tuples, which implies that      
  • Relational model supports multi-valued attributes whose values can be represented in sets.        
  • For any two tuples, the values associated with all of their attributes may be the same.        
  • For any two tuples, the values associated with one or more of their attributes must differ.    
  • All tuples in a particular relation may have different attributes. 

81). Which of following is not the feature of Indexes?      
  • Consume storage space.        
  • Must be refreshed when the data in their master tables changes        
  • Improve the performance of SQL execution when they are used for query rewrites        
  • Can be accessed directly using a SELECT statement

82). Which of the following is not a type of user interface?      
  • Graphical User Interface (GUI)         
  • Forms        
  • DB tables
  • Text based  

83). In SQL queries, while creating tables or relations in database, key columns may be specified by     
  • Data type        
  • Null        
  • Not Null  
  • Owner 

84). Materialized views and Indexes are NOT similar by the following way(s).      
  • They consume storage space        
  • They must be refreshed when the data in their master tables changes.        
  • They can be accessed directly using a SELECT statement
  • All of the Given      

85). The ____ constraint specifies whether each entity supertype occurrence must also be a member of at least one subtype.     
  • Specialization
  • Uniqueness        
  • Inheritance        
  • Completeness      

86). In a conceptual model for a university, what type of relationship exists between Grade and Student entities?      
  • 1:1        
  • 1:M   
  • M:M        
  • Ternary

87). Identify the advantage of DELETE command over TRUNCATE.
  • Can be Rolled back.
  • Is DDL Command.  
  • Cannot activate a trigger.  
  • Faster and uses fewer system 

88). Which of the following concept is applicable with respect to 2NF?
  • Non-transitive dependency  
  • Full functional dependency 
  • Partial dependency  
  • Transitive dependency 

89). Which of the following SQL commands deletes a record of an employee with the employee_id 12345, from a table named PERSON.
  • DELETE FROM person WHERE employee_id = ‘12345’  
  • DELETE WHERE person FROM employee_id = 12345  
  • DROP FROM person WHERE employee_id = 12345  
  • DELETE WHERE person WHERE employee_id = 12345 

90). Identify the correct statement about ANSI/SPARC architecture.
  • The external level is not concerned with individual user perceptions  
  • The internal level, in a database system, will always be relational  
  • Any given database has exactly one conceptual schema and one physical schema, but it may have several external schemas.  
  • A data definition language is used to define the internal schema.

91). Which of the following is the correct way of removing the Index called branchNoIndex?              
  • DROP INDEX branchNoIndex;  
  • APPEND INDEX branchNoIndex;  
  • REMOVE INDEX branchNoIndex;  
  • DEL INDEX branchNoIndex; 
92). The main memory of a computer system is also known as  
  • ROM
  • PROM  
  • Hard disk

93). Which of the following should not be a property of a database transaction?   
  • Atomicity  
  • Isolation  
  • Durability  
  • Divergence  

94). ______ is a control that presents a set of choices from which a user can select one or more items; items can be text, graphics, or both.   
  • Text input  
  • Report  
  • Button  
  • List box

95). Browser based forms are developed in the following tools EXCEPT   
  • HTML  
  • Scripting language  
  • Front Page  
  • Web-based Forms

96). Which of the following statements are Data Definition Language command? 
  • INSERT   
  • UPDATE   
  • GRANT   
  • TRUNCATE    

97). What is the alternate name of Data Dictionary?  
  • Index  
  • Metadata  
  • Data  
  • System Catalog  

98). _______ is a control that users click to perform an action, set or toggle a state, or set an option.   
  • Button
  • Text box 
  • Input form 
  • Report 

99). ______ is a control that presents a set of choices from which a user can select one or more items; items can be text, graphics, or both.   
  • Text input  
  • Report  
  • Button  
  • List box                   

100). _______is a control that enables users to select one option from an associated list; users can also type an option.   

  • Combo box
  • Button 
  • Text box 
  • Static area 


 

No comments:

Post a Comment