Test
sdp 6
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (113)
1The PEAR DB functions can be accessed using DB::<function_name>.
- AVerdadero
- BFalso
2The string argument of the function for connecting to a database is of the format <DBMS software>://<user account>:<password>@<database server>
- AVerdadero
- BFalso
3The PEAR DB functon for connecting to a database is called DB::linkto database('string').
- AVerdadero
- BFalso
4• The DBMS software in <DBMS software>://<user account>:<password>@<database server> stands for the particular DBMS software package being connected to: for example mysqli for versions of MySQL starting with version 4.1.2
- AVerdadero
- BFalso
5• The PEAR DB function DB::is Error can be used to determine whether any database access operation was successful or not.
- AVerdadero
- BFalso
6• In PHP, an _____ array provides pairs of key=>value elements; the value of an element is referenced through its key and all key values in a particular array must be unique.
- ANumeric
- BValue
- CString
- DAssociative
7• Multi-line PHP comments start with // and end with #.
- AVerdadero
- BFalso
8• PHP written in C and usually comes installed with Unix: for other operating systems, the PHP interpreter can be downloaded from http://www.php.net
- AVerdadero
- BFalso
9• The PHP start tag is <?php and end the tag is ?>.
- AVerdadero
- BFalso
10• Web pages, where part of the information is extracted from databases or other data source, are called dynamic Web pages
- AVerdadero
- BFalso
11• In PHP, a ____ array associates a numeric index with each element in the array
- ANumeric
- BAssociated
- CVariable
- DString
12• PHP variable names start with a $ sign and can include characters, numbers, and the underscore character
- AVerdadero
- BFalso
13• Interpolating variables occurs only within single-quoted strings.
- AVerdadero
- BFalso
14• PHP programs are executed on the client.
- AVerdadero
- BFalso
15
• The auto-global predefined PHP variable $_POST is an array that holds all the values entered through form parameters.- AVerdadero
- BFalso
16• JDBC does not distinguish between queries that return single tuples and those that return multiple tuples.
- AVerdadero
- BFalso
17• The JDBC _____ libraries are called java.sql.*
- AMethod
- BFunction
- CClass
18• What are the advantages and disadvantages of the embedded SQL approach.
- AThe main advantage is the query text is part of the source code can be checked for syntax errors and validated against the database schema at compile time. The program is quite readable. Since queries are known in advance, the choice of program variables to hold query results is simple.
- BThe main advantage is flexibility in generating queries at runtime. Also, the library of function calls approach is able to call multiple data program.
- CThe main disadvantage is the query text is part of the source code can be checked for syntax errors and validated against the database schema at compile time. The program is quite readable. Since queries are known in advance, the choice of program variables to hold query results is simple.
- DDisadvantage are more complex programming, inability to do checking at compile time, and concerns about SQL runtime errors.
- EDisadvantage are the loss of flexibility in changing the query the query at runtime and that all changes to queries must be recompiled.
19• The use of function calls is a more dynamic approach for database programming than embedded SQL.
- AVerdadero
- BFalso
20• A _____ object is similar to a cursor in embedded SQL and an iterator in SQLJ.
- AProcedure
- BFunction call
- CResult Set
21• _____ is the part of the SQL standard that specifies how to write persistent stored modules.
- ASQL/PSM
- BXML
- CSQLJ
- DResultSet
22• Database stored procedures (aka persistent stored modules) are stored and executed by the DBMS at the database server.
- AVerdadero
- BFalso
23• Discuss advantages and diadvantages to the library of function calls approach
- ADisadvantage are the loss of flexibility in changing the query at runtime and that all changes to queries must be recompiled.
- BThe main advantage is flexibility in generating queries at runtime. Also, the library of function calls approach is able to call multiple data program.
- CThe main advantage is flexibility in generating queries at compile time. Also, the library of function calls approach is able to call multiple single program.
- DDisadvantages are more complex programming, inability to do checking at compile time, and concerns about SQL runtime errors.
- EThe main advantage is the query text is part of source code and can be checked for syntax errors and validated against the data. The program is quite readable.
24• It is necessary to have a binding between the data types of the programming language and the attribute data types in the data model
- AVerdadero
- BFalso
25• In SQLJ, embedded SQL commands are preceded by #sql.
- AVerdadero
- BFalso
26• One advantage of using an SQLJ translator is that it is not necessary to install drivers such as a JDBC driver.
- AVerdadero
- BFalso
27• Describe the three main approaches for database programming.
- A• Using a library of database functions. This approach provides what is known as an application programming interface (API) for accessing a database from applications programs.
- B• Using a library of database methods. This approach provides what is known as an application programming interface (API) for accessing a database from applications programs
- C• Embedded SQL. Embeding database commands in a general-purpose programming language. A preprocessor extracts the embedded SQL from the source code and replaces it with function calls to DBMS-generated code.
- D• Embedded SQL. Embeding database commands in a specific-purpose programming language. A preprocessor can not extract code, but function calls to be extracted to DBMS-generated code.
- E• Designing a new database programming language.
- F• Embedded SQL. Embeding database commands in a specific-purpose programming language. A preprocessor extracts the embedded SQL from the source code and replaces it with function calls to DBMS-generating code
28• In XML _____ defines the set of commands (names) that can be used
- A• Namespace
- B• Valid
- C• Document
- D• Invalid
29• In XML schema, the tag _____ is used tospecify primary keys.
- A• xs:element
- B• xsd:key
- C• psd:schema
- D• xs:sequence
30• A * following an element name means the element can be repeated zero or one times (an optional, single-valued, nonrepeating elements)
- AVerdadero
- BFalso
31• If an XML document is well-formed and follows a particular schema, it is _____
- A• Namespace
- B• Keys
- C• Invalid
- D• Valid
32• The XML schema, it is possible to specify constraints that correspond to unique and primary key constraints ina relational database, as well as foreign keys constraints
- AVerdadero
- BFalso
33• An element that does not have *, +, or ? following the element name means the element must appear exactly once in the document (a required, single-valued, nonrepeating element).
- AVerdadero
- BFalso
34• A ? following an element name means that element can be repeated zero or more times in the document (an optional, mult-valued, repeating element).
- AVerdadero
- BFalso
35• The basic object in XML is the XML document, which is structured using types and iterators.
- AVerdadero
- BFalso
36• How does a well-formed XML document look like?
- A• It is syntactically correct: a non-single root element with every element including a matching pair of start/end tags within the start-end of the parent element
- B• It must finish with an XML declaration to indicate the version of XML.
- C• It is syntactically correct: a single root element with every element including a matching pair of start/end tags within the start-end tags of the parent element
- D• It is syntactically correct: a single root element with every element except a matching pair of start/end tags within the start-end tags of the parent elements
- E• It must start with an XML declaration to indicate the version of XML
37• Struct type constructors include the set (T), list (T), bag(T), array(T), and dictionary (K,T) type constructors.
- AVerdadero
- BFalso
38• Three major differences between the relational and object database design.
- A• In ODB design a binary relationship can be declared in one direction or both. If attributes are included in both directions, there is a potential problem with redundancy.
- B• In ODB design a binary relationship can be declared in one direction or both. If attributes are included in both directions, there is no any problem
- C• In an ODB, operations must be defined early since they are part of the classes specifications. In RDBs, operations may not be defined until implementation
- D• In RDB inheritance is built into the model; ODBs do not have built-in constructs for inheritance.
- E• In an RDB, operations must be defined early since they are part of the class specifications. In an ODB, operations may not be defined until implementation
- F• In ODB inheritance is built into the model; RDBs do not have built-in constructs for inheritance.
39• The typical mechanisms for making an object an object persistent are naming and reachability.
- AVerdadero
- BFalso
40• The main property required of an OID is that it be immutable (should not change).
- AVerdadero
- BFalso
41• _____ inheritance occurs when a subtype inherits only some of the functions of a supertype.
- A• Generalisation
- B• Complete encapsulation
- C• Conditional
- D• Selective
42• In operator overloading (or polymorphism), an operation name may refer to several distinct implementations, depending on the type of object it is applied to.
- AVerdadero
- BFalso
43• In ______ all operations that can be applied to an object must be predefined.
- A• Half encapsulation
- B• Complete encapsulation
- C• Object identifier
- D• Feedback loop
44• The implementation of an operation is called its signature.
- AVerdadero
- BFalso
45• A subtype is used when a new type is needed that is similar but not identical to an already defined type.
- AVerdadero
- BFalso
46• The dictionary constructor creates a collection of two tupes (K,V) where the value of a key K can be used to retrieve the can be used to retrieve the corresponding value V.
- AVerdadero
- BFalso
47• An ODMS provides a unique identity to each independent object in the database via a unique, system-generated ____.
- A• Selective
- B• Complete encaplsulation
- C• Object identifier
48• An object typically has three components: state, timing, and behavior
- AVerdadero
- BFalso
49• The 80-20 rule suggests that 80% of the workload is presented by 20% of the most frequently used transactions, which govem the physical database design.
- AVerdadero
- BFalso
50• The phases (or activities) of the life cycle are not strictly in sequence; ______ are common among and within the phases of the life cycle.
- A• One-shot
- B• Requirements collection
- C• Feedback loop
- D• View integration
51• In the _____ approach to schema design, a scheme is designed for each user group or application based phase, these schemas are merged into a global conecptual schema.
- A• Requirements analysis
- B• Feedback loops
- C• Feasibility analysis
- D• One-shot
- E• View integration
52• A large database typically has large transaction volumes and rates, is used in service sector industries, and runs 24/7
- AVerdadero
- BFalso
53• Many organizations use data dictionary systems (information repositories) to manage meta-data, i.e., data that describes the database structure, constraints, applications, authorizations, users, and so forth.
- AVerdadero
- BFalso
54• What are the three goals of database design?
- Aa) Satisfy the information content requirements of the generalised users and applications.
- B• Support result
- C• Provide a natural and easy-to-understand structuring of the information.
- D• Support processing requirements and any performance objectives.
- E• Satisfy the information content requirements ofthe specified users and applications.
- F• Provide a comlicated structuring of the information.
55• _______ involves interacting with potential users and user groups to identify their particular problems and needs.
- A• view-integration
- B• requirements collection and analysis
- C• feasibility analysis
- D• one-shot
- E• feedback loop
56• A transaction processing system can be characterized as one with several dozen gigabytes of data and a schema with more than 30 or 40 distinct entity types
- AVerdadero
- BFalso
57• Identify the three criteria to guide the choice of physical database design options
- A• Space utisilation
- B• Availability of vendor services
- C• Transaction throughput
- D• Response time
- E• Familiarity of personnel with the system
58• Identify the three factors to consider in choosing one DBMS over another
- A• Space utisilation
- B• Organization-wide adoption of a certain philosophy (data model, vendor, methodology, tools)
- C• Availability of vendor services
- D• Transaction throughput
- E• Response time
- F• Familiarity of personnel with the system
59• _____ is concerned with analyzing potential application areas, identifying the economics of information gathering and dissemination, performing preiliminary cost-benefit studies, determining the complexity of data and processes, and setting up priorities among applications.
- A• Feasibility analysis
- B• Requirements collection and analysis
- C• View integration
- D• One-shot
- E• Feedback loops
60• The initial requirements can be expected to be formal, complete, consistent, and correct.
- AVerdadero
- BFalso
61• In the ______ schema design approach, the requirements from the different stakeholders are merged into a single set of requirements before the schema design begins.
- A• Requirements collection
- B• Feedback loop
- C• Centralized (or one-shot)
- D• Requirements analysis
62• What two things does minimizing redundancy imply?
- A• Reducing the need for multiple updates to maintain consistency across multiple copies of the same information.
- B• Reducing the redundant information in tuples.
- C• Making sure the semantics of the attributes is clear in the schema
- D• Minimizing redundant storage of the same information
- E• Disallowing the possibility of generating spurious tuples
63• Third normal form (3NF): R is 2NF and all non-prime attributes are transively dependent on the primary key.
- AVerdadero
- BFalso
64• First normal from (1NF): the domain of an attribute must include only atomic (simple, indivisible, scalar) values and the value of any attribute ina tuple must be a single value from the domain of that attribute.
- AVerdadero
- BFalso
65A functional dependency is a property of the relation schema R not of a particular legal relation state r or R, therefor it must understands the semantics of the attributes of R.
- AVerdadero
- BFalso
66Second normal form (2NF): R is 1NF and every non-prime attribute A in R is fully functionally dependent on the primary key of R
- AVerdadero
- BFalso
67What are four informal guidelines that may be used to measure the quality of a relation schema design?
- AReducing the need for multiple updates to maintain consistency across multiple copies of the same information.
- B• Disallowing the possibility of generating spurious tuples.
- C• Reducing the redundant information in tuples
- D• Reducing the NULL values in tuples
- E• Making sure the semantics of the attributes is clear in the schema
- F• Minimizing redundant storage of the same information
68Normalization of data can be considered a process of analyzing the given relation schemas based on their functional dependencies and primary keys to achieve closure on the domain space
- AVerdadero
- BFalso
69When mapping a binary M:N relationship type R, create a new relation S to represent R, including as foreign key attributes in S the primary keys of the relations that are the perticipating entity types (their combination in S is the composite primary key of S).
- AVerdadero
- BFalso
70The symbol σ (sigma) is used to denote the SELECT operator in the relational algebra
- AVerdadero
- BFalso
71A EQUIJOIN uses any of the comparison operators =, <, ≤, >, ≥, or ≠.
- AVerdadero
- BFalso
72The symbol π (pi) is used to denote the PROJECT operation in the relational algebra.
- AVerdadero
- BFalso
73A THETA JOIN uses the comparison operator =
- AVerdadero
- BFalso
74SQL is both a data definition language (DDL) and a data manipulation language (DML).
- AVerdadero
- BFalso
75A key uniquely identifies a tuple in a relation
- AVerdadero
- BFalso
76When the DELETE operation violates a contraint, the deletion must be rejected.
- AVerdadero
- BFalso
77Semantic integrity constarint may be enforced using mechanisms called triggers and assertions.
- AVerdadero
- BFalso
78If a multi-table query refers to two or more attributes with the same name, we must qualify the attribute name with the table name, e.g., TABLE.Attribute, to prevent ambiguity.
- AVerdadero
- BFalso
79A relation schema may only have one key.
- AVerdadero
- BFalso
80Tuples in a relation are ordered.
- AVerdadero
- BFalso
81The DELETE operation can violate referential integrity.
- AVerdadero
- BFalso
82The INSERT operation can violate domain constraints, key constraints, entity integrity, or referential integrity.
- AVerdadero
- BFalso
83The theortical basis of the relation data model is set theory and first-order predicate logic.
- AVerdadero
- BFalso
84Attributes that represent the same real-world concept must have identical names in different relations.
- AVerdadero
- BFalso
85When the INSERT operation violates a constraint, the default option is to reject the insertion.
- AVerdadero
- BFalso
86Attributes must have unique domains.
- AVerdadero
- BFalso
87NULL values may mean value unknown, value exits but is not available, attribute does not apply to this tuple (value undefined).
- AVerdadero
- BFalso
88All tuples in a relation must be distinct.
- AVerdadero
- BFalso
89The $d->query function takes an SQL command as its string argument and sends it to the database server for execution.
- AVerdadero
- BFalso
90The _____ is a collection of several libraries of functions for enhancing PHP.
- ADBMS
- BPHP Extension and Application Repository (PEAR)
- CMYSQL
- DPHP SQL
91The _____ variable is similar to cursor and iterator variables.
- A$d->query
- Bpost
- C$r
92The abend function can be used to terminate a PHP program if there is an error.
- AVerdadero
- BFalso
93The PHP function $d->nextID creates a sequence of unique values for a particular table.
- AVerdadero
- BFalso
94Creating a database design that only stores each logical data item in only one place in the database
- ANormalization
- BRelational data model
- CData abstraction
- DRedundancy
95Stores catalog information about schemas and constraints, design decisions, usage standards, application program descriptions, and user information
- AData dictionary (or data repository system or information repository)
- BRelational data model
- CAtomicity property
- DData abstraction
96Data that is derived from the database files but not explicitly stored
- ARelationship
- BRelational data model
- CVirtual data
- DVirtual date
97Represents an association among two or more entities
- A. Relationship
- BRelational data model
- CData abstraction
- DRedundancy
98Represents a database as a collection of tables, where each table can be stored as a separate file
- AData abstraction
- BAtomicity property
- CRedundancy
- DRelational data model
99Ensures that either all the database operations in a transaction are executed or none are
- AAtomicity property
- BAtomic property
- CRedundancy
- DData abstraction
100Storing the same data multiple times
- ARedundancy
- BData abstraction
- CRelationship
- DVirtual data
101Characteristic that allows program-data independence and program-operation independence
- ARedundancy
- BData abstraction
- CRelationship
- DRelational data model
102Choose correct answer
- A
- B
- C
- A
103Choose correct answer!!
- A
- B
- C
- A
104Choose one
- A
- B
- C
- A
105is typically used to loop over the tuples in a query result
- Acursor
- Bnamed
- Cpositional
- DImpedance mismatch
106iterator is associated with a query result in SQLJ by listing the attribute names and types that appear in the query
- Anamed
- Bcursor
- CImpedance mismatch
- Dpositional
107iterator lists only the attribute types that appear in a query result in SQLJ.
- Apositional
- BImpedance mismatch
- Cnamed
- Dcursor
108 is the term used to refer to the problems that occur because of differences between the database model and language model
- AImpedance mismatch
- Bpositional
- Cnamed
- Dcursor
109Used to choose a subset of the tuples from a relation that satisfies a selection condition
- A• LEFT OUTER JOIN
- B• SELECT
- C• PROJECT
- D• JOIN
- E• INTERSECTION
110Selects certain columns from the table and discards the other columns
- A• PROJECT
- B• SELECT
- C• LEFT OUTER JOIN
- D• JOIN
- E• INTERSECTION
111 = R S keeps every tuple in the first (left) relation R; if no matching tuples is found in S, then the attributes of S in the join filled with NULL values
- A• LEFT OUTER JOIN
- B• SELECT
- C• PROJECT
- D• JOIN
- E• INTERSECTION
112R S in the relational algebra combines related tuples in R and S
- A• JOIN
- B• INTERSECTION
- C• LEFT OUTER JOIN
- D• PROJECT
- E• SELECT
113R S in the relational algebra includes all tuples in both R and S
- A• JOIN
- B• INTERSECTION
- C• LEFT OUTER JOIN
- D• PROJECT
- E• SELECT
Información
- Descripción
- Test sobre sdp 6 , creado por Жарас Мергазы el 16/12/2017.
- Autor
- Жарас Мергазы
- Idioma
- English
- Visitas
- 992
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test