SlideShare a Scribd company logo
1 of 14
Database



  by Tanat Tonguthaisri
    itpe@nstda.or.th
1. Which of the following is used for
supporting decision making by
organizing, integrating, and accumulating
a large volume of data obtained through
various corporate activities?

       a)   Data administration
       b)   Data warehouse
       c)   Data dictionary
       d)   Data mapping
2. A hard disk failure occurred on a mail server, and e-mails of
many users were lost. Recovery of data was attempted, but e-
mails sent and received during the two-week period after the last
backup could not be restored because backups were only
created every two weeks. Taking a lesson from this incident, a
measure is to be implemented to allow restoration up to the state
of the day before such a failure. Which of the following is an
appropriate measure?

              a) Performing daily incremental backup in addition to biweekly
                 (every two-week) full backup
              b) Accumulating e-mails on multiple different hard disks in a
                 distributed manner
              c) Implementing hard disk mirroring on the mail server for
                 higher reliability, without changing the existing backup
                 schedule
              d) Storing daily backup onto the same hard disk media, and a
                 biweekly (every two-week) copy of the backup to another
                 storage media
3. A program in operation detected that the sales
data exceeded the upper limit. As a result of
checking the input form, it was found that sales
quantity exceeded the upper limit by two digits.
Which of the following is the appropriate action for
the operations department to take toward this data?

      a) Correcting the data at the operations department
         upon the department head approval
      b) Consulting the system development department
      c) Discarding such data
      d) Asking the department which issued the input form to
         check it
4. When relational databases are used,
which of the following is an appropriate
purpose of normalizing data?
    a)To guarantee data compatibility between
       heterogeneous computers
    b)To prevent data duplication as well as
       occurrence of inconsistency at the time of
       updating data
    c) To eliminate characters that cannot be
       transmitted when a database is used over a
       network
    d)To handle data storage areas distributed
       over multiple media as a contiguous storage
       area
5. Under an environment where several users have
access to a database simultaneously, a user tries to
view the data while another user is updating it. In order
to assure data integrity, which of the following is an
appropriate control method in the database
management system?
     a) Interrupting update processing and permitting the
        user to view the data
     b) Permitting the user to view the latest data while
        updating
     c) Permitting the user to view the data after
        completion of the update
     d) Discarding the updated data and permitting the
        user to view the data before the update
6. Which of the following is an appropriate
explanation of a commercial database
service?
       a)Publishing information collected only from
          the commercial field free of charge in the
          form of a database
       b)Providing professional advice on various
          issues that occur when a database is being
          designed and built
       c) Providing information for profit by creating a
          database of information collected in specific
          fields
       d)Managing user-built databases on behalf of
          users, in order to release information to the
          public
7. There is an order entry system that is used to enter and
manage orders from customers. A numbering printer is used to
print sequential order numbers on order forms in order of arrival
unless the forms have mistakes such as missing information.
When the order data shown below is entered in this order entry
system, which of the following is the item that should be checked
so as not to enter the duplicate order data?

Order data

   Order number Order date Product code   Quantity   Customer code



                      a) Customer code
                      b) Product code
                      c) Order number
                      d) Order date
8. Candidates for operating a new business
are selected from all of the employees based
on the conditions below. When a decision
table is used to represent the selection
process, which of the following is the
appropriate “conditions table” to be inserted
into the decision table?

      [Conditions for candidates]
        (1) The employee has selected “I am interested
        in IT” in the questionnaire.
        (2) The employee has a score of 85 or higher on
        the IT aptitude test.
        (3) An employee with a test score lower than 85
        can become a substitute candidate if the
        employee has worked for five or more years in
        the current workplace.
Selected “I am interested in IT” in the questionnaire

Scored 85 or higher on the IT aptitude test                                  Conditions table

Has five or more years of working experience in the current workplace

Candidate                                                               X       –       –       –

Substitute                                                              –       X       –       –

Not applicable                                                          –       –      X        X


                 a)                                                     b)
                         N       N        Y        Y                           N       Y        N   Y

                         Y       N        N        Y                           Y       N        N   –

                         –       Y        N        –                            –      Y        N   –




                 c)                                                     d)
                         Y       N        N        Y                           Y       Y        Y   N

                         Y       Y        N        N                           Y       N        N   –

                         –        –       N        Y                            –      Y        N   –
9. In a company which has its offices dispersed in several
buildings, it is decided to construct a relational database to
manage the locations where PCs are installed. “Asset” table,
“Room” table, and “Building” table are created, and these
tables are linked. When new data is entered, data in the
table to be referenced should exist beforehand. Which of the
following is the appropriate sequence of entering data into
each table? Note that the underlined items in each table
indicate the primary keys or the foreign keys.
         Asset
          PCNo   BuildingNo   RoomNo    ModelName
                                                      Room
                                                      BuildingNo   RoomNo   RoomName

                        Building
                         BuildingNo    BuildingName


    a)   “Asset” table → “Building” table → “Room” table
    b)   “Building” table → “Room” table → “Asset” table
    c)   “Room” table → “Asset” table → “Building” table
    d)   “Room” table → “Building” table → “Asset” table
10. Which of the following is an
appropriate explanation of the table
obtained when the SELECT
statement shown below is executed?


 SELECT Products.Product_code, SUM(Unit_price*Sales_volume)
    FROM Products, Sales
    WHERE Products.Product_code = Sales.Product_code
    GROUP BY Products.Product_code
    ORDER BY SUM(Unit_price*Sales_volume)
Products                                   Sales
Product_code   Product_name   Unit_price     Customer   Product_code   Sales_volume
   A5023       Shampoo              500    Company K       A5023              100
   A5025       Rinse                400    Store S         A5023              150
   A5027       Soap                 100    Company K       A5025              120
                                           Company K       A5027              100
                                           Store S         A5027              160

  a) A table with 3 rows and 2 columns containing total sales
     grouped by product code is obtained.
  b) A table with 1 row and 1 column containing total sales
     for all products is obtained.
  c) A table with 2 rows and 2 columns containing total sales
     for each customer is obtained.
  d) A table with 15 rows and 2 columns containing a list of
     sales grouped by customer and by product code is
     obtained.
11. When a database is used, the
execution of a function that can update
information during search may cause data
inconsistencies in the database. Which of
the following is an appropriate function to
prevent this situation?

            a) Commitment control
            b) Deadlock avoidance
            c) Exclusive control
            d) Shared access

More Related Content

Similar to Database (IP)

(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%
liamSali
 
(New) final exam for bis 220 bis 220 all correct answers 100%
(New) final exam for bis 220 bis 220 all correct answers 100%(New) final exam for bis 220 bis 220 all correct answers 100%
(New) final exam for bis 220 bis 220 all correct answers 100%
ri0908O0o
 
(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%
quikly11
 
Bis 220 final exam
Bis 220 final examBis 220 final exam
Bis 220 final exam
enersivard
 
Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%
Austing_3
 
(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%
quikly11
 
Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%
liamSali
 
(New) final exam for bis 219 bis 219 all correct answers 100%
(New) final exam for bis 219 bis 219 all correct answers 100%(New) final exam for bis 219 bis 219 all correct answers 100%
(New) final exam for bis 219 bis 219 all correct answers 100%
ri0908O0o
 
(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%
liamSali
 
Supply Chain Management- MIS
Supply Chain Management- MISSupply Chain Management- MIS
Supply Chain Management- MIS
Nilanjan Paul
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
sharing3444
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
singup22
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
largest433
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
flyperhan
 

Similar to Database (IP) (20)

(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%
 
(New) final exam for bis 220 bis 220 all correct answers 100%
(New) final exam for bis 220 bis 220 all correct answers 100%(New) final exam for bis 220 bis 220 all correct answers 100%
(New) final exam for bis 220 bis 220 all correct answers 100%
 
(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%(New) final exam for bis 220 all correct answers 100%
(New) final exam for bis 220 all correct answers 100%
 
Bis 220 final exam
Bis 220 final examBis 220 final exam
Bis 220 final exam
 
Bis 220 final exam
Bis 220 final examBis 220 final exam
Bis 220 final exam
 
Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%
 
(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%
 
Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%Bis 219 final exam mcq`s correct answers 100%
Bis 219 final exam mcq`s correct answers 100%
 
(New) final exam for bis 219 bis 219 all correct answers 100%
(New) final exam for bis 219 bis 219 all correct answers 100%(New) final exam for bis 219 bis 219 all correct answers 100%
(New) final exam for bis 219 bis 219 all correct answers 100%
 
(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%(New) final exam for bis 219 all correct answers 100%
(New) final exam for bis 219 all correct answers 100%
 
Supply Chain Management- MIS
Supply Chain Management- MISSupply Chain Management- MIS
Supply Chain Management- MIS
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
 
Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%Bis 220 bis220 final exam correct 100%
Bis 220 bis220 final exam correct 100%
 
Bis 220 final examination
Bis 220 final examinationBis 220 final examination
Bis 220 final examination
 
Bis 220 final
Bis 220 finalBis 220 final
Bis 220 final
 
Bis 220
Bis 220 Bis 220
Bis 220
 
Bis 220 Final Exam
Bis 220  Final Exam Bis 220  Final Exam
Bis 220 Final Exam
 
Bis 220 final exams
Bis 220 final examsBis 220 final exams
Bis 220 final exams
 

More from Tanat Tonguthaisri

More from Tanat Tonguthaisri (20)

Siam RegTech for Fintech Challenge
Siam RegTech for Fintech ChallengeSiam RegTech for Fintech Challenge
Siam RegTech for Fintech Challenge
 
Siam RegTech
Siam RegTechSiam RegTech
Siam RegTech
 
Messaging 20170615
Messaging 20170615Messaging 20170615
Messaging 20170615
 
Learn SABAI for YC Startup School
Learn SABAI for YC Startup SchoolLearn SABAI for YC Startup School
Learn SABAI for YC Startup School
 
Narration 20170615
Narration 20170615Narration 20170615
Narration 20170615
 
Configuration management - certificate of achievement
Configuration management - certificate of achievementConfiguration management - certificate of achievement
Configuration management - certificate of achievement
 
Siam RegTech
Siam RegTechSiam RegTech
Siam RegTech
 
IBM Blockchain for developers
IBM Blockchain for developersIBM Blockchain for developers
IBM Blockchain for developers
 
Learn SABAI for Research Gap Fund
Learn SABAI for Research Gap FundLearn SABAI for Research Gap Fund
Learn SABAI for Research Gap Fund
 
RIAN SABAI
RIAN SABAIRIAN SABAI
RIAN SABAI
 
Management (IP)
Management (IP)Management (IP)
Management (IP)
 
Strategy (IP)
Strategy (IP)Strategy (IP)
Strategy (IP)
 
Human Interface & Multimedia
Human Interface & MultimediaHuman Interface & Multimedia
Human Interface & Multimedia
 
Basic Theory (IP)
Basic Theory (IP)Basic Theory (IP)
Basic Theory (IP)
 
Network (IP)
Network (IP)Network (IP)
Network (IP)
 
Security (IP)
Security (IP)Security (IP)
Security (IP)
 
Medium Questions
Medium QuestionsMedium Questions
Medium Questions
 
Basic Theory (FE)
Basic Theory (FE)Basic Theory (FE)
Basic Theory (FE)
 
Security (FE)
Security (FE)Security (FE)
Security (FE)
 
Network (FE)
Network (FE)Network (FE)
Network (FE)
 

Database (IP)

  • 1. Database by Tanat Tonguthaisri itpe@nstda.or.th
  • 2. 1. Which of the following is used for supporting decision making by organizing, integrating, and accumulating a large volume of data obtained through various corporate activities? a) Data administration b) Data warehouse c) Data dictionary d) Data mapping
  • 3. 2. A hard disk failure occurred on a mail server, and e-mails of many users were lost. Recovery of data was attempted, but e- mails sent and received during the two-week period after the last backup could not be restored because backups were only created every two weeks. Taking a lesson from this incident, a measure is to be implemented to allow restoration up to the state of the day before such a failure. Which of the following is an appropriate measure? a) Performing daily incremental backup in addition to biweekly (every two-week) full backup b) Accumulating e-mails on multiple different hard disks in a distributed manner c) Implementing hard disk mirroring on the mail server for higher reliability, without changing the existing backup schedule d) Storing daily backup onto the same hard disk media, and a biweekly (every two-week) copy of the backup to another storage media
  • 4. 3. A program in operation detected that the sales data exceeded the upper limit. As a result of checking the input form, it was found that sales quantity exceeded the upper limit by two digits. Which of the following is the appropriate action for the operations department to take toward this data? a) Correcting the data at the operations department upon the department head approval b) Consulting the system development department c) Discarding such data d) Asking the department which issued the input form to check it
  • 5. 4. When relational databases are used, which of the following is an appropriate purpose of normalizing data? a)To guarantee data compatibility between heterogeneous computers b)To prevent data duplication as well as occurrence of inconsistency at the time of updating data c) To eliminate characters that cannot be transmitted when a database is used over a network d)To handle data storage areas distributed over multiple media as a contiguous storage area
  • 6. 5. Under an environment where several users have access to a database simultaneously, a user tries to view the data while another user is updating it. In order to assure data integrity, which of the following is an appropriate control method in the database management system? a) Interrupting update processing and permitting the user to view the data b) Permitting the user to view the latest data while updating c) Permitting the user to view the data after completion of the update d) Discarding the updated data and permitting the user to view the data before the update
  • 7. 6. Which of the following is an appropriate explanation of a commercial database service? a)Publishing information collected only from the commercial field free of charge in the form of a database b)Providing professional advice on various issues that occur when a database is being designed and built c) Providing information for profit by creating a database of information collected in specific fields d)Managing user-built databases on behalf of users, in order to release information to the public
  • 8. 7. There is an order entry system that is used to enter and manage orders from customers. A numbering printer is used to print sequential order numbers on order forms in order of arrival unless the forms have mistakes such as missing information. When the order data shown below is entered in this order entry system, which of the following is the item that should be checked so as not to enter the duplicate order data? Order data Order number Order date Product code Quantity Customer code a) Customer code b) Product code c) Order number d) Order date
  • 9. 8. Candidates for operating a new business are selected from all of the employees based on the conditions below. When a decision table is used to represent the selection process, which of the following is the appropriate “conditions table” to be inserted into the decision table? [Conditions for candidates] (1) The employee has selected “I am interested in IT” in the questionnaire. (2) The employee has a score of 85 or higher on the IT aptitude test. (3) An employee with a test score lower than 85 can become a substitute candidate if the employee has worked for five or more years in the current workplace.
  • 10. Selected “I am interested in IT” in the questionnaire Scored 85 or higher on the IT aptitude test Conditions table Has five or more years of working experience in the current workplace Candidate X – – – Substitute – X – – Not applicable – – X X a) b) N N Y Y N Y N Y Y N N Y Y N N – – Y N – – Y N – c) d) Y N N Y Y Y Y N Y Y N N Y N N – – – N Y – Y N –
  • 11. 9. In a company which has its offices dispersed in several buildings, it is decided to construct a relational database to manage the locations where PCs are installed. “Asset” table, “Room” table, and “Building” table are created, and these tables are linked. When new data is entered, data in the table to be referenced should exist beforehand. Which of the following is the appropriate sequence of entering data into each table? Note that the underlined items in each table indicate the primary keys or the foreign keys. Asset PCNo BuildingNo RoomNo ModelName Room BuildingNo RoomNo RoomName Building BuildingNo BuildingName a) “Asset” table → “Building” table → “Room” table b) “Building” table → “Room” table → “Asset” table c) “Room” table → “Asset” table → “Building” table d) “Room” table → “Building” table → “Asset” table
  • 12. 10. Which of the following is an appropriate explanation of the table obtained when the SELECT statement shown below is executed? SELECT Products.Product_code, SUM(Unit_price*Sales_volume) FROM Products, Sales WHERE Products.Product_code = Sales.Product_code GROUP BY Products.Product_code ORDER BY SUM(Unit_price*Sales_volume)
  • 13. Products Sales Product_code Product_name Unit_price Customer Product_code Sales_volume A5023 Shampoo 500 Company K A5023 100 A5025 Rinse 400 Store S A5023 150 A5027 Soap 100 Company K A5025 120 Company K A5027 100 Store S A5027 160 a) A table with 3 rows and 2 columns containing total sales grouped by product code is obtained. b) A table with 1 row and 1 column containing total sales for all products is obtained. c) A table with 2 rows and 2 columns containing total sales for each customer is obtained. d) A table with 15 rows and 2 columns containing a list of sales grouped by customer and by product code is obtained.
  • 14. 11. When a database is used, the execution of a function that can update information during search may cause data inconsistencies in the database. Which of the following is an appropriate function to prevent this situation? a) Commitment control b) Deadlock avoidance c) Exclusive control d) Shared access