Deck 7: Databases in Applications
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/93
Play
Full screen (f)
Deck 7: Databases in Applications
1
________ is the process of assigning pieces of application code to clients or servers.
A) Application partitioning
B) Modularizing programs
C) Code distribution
D) Program breakup
A) Application partitioning
B) Modularizing programs
C) Code distribution
D) Program breakup
A
2
A(n) ________ is a set of application routines that programs use to direct the performance of procedures by the computer's operating system.
A) API
B) MOM
C) RPC
D) LAN
A) API
B) MOM
C) RPC
D) LAN
A
3
The architecture that most applications use that separates the business logic, presentation logic, and database logic is called:
A) model-value-controller.
B) model-view-controller.
C) JSP.
D) frameworks.
A) model-value-controller.
B) model-view-controller.
C) JSP.
D) frameworks.
B
4
One major disadvantage of JSP is:
A) it runs slow.
B) HTML, Java cod,e and SQL code are mixed together.
C) it is not popular.
D) it does not use XML.
A) it runs slow.
B) HTML, Java cod,e and SQL code are mixed together.
C) it is not popular.
D) it does not use XML.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
5
________ is/are any of several classes of software that allow an application to interoperate with other software without requiring the user to understand all software involved.
A) User interface enhancers
B) Middleware
C) Interface managers
D) MPP
A) User interface enhancers
B) Middleware
C) Interface managers
D) MPP
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
6
Many Python web applications use:
A) iPython.
B) Django.
C) jQuery.
D) stored procedures.
A) iPython.
B) Django.
C) jQuery.
D) stored procedures.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
7
The client/server architectures that have evolved can be distinguished by the distribution of ________ across clients and servers.
A) memory
B) files
C) application logic components
D) query logic components
A) memory
B) files
C) application logic components
D) query logic components
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
8
A mechanism in a ResultSet object in Java that points to the current row of data is called a:
A) stored procedure.
B) trigger.
C) table.
D) cursor.
A) stored procedure.
B) trigger.
C) table.
D) cursor.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following is a component of processing logic?
A) Input
B) Output
C) Retrieval
D) Business rules
A) Input
B) Output
C) Retrieval
D) Business rules
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
10
A PC configured to handle user interfaces with limited local storage is called a(n):
A) fat client.
B) thin client.
C) light client.
D) overweight client.
A) fat client.
B) thin client.
C) light client.
D) overweight client.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
11
A data-interchange format easily for humans to read and machines to parse and process is called:
A) Java Oriented Notation (JON).
B) HTML.
C) XML.
D) JavaScript Object Notation (JSON).
A) Java Oriented Notation (JON).
B) HTML.
C) XML.
D) JavaScript Object Notation (JSON).
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
12
The LAMP stack consists of all of the following EXCEPT:
A) Apache.
B) MySQL.
C) PHP or Python.
D) IIS.
A) Apache.
B) MySQL.
C) PHP or Python.
D) IIS.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
13
A client PC that is responsible for processing presentation logic, extensive application and business rules logic, as well as many DBMS functions is called a:
A) file server.
B) file processor.
C) database server.
D) fat client.
A) file server.
B) file processor.
C) database server.
D) fat client.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
14
Which Java method retrieves the next row of a cursor?
A) next()
B) first()
C) get()
D) load()
A) next()
B) first()
C) get()
D) load()
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is NOT a common distribution logic for two-tiered server environments?
A) Fat client
B) Tall client
C) Thin client
D) Distributed
A) Fat client
B) Tall client
C) Thin client
D) Distributed
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is not a basic step to accessing a database from an application:
A) register database driver.
B) open a connection.
C) define physical storage.
D) query the database.
A) register database driver.
B) open a connection.
C) define physical storage.
D) query the database.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
17
All of the following are key components of a web application EXCEPT:
A) database server.
B) web server.
C) processing-logic server.
D) web browser.
A) database server.
B) web server.
C) processing-logic server.
D) web browser.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
18
A computer that provides database storage and access in a client/server environment is called a(n):
A) database server.
B) file server.
C) cloud data store.
D) info server.
A) database server.
B) file server.
C) cloud data store.
D) info server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
19
An application server
A) provides basic functionality for receiving and responding to requests from browsers.
B) provides the building blocks for creating dynamic web sites and web-based applications.
C) provides storage logic.
D) none of the above.
A) provides basic functionality for receiving and responding to requests from browsers.
B) provides the building blocks for creating dynamic web sites and web-based applications.
C) provides storage logic.
D) none of the above.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
20
A client PC that is responsible for processing presentation logic, extensive application and business rules logic, and many DBMS functions is called a(n):
A) server.
B) fat client.
C) thin client.
D) workstation.
A) server.
B) fat client.
C) thin client.
D) workstation.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
21
All of the following are well-accepted characteristics of transactions EXCEPT:
A) Atomicity.
B) Consistency.
C) Persistence.
D) Durability.
A) Atomicity.
B) Consistency.
C) Persistence.
D) Durability.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
22
All of the following are additional methods of Web security EXCEPT:
A) restrict the number of users on the Web server.
B) restrict access to the Web server.
C) remove unneeded programs.
D) blacklist bad users.
A) restrict the number of users on the Web server.
B) restrict access to the Web server.
C) remove unneeded programs.
D) blacklist bad users.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
23
A(n) ________ prevents another transaction from reading and therefore updating a record until it is unlocked.
A) record controller
B) exclusive lock
C) authorization rule
D) shared lock
A) record controller
B) exclusive lock
C) authorization rule
D) shared lock
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is a type of network security?
A) Authentication of the client workstation
B) Password naming conventions
C) Guidelines for frequency of password changes
D) Random password guessing
A) Authentication of the client workstation
B) Password naming conventions
C) Guidelines for frequency of password changes
D) Random password guessing
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
25
A sequence of steps that constitute a well-defined business activity is called a:
A) transaction.
B) transfixture.
C) database.
D) table.
A) transaction.
B) transfixture.
C) database.
D) table.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
26
Durability means that:
A) transactions can't be erased.
B) once a transaction is committed, no subsequent failure of the database can reverse the effect of the transaction.
C) transactions can withstand failure.
D) transactions never finish on time.
A) transactions can't be erased.
B) once a transaction is committed, no subsequent failure of the database can reverse the effect of the transaction.
C) transactions can withstand failure.
D) transactions never finish on time.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
27
An optimistic approach to concurrency control is called:
A) versioning.
B) denormalization.
C) deadlock resolution.
D) HappyControl.
A) versioning.
B) denormalization.
C) deadlock resolution.
D) HappyControl.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
28
A common encryption method to secure data traveling between a client and a server is called:
A) Secure Sockets Layer (SSL).
B) Secure Synchronization Layer (SSL).
C) RSA.
D) ITT.
A) Secure Sockets Layer (SSL).
B) Secure Synchronization Layer (SSL).
C) RSA.
D) ITT.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following threats involves outside parties using information to embarrass a company?
A) Accidental loss
B) Theft and fraud
C) Loss of confidentiality
D) Loss of data integrity
A) Accidental loss
B) Theft and fraud
C) Loss of confidentiality
D) Loss of data integrity
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
30
The actions that must be taken to ensure data integrity is maintained during multiple simultaneous transactions are called ________ actions.
A) logging
B) concurrency control
C) transaction authorization
D) multiple management
A) logging
B) concurrency control
C) transaction authorization
D) multiple management
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
31
How the database results are read into memory is determined by:
A) the program.
B) the database driver.
C) the operating system.
D) none of the above.
A) the program.
B) the database driver.
C) the operating system.
D) none of the above.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
32
Security measures for dynamic Web pages are different from static HTML pages because:
A) dynamic Web pages are built "on the fly."
B) static Web pages contain more sensitive data.
C) the connection requires full access to the database for dynamic pages.
D) HTML is more complex than dynamic Web pages.
A) dynamic Web pages are built "on the fly."
B) static Web pages contain more sensitive data.
C) the connection requires full access to the database for dynamic pages.
D) HTML is more complex than dynamic Web pages.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
33
A transaction is considered isolated when:
A) it runs in a vacuum.
B) any changes in the database are not revealed to the user until the transaction is complete.
C) it can only be run on one server.
D) users can see changes to tables before the transaction is complete.
A) it runs in a vacuum.
B) any changes in the database are not revealed to the user until the transaction is complete.
C) it can only be run on one server.
D) users can see changes to tables before the transaction is complete.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
34
All of the following are advantages of stored procedures EXCEPT:
A) performance improves for compiled SQL statements.
B) network traffic deceases.
C) portability.
D) thinner client.
A) performance improves for compiled SQL statements.
B) network traffic deceases.
C) portability.
D) thinner client.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
35
A business transaction requires:
A) a trigger.
B) a stored procedure.
C) several actions against the database.
D) human intervention.
A) a trigger.
B) a stored procedure.
C) several actions against the database.
D) human intervention.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
36
The extent of the database resource that is included with each lock is called the level of:
A) impact.
B) management.
C) lock granularity.
D) TIO.
A) impact.
B) management.
C) lock granularity.
D) TIO.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
37
The role responsible for administering database security is:
A) Data Administration.
B) Database Administration.
C) Security.
D) Developers.
A) Data Administration.
B) Database Administration.
C) Security.
D) Developers.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
38
The role that is responsible for developing overall policies and procedures for database security is:
A) Data Administration.
B) Database Administration.
C) Database Development.
D) Accounting.
A) Data Administration.
B) Database Administration.
C) Database Development.
D) Accounting.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
39
In order for a transaction to be consistent:
A) it must run the same way all the time.
B) it must tell the truth.
C) it must run using the same amount of memory.
D) any database constraints that must be true before the transaction must also be true after the transaction.
A) it must run the same way all the time.
B) it must tell the truth.
C) it must run using the same amount of memory.
D) any database constraints that must be true before the transaction must also be true after the transaction.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
40
A(n) ________ is a procedure for acquiring the necessary locks for a transaction where all necessary locks are acquired before any are released.
A) record controller
B) exclusive lock
C) authorization rule
D) two-phase lock
A) record controller
B) exclusive lock
C) authorization rule
D) two-phase lock
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
41
The storage component of a client/server architecture is responsible for data storage and retrieval from the physical storage devices associated with the application.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
42
Two-tier architectures are much more scalable than three-tier architectures.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
43
Client/server describes a networked computing model that distributes processes between computers that request services and computers that provide services.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
44
An API is a set of routines that a database server uses to access database objects.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
45
In some three-tier architectures, most application code is stored on the application server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
46
Java servlets execute from within another program and reside on the server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
47
Three-tier architectures generally result in higher long-term costs.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
48
Business rules logic includes such activities as data validation and identification of processing errors.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
49
Geolocation logic is the application logic component responsible for data storage and retrieval.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
50
A client PC that is responsible for presentation logic, application logic, and many DBMS functions is called a fat client.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
51
Application partitioning gives developers the opportunity to write application code that can later be placed on either a client workstation or a server, depending upon which location will give the best performance.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
52
A client/server configuration that has three layers (one client and two servers) has a three-tier architecture.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
53
The process of assigning parts of an application to a client or server is called application partitioning.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
54
ODBC is an application programming interface that provides a common language for application programs to access and process an SQL database independent of the particular RDBMS that is accessed.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
55
The W3C standard for Web privacy is called:
A) the Web privacy act.
B) Platform for Privacy Preferences.
C) Freedom of Web Information Act.
D) the Magna Carta.
A) the Web privacy act.
B) Platform for Privacy Preferences.
C) Freedom of Web Information Act.
D) the Magna Carta.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
56
When developing an application, one must decide where it will be placed when it is developed.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
57
A web server is a key component of web applications.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
58
A fat client does most of its processing on the server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
59
The presentation logic component of a client/server system is responsible for formatting and presenting data on the user's screen.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
60
An application server provides basic functionality for receiving and responding to requests from browsers.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
61
The LAMP stack consists of Apache, PHP and MySQL.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
62
A transaction is durable if it can resist failure.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
63
Loss of data integrity means that someone has stolen data from the database server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
64
Database administrators are responsible for administering database security.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
65
Loss of confidentiality is a threat that involves outside parties using information to embarrass a company.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
66
Storage logic is provided by an application server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
67
All .html files can be processed by the web server itself.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
68
Open Database Connectivity is an application programming interface that provides a common language for application programs to access and process SQL databases independent of the particular RDBMS that is accessed.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
69
Versioning is a pessimistic approach to concurrency control.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
70
ABET is a common encryption method used to secure data traveling between a client and a server.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
71
A shared lock prevents another transaction from reading a record.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
72
All transactions must have the ACID characteristics.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
73
Level of lock granularity is the extent of a database resource include with each lock.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
74
A transaction is consistent if it always runs with the same amount of memory.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
75
A database is a sequence of steps that constitute a well-defined business activity.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
76
During multiple simultaneous transactions data integrity is maintained by logging.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
77
Two-phase locking is a procedure for acquiring locks for a transaction before any are released.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
78
When changes to the database that a transaction imposes are not revealed to the user until the transaction is completed then it is considered isolated.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
79
Database administrators are responsible for developing overall policies and procedures for database security.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck
80
A business transaction requires several actions against a database.
Unlock Deck
Unlock for access to all 93 flashcards in this deck.
Unlock Deck
k this deck