database

Upload: haqkhan56

Post on 11-Oct-2015

17 views

Category:

Documents


0 download

DESCRIPTION

database

TRANSCRIPT

Database Systems1. 1 .If a calculation is embedded in a form

A.the result of the calculations are stored with the formB.the calculations are stored with the form

C.the result of the calculations are printed in reportD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

Answer:OptionB2. 2 .The Management Information system (MIS) structure with one main computer system is called a

A.hierarchical MIS structureB.distributed MIS structure

C.centralized MIS structureD.decentralized MIS structure

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

Answer:OptionC3. 3 .If you want to group the records in the abc database, you could use the Jobcode as the _____.

A.DeleteB.Update

C.Sort KeyD.Index

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

4. Answer & ExplanationAnswer:OptionC5. 4 .A number of related records that are treated as a unit is called

A.fileB.field

C.dataD.batch

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

6. Answer & Explanation7. Answer:OptionA8. Explanation:9. No answer description available for this question..10. 5 .In SQL, which command is used to add new rows to a table?

A.ALTER TABLEB.ADD ROW

C.INSERTD.APPEND

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

11. Answer & ExplanationAnswer:OptionC12. 6 .A list consists of last names, first names, addresses, and pin codes if all people in the list have the same last and the same pin code, a useful key would be

A.the pin codeB.the last name

C.a compound key consisting of the first name and the last nameD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

13. Answer & ExplanationAnswer:OptionC14. 7 .The main idea behind computer files is that it is convenient to

A.arrange themB.store information together

C.create themD.access them

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

15. Answer & ExplanationAnswer:OptionB16. 8 .When you have finished entering information into a form

A.the template is written to the data fileB.the contents of the form are written to the data file

C.the contents of the form can be printedD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionB19. Explanation:20. No answer description available for this question..21. 9 .In SQL, which command(s) is(are) used to enable/disable all triggers on a table?

A.ALTER TRIGGERSB.ALTER TABLE

C.MODIFY TRIGGERS IN TABLED.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

22. Answer & Explanation23. Answer:OptionB

1. 10 .Updating a database means

A.revising the file structureB.reorganizing the database

C.modifying or adding record occurrencesD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

2. Answer & Explanation3. Answer:OptionC4. Explanation:5. No answer description available for this question..6. 11 .The logical data structure with a one-to-many relationship is a :

A.networkB.tree

C.chainD.relational

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

7. Answer & Explanation8. Answer:OptionB9. Explanation:10. No answer description available for this question..11. 12 .The highest level in the hierarchy of data organization is called

A.data bankB.database

C.data fileD.data record

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

12. Answer & Explanation13. Answer:OptionB14. Explanation:15. No answer description available for this question..16. 13 .In SQL, GRANT command is used to

A.allow user to access databasesB.allow user to create databases

C.grant system privileges, roles, and object privileges to uses and rolesD.choose auditing for specific SQL commands

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionC19. Explanation:20. No answer description available for this question..21. 14 .Which of the following is true of a network structure?

A.It is a physical representation of the dataB.It allows a many-to-many relationship

C.It is conceptually simpleD.It will be the dominant data base of the future

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

22. Answer & Explanation23. Answer:OptionB24. Explanation:25. No answer description available for this question..26. 15 .A form defines

A.where data is placed on the screenB.the width of each field

C.both (a) and (b)D.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

27. Answer & Explanation28. Answer:OptionC29. Explanation:30. No answer description available for this question..31. 16 .A file produced by a spreadsheet

A.is generally stored on disk in an ASCII text formatB.can be used as it by the DBMS

C.can be used for graphicD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

32. Answer & Explanation33. Answer:OptionA34. Explanation:35. No answer description available for this question..36. 17 .A large computer information system maintains many different computer files. Which amongst them is called a perpetual file?

A.Specialized fileB.Log file

C.Master fileD.Update file

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

37. Answer & Explanation38. Answer:OptionC39. Explanation:40. No answer description available for this question..41. 18 .Which command is used to remove a table from the database in SQL?

A.DELETE TABLEB.DROP TABLE

C.ERASE TABLED.UNATTACH TABLE

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

42. Answer & Explanation43. Answer:OptionB

1. 19 .Which of the following is not a relational database?

A.dBASE IVB.4th Dimension

C.FoxProD.Reflex

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

2. Answer & Explanation3. Answer:OptionD4. Explanation:5. No answer description available for this question..6. 20 .A network schema

A.restricts the structure to a one-to-many relationshipB.permits many-to-many relationships

C.stores data in tablesD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

7. Answer & Explanation8. Answer:OptionB9. Explanation:10. No answer description available for this question..11. 21 .When using a database management system, the first thing that you must do is to

A.create a database fileB.activate file editor

C.load the software into your microcomputerD.keep a floppy disk in readiness

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

12. Answer & Explanation13. Answer:OptionC14. Explanation:15. No answer description available for this question..16. 22 .Which two files are used during operation of the DBMS?

A.query language and utilitiesB.data manipulation language and query language

C.data dictionary and transaction logD.data dictionary and query language

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionC19. Explanation:20. No answer description available for this question..21. 23 .In a _____ a parent record type can be linked to one or more "child" record types, but a child record type can have only one parent.

A.Network databaseB.Relational database

C.Distributed databaseD.Hierarchical database

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

22. Answer & Explanation23. Answer:OptionD24. Explanation:25. No answer description available for this question..26. 24 .Sophisticated report generators can

A.print row-oriented reportsB.perform arithmetic operations

C.selectively retrieve and print portions of a listD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

27. Answer & Explanation28. Answer:OptionD29. Explanation:30. No answer description available for this question..31. 25 .To have a file hold a list, it is necessary to

A.identify the records in the listB.identify the name, width and type of the fields of each record.

C.decide which fields will be used as sort or index keysD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

32. Answer & Explanation33. Answer:OptionD34. Explanation:35. No answer description available for this question..36. 26 .The PROJECT command will create new table that has

A.more fields than the original tableB.more rows than the original table

C.both (a) and (b)D.None of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

37. Answer & Explanation38. Answer:OptionD39. Explanation:40. No answer description available for this question..41. 27 .Which of the following hardware components is the most important to the operation of a database management system?

A.high-resolution video displayB.printer

C.high speed, large-capacity diskD.plotter

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

42. Answer & Explanation43. Answer:OptionC

Database Systems1. 28 .A database management system

A.allows simultaneous access to multiple filesB.can do more than a record management system

C.is a collection of programs for managing data in a single fileD.both (a) and (b)

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

2. Answer & Explanation3. Answer:OptionD4. Explanation:5. No answer description available for this question..6. 29 .A top-to-bottom relationship among the items in a database is established by a

A.Hierarchical schemaB.Network schema

C.Relational schemaD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

7. Answer & Explanation8. Answer:OptionA9. Explanation:10. No answer description available for this question..11. 30 .What is the name given to the database management system which is able to handle full text data, image data, audio and video?

A.Full mediaB.Graphics media

C.MultimediaD.Hypertext

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

12. Answer & Explanation13. Answer:OptionC14. Explanation:15. No answer description available for this question..16. 31 .An-owner-member set in the CODASYL specifications may have

A.only one owner but many owner occurrencesB.only one member but many member occurrence

C.more than one member but only one occurrence per memberD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionA19. Explanation:20. No answer description available for this question..21. 32 .Which command is used to remove an index from the database in SQL?

A.DELETE INDEXB.DROP INDEX

C.REMOVE INDEXD.ROLL BACK INDEX

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

22. Answer & Explanation23. Answer:OptionB24. Explanation:25. No answer description available for this question..26. 33 .The files stored on a secondary stage device are composed of a hierarchy of data. What does a record in a file contain?

A.BitsB.Characters

C.Data fieldD.Schema

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

27. Answer & Explanation28. Answer:OptionC29. Explanation:30. No answer description available for this question..31. 34 .The relational model uses some unfamiliar terminology. A tuple is equivalent to a:

A.recordB.field

C.fileD.data base

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

32. Answer & Explanation33. Answer:OptionA34. Explanation:35. No answer description available for this question..36. 35 .If the record management system allows you to edit values before they are recorded on disk, you can

A.correct spelling changes before they are recordedB.change the name of a field

C.change the width of a fieldD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

37. Answer & Explanation38. Answer:OptionA39. Explanation:40. No answer description available for this question..41. 36 .In SQL, which command(s) is(are) used to enable/disable a database trigger?

A.MODIFY USERB.CHANGE USER

C.ALTER USERD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

42. Answer & Explanation43. Answer:OptionC

Database Systems1. 37 .The data dictionary tells the DBMS

A.what files are in the databaseB.what attribute are possessed by the data

C.what these files containD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

2. Answer & Explanation3. Answer:OptionD4. Explanation:5. No answer description available for this question..6. 38 .Sort/report generators

A.are faster than index/report generatorsB.require more disk space than index/report generators

C.do not need to sort before generating a reportD.both (a) and (b)

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

7. Answer & Explanation8. Answer:OptionB9. Explanation:10. No answer description available for this question..11. 39 .Periodically adding, changing and deleting file records is called file

A.UpdatingB.upgrading

C.restructuringD.renewing

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

12. Answer & Explanation13. Answer:OptionA14. Explanation:15. No answer description available for this question..16. 40 .In SQL, which command is used to make permanent changes made by statements issue since the beginning of a transaction?

A.ZIPB.PACK

C.COMMITD.SAVE

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionC19. Explanation:20. No answer description available for this question..21. 41 .A locked file can be

A.accessed by only one userB.modified by users with the correct password

C.is used to hide sensitive informationD.both (b) and (c)

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

22. Answer & Explanation23. Answer:OptionA24. Explanation:25. No answer description available for this question..26. 42 .Data item characteristics that are important in data management include

A.punctuationB.language

C.spellingD.width

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

27. Answer & Explanation28. Answer:OptionD29. Explanation:30. No answer description available for this question..31. 43 .What is the language used by most of the DBMSs for helping their users to access data?

A.High level languageB.Query language

C.SQLD.4GL

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

32. Answer & Explanation33. Answer:OptionB34. Explanation:35. No answer description available for this question..36. 44 .After you _____ a record, many data management the environments require you to issue a command to save the changes you made.

A.DeleteB.Update

C.Sort keyD.Index

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

37. Answer & Explanation38. Answer:OptionB39. Explanation:40. No answer description available for this question..41. 45 .Each of data files has a _____ that describe the way the data is stored in the file.

A.File structureB.Records

C.FieldsD.Database

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

42. Answer & Explanation43. Answer:OptionA

Database Systems1. 46 .Primitive operations common to all record management systems include

A.PrintB.Sort

C.Look-upD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

2. Answer & Explanation3. Answer:OptionC4. Explanation:5. No answer description available for this question..6. 47 .Which of the following is a database administrator's function?

A.database designB.backing up the database

C.performance monitoringD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

7. Answer & Explanation8. Answer:OptionD9. Explanation:10. No answer description available for this question..11. 48 .Which of the following is not a logical data-base structure?

A.treeB.relational

C.networkD.chain

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

12. Answer & Explanation13. Answer:OptionD14. Explanation:15. No answer description available for this question..16. 49 .A report generator is used to

A.update filesB.print files on paper

C.data entryD.All of the above

View AnswerRating:0out of5Discuss in Forum (0)|Rating This Question

17. Answer & Explanation18. Answer:OptionB

SQL :Q No.1 of 10

What does SQL stand for?Option 1Strong Question Language

Option 2Structured Question Language

Option 3Structured Query Language

Option 4Static Query Language

Q No.2 of 10

Which SQL statement is used to extract data from a databaseOption 1GET

Option 2OPEN

Option 3SELECT

Option 4EXTRACT

Q No.3 of 10

Which SQL statement is used to update data in a database?Option 1UPDATE

Option 2MODIFY

Option 3SAVE AS

Option 4SAVE

Q No.4 of 10

Which SQL statement is used to delete data from a database?Option 1DELETE

Option 2REMOVE

Option 3COLLAPSE

Option 4None of these

Q No.5 of 10

Which SQL statement is used to insert new data in a database?Option 1INSERT INTO

Option 2ADD NEW

Option 3INSERT NEW

Option 4ADD RECORD

Q No.6 of 10

With SQL, how do you select a column named "FirstName" from a table named "Persons"?Option 1SELECT FROM Person COLUMN FirstName

Option 2SELECT FirstName FROM Persons

Option 3EXTRACT FirstName FROM Persons

Option 4SELECT Persons.FirstName

Q No.7 of 10

With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?Option 1DELETE ROW FirstName='Peter' FROM Persons

Option 2DELETE FirstName='Peter' FROM Persons

Option 3DELETE FROM Persons WHERE FirstName = 'Peter'

Option 4Non of these

Q No.8 of 10

With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?Option 1INSERT INTO Persons ('Olsen') INTO LastName

Option 2INSERT INTO Persons (LastName) VALUES ('Olsen')

Option 3INSERT ('Olsen') INTO Persons (LastName)

Option 4Non of these

Q No.9 of 10

Which SQL keyword is used to sort the result-set?Option 1SORT

Option 2ORDER BY

Option 3SORT BY

Option 4ORDER

Q No.10 of 10

With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?Option 1SELECT * FROM Persons WHERE FirstName'Peter' AND LastName'Jackson'

Option 2SELECT FirstName='Peter', LastName='Jackson' FROM Persons

Option 3SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'

Option 4All of these

Q No.1 of 10

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?Option 1SELECT * FROM Persons WHERE FirstName='Peter'

Option 2SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'

Option 3SELECT * FROM Persons WHERE FirstName'Peter'

Option 4SELECT [all] FROM Persons WHERE FirstName='Peter'

Q No.2 of 10

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?Option 1SELECT * FROM Persons WHERE FirstName='%a%'

Option 2SELECT * FROM Persons WHERE FirstName='a'

Option 3SELECT * FROM Persons WHERE FirstName LIKE 'a%'

Option 4SELECT * FROM Persons WHERE FirstName LIKE '%a'

Q No.3 of 10

The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are trueOption 1True

Option 2False

Q No.4 of 10

Which SQL statement is used to return only different values?Option 1SELECT DIFFERENT

Option 2SELECT UNIQUE

Option 3SELECT DISTINCT

Option 4All of these

Q No.5 of 10

With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?Option 1SELECT * FROM Persons ORDER FirstName DESC

Option 2SELECT * FROM Persons SORT BY 'FirstName' DESC

Option 3SELECT * FROM Persons SORT 'FirstName' DESC

Option 4SELECT * FROM Persons ORDER BY FirstName DESC

Q No.6 of 10

With SQL, how can you insert a new record into the "Persons" table?Option 1INSERT ('Jimmy', 'Jackson') INTO Persons

Option 2INSERT VALUES ('Jimmy', 'Jackson') INTO Persons

Option 3INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

Option 4Non of these

Q No.7 of 10

With SQL, how can you count the number of records in the "Persons" table?Option 1SELECT COLUMNS() FROM Persons

Option 2SELECT COUNT() FROM Persons

Option 3SELECT COLUMNS(*) FROM Persons

Option 4SELECT COUNT(*) FROM Persons

Q No.8 of 10

The result of a SELECT statement can contain duplicate rows.Option 1True

Option 2False

Q No.9 of 10

Sometimes the expression "select count(*)" will return fewer rows than the expression "select count(value)".Option 1False

Option 2True

Q No.10 of 10

A NULL value is treated as a blank or 0Option 1False

Option 2True

Q No.1 of 2

The left outer join is one type of outer join. Another one is the.Option 1right outer

Option 2right

Option 3full

Option 4full outer

Option 5All of these

Q No.2 of 2

Which of the following is the correct SQL statement to use to remove rows from a table?Option 1REMOVE ROW

Option 2DELETE ROW

Option 3DROP

Option 4DELETE