Questão 1
Questão
The ___________ R S keeps tuple in the first {left} relation R; if no matching tuple found in S, then the attribute of S in the join are filled with NULL values
Responda
-
o LEFT OUTER JOIN
-
o RIGHT OUTER JOIN
-
o FULL OUTER JOIN
-
o LEFT INNER JOIN
Questão 2
Questão
If a relation schema has more than one key, each is called a _______ key.
Responda
-
o Candidate
-
o Primary
-
o Public
-
o Foreign
Questão 3
Questão
A _________conflict arises when an attribute may have different domains in two schemas, e.g. pounds vs kilograms
Responda
-
o Domain
-
o Type
-
o Norming
-
o Constraints
Questão 4
Questão
UML _________ diagrams describe the dynamic relationships among components
Responda
-
o Behavioral
-
o Structural
-
o Class
-
o Direct
Questão 5
Questão
Objects in an object-oriented programming language exist only during program execution, therefore they are called transient objects; an object-oriented database can extend the existence of objects so that they are stored permanently, therefore they are called
Responda
-
o persistent object
-
o instance variable
-
o attribute
-
o object structure
Questão 6
Questão
_____ is the term used to refer to the problems that occur because of difference between the database model and the programming language model.
Responda
-
o Independence mismatch
-
o Denormalisation
-
o Redundancy
-
o Duplication
Questão 7
Questão
A __________________ is typically used to loop over the tuples in a query result
Questão 8
Questão
NULL values may mean value unknown, value exists but isn't available, and attribute does not apply to this tuple (value undefined)
Questão 9
Questão
A THETA JOIN uses any of the comparison operators =,<,> or (not equal)
Questão 10
Questão
For structured data, the schema information is mixed in with the data values, so it is sometimes referred to as self-describing data
Questão 11
Questão
The main advantage of using a function call interface is that it makes it easier to access multiple databases within the same application program
Questão 12
Questão
In PHP, Interpolating variables may occur within double-quoted or single-quoted strings
Questão 13
Questão
In PHP, the $d->query function takes an SQL command as its string argument and sends it to the database server for execution.
Questão 14
Questão
The ________________ property ensures that either all the database operations in a transaction are executed or none are
Responda
-
o Atomicity
-
o Transaction
-
o Isolation
-
o Concurrency
Questão 15
Questão
_______occurs when the same data is stored multiple times
Responda
-
o Redundancy
-
o Normalisation
-
o Denormalization
-
o Persistent
Questão 16
Questão
Creating a database design that only stores each logical data item in only one place is the database is called______
Responda
-
o Redundancy
-
o Normalization
-
o Denormalization
-
o Persistent
Questão 17
Questão
The ________________ property allows several users to update the same data in a controlled manner so that result of the updates is correct
Responda
-
o Atomicity
-
o Transaction
-
o Isolation
-
o Concurrency
Questão 18
Questão
An entity cannot exist in a database merely by being a member of a subclass, it must also be a member of the superclass
Questão 19
Questão
An entity that is a member of a subclass may inherit one, some, or all the attributes of the entity as a member of the superclass.
Questão 20
Questão
The theoretical basis of the relational data model is set theory and first-order predicate logic
Questão 21
Questão
Semantic integrity constraints may be enforced using mechanisms called triggers and assertions.
Questão 22
Questão
When 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 participating entity types (their combination in S is the composite primary key of S).
Questão 23
Questão
$_SESSION − An associative array containing session variables available to the current script
Questão 24
Questão
PHP makes use of mail() function to send an email. This function requires three mandatory arguments that specify the recipient's email address, the subject of the the message and the actual message additionally there are other two optional parameters
Questão 25
Questão
The interpreter identifies variable names within double-quoted strings by their initial character $ and replaces them with the value in the variable. This is known as interpolating variables within strings. Interpolation does not occur in single-quoted strings
Questão 26
Questão
SQLJ was developed after JDBC, which is used for accessing SQL data- bases from Java using function calls
Questão 27
Questão
Most NoSQL databases support automatic __________, meaning that you get high availability and disaster recovery
Responda
-
processing
-
scalability
-
replication
-
All of the mentioned
Questão 28
Questão
The Web Services Architecture supports interaction between a service provider, service requestor, and service registry
Questão 29
Questão
Multi-line PHP comments start with // and end with #.
Questão 30
Questão
Define types of abstractions by the relations as "A is made of/composed of B,C,D"
Responda
-
Classification
-
Aggregation
-
Generalization
-
Specialization
Questão 31
Questão
FETCH commands are issued in the program; each FETCH moves the cursor to the next row in the result of the query, making it the cur- rent row and copying its attribute values into the C (host language) program variables specified in the FETCH command by an INTO clause.</text>
Questão 32
Questão
Define types of abstractions by the relations as "B,C,D are special cases of A"
Responda
-
Classification
-
Aggregation
-
Generalization
-
Specialization
Questão 33
Questão
A JDBC driver is basically an implementation of the function calls specified in the JDBC application programming interface (API) for a particular vendor's RDBMS
Questão 34
Questão
In PHP, a numeric array associates a numeric index with each element in the array.
Questão 35
Questão
Before being able to process JDBC function calls with Java, it is necessary to import the JDBC class libraries, which are called java.sql.*.
Questão 36
Questão
How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
Responda
-
UPDATE Persons SET LastName='Hansen' WHERE LastName='Nilsen'
-
UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
-
MODIFY Persons SET LastName='Hansen' WHERE LastName='Nilsen'
-
UPDATE FROM Persons SET LastName='Nilsen' WHERE LastName='Hansen'
Questão 37
Questão
Publisher table contains id and name columns. Id is auto incremented and name is of varchar(40) type. Which of the following queries will execute NOT correctly?
Responda
-
INSERT INTO Publisher (name) values ('O'Reilly');
-
INSERT INTO Publisher (name) values ('O Reilly');
-
INSERT INTO Publisher (name) values ('OReilly');
-
INSERT INTO Publisher (name) values ('O-Reilly');
Questão 38
Questão
What is the correct order of clauses for a proper SQL query?
Responda
-
SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY
-
SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING
-
SELECT, FROM, GROUP BY, WHERE, HAVING, ORDER BY
-
SELECT, FROM, WHERE, HAVING, GROUP BY, ORDER BY
-
SELECT, FROM, ORDER BY, WHERE, GROUP BY, HAVING
Questão 39
Questão
Which clause indicates the table(s) from which data is to be retrieved?
Responda
-
FROM
-
SELECT
-
WHERE
-
GROUP BY
-
HAVING
Questão 40
Questão
Which clause is executed first in a SQL query?
Responda
-
• WHERE
-
• SELECT
-
• ON
-
• TOP
-
• FROM
Questão 41
Questão
Which of the following DROP statements is INCORRECT?
Responda
-
• DROP TABLE
-
• DROP DATABASE
-
• DROP ROW
-
• DROP INDEX
Questão 42
Questão
Which of the following is NOT a language element of SQL?
Responda
-
Expression
-
Data mining
-
Query
-
Statement
-
Clause
Questão 43
Questão
Which operator is used to search for a specified pattern in a column?
Responda
-
WHERE
-
LIKE
-
ALIASE
-
PATTERN
Questão 44
Questão
Which operator is used to select values within a range?
Questão 45
Questão
Which term is used to describe data organized in rows and columns?
Responda
-
Query
-
Program
-
Index
-
Table
Questão 46
Questão
With SQL, how can you delete the records where the "Address" is "Almaty" in the Student Table?
Responda
-
DROP ROW Student ='Almaty' FROM Address
-
DELETE FROM Student ROW Address ='Almaty'
-
DROP ROW Address ='Almaty' FROM Student
-
DELETE ROW Address ='Almaty' FROM Student
Questão 47
Questão
With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?
Responda
-
SELECT * FROM Persons GROUP BY FirstName DESC
-
SELECT * FROM Persons WHERE FirstName DESC
-
SELECT * FROM Persons ORDER BY FirstName
-
SELECT * FROM Persons ORDER BY FirstName DESC
Questão 48
Questão
With SQL, how can you return the number of records in the "Employee" table?
Responda
-
SELECT COUNT(*) FROM Employee
-
SELECT * FROM Employee GROUP BY
-
SELECT NUM(*) FROM Employee
-
RETURN COUNT(*) FROM Employee
Questão 49
Questão
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"?
Responda
-
SELECT * FROM Persons WHERE FirstName LIKE 'a%';
-
SELECT * FROM Persons WHERE FirstName LIKE '%a%';
-
SELECT All FROM Persons WHERE FirstName LIKE='a';
-
SELECT * FROM Persons WHERE FirstName LIKE 'a*';
Questão 50
Questão
With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Alma" and the "LastName" is "Alimova"?
Responda
-
SELECT * FROM Persons WHERE FirstName=' Alma ' AND LastName=' Alimova'
-
SELECT * FROM Persons WHERE FirstName=' Alma ' OR LastName=' Alimova'
-
SELECT FROM Persons WHERE FirstName=' Alma ' AND LastName=' Alimova'
-
SELECT * FROM Persons HAVING FirstName=' Alma ' AND LastName=' Alimova'
Questão 51
Questão
Which of the following is not a NoSQL database ?
Responda
-
SQL Server
-
MongoDB
-
Cassandra
-
None of the mentioned
Questão 52
Questão
Which of the following is a NoSQL Database Type ?
Responda
-
SQL
-
Document databases
-
JSON
-
All of the mentioned
Questão 53
Questão
Which of the following is a wide-column store ?
Responda
-
Cassandra
-
Riak
-
MongoDB
-
Redis
Questão 54
Questão
An ODMS provides a unique identity to each independent object stored in the database via a unique, system-generated ________
Responda
-
object identifier (OID)
-
literals
-
indirect pointer
-
constructor
Questão 55
Questão
Define types of abstractions by the relations as "A is a member of class B
Responda
-
Classification
-
Aggregation
-
Generalization
-
Specialization
Questão 56
Questão
Define types of abstractions by the relations as "B is-an A, C is-an A, D is-an A"
Responda
-
Classification
-
Aggregation
-
Generalization
-
Specialization
Questão 57
Questão
How will you close a MySql database using PHP?
Responda
-
mysql_destroy
-
mysql_exit
-
mysql_end
-
mysql_close
Questão 58
Questão
How will you concatenate two strings?
Responda
-
Using . operator
-
Using + operator
-
Using add() function
-
Using append() function
Questão 59
Questão
How will you connect a MySql database using PHP?
Responda
-
mysql_connection
-
mysql_query
-
mysql_fetch_array
-
mysql_connect
Questão 60
Questão
How will you destroy a session in PHP?
Responda
-
session_destroy()
-
destroy_session()
-
$_SESSION['destroy']
-
$_SESSION['']
Questão 61
Questão
How will you start a session in PHP?
Responda
-
session_start()
-
start_session()
-
$_SESSION['start']
-
$_SESSION['']
Questão 62
Questão
How will you unset a single session variable?
Questão 63
Questão
Identify factors to consider in choosing one DBMS over another.
I. Organization-wide adoption of a certain philosophy (data model, vendor, methodology, tools).
II. Familiarity of personnel with the system.
III. Availability of vendor services.
Responda
-
I,II
-
I,II,III
-
II,III
-
I,III
Questão 64
Questão
In which type of PHP arrays the element values can be strings or integers?
Responda
-
numeric
-
associative
-
indexed
-
none
Questão 65
Questão
In XML schema, the tag ________________ is used to specify foreign keys
Responda
-
xsd:keyref
-
xsd:element
-
xsd: unique
-
xsd:foreignkey
Questão 66
Questão
NoSQL databases is used mainly for handling large volumes of ______________ data
Responda
-
unstructured
-
structured
-
semi-structured
-
all of the mentioned
Questão 67
Questão
Point out the wrong statement
Responda
-
Non Relational databases require that schemas be defined before you can add data
-
NoSQL databases are built to allow the insertion of data without a predefined schema
-
NewSQL databases are built to allow the insertion of data without a predefined schema
-
All of the mentioned
Questão 68
Questão
The ___ notation applies to user-defined subclasses of a specialization that must be ________, as illustrated by the specialization "every STUDENT must be either an GRADUATE_STUDENT, or a UNDERGRADUATE_STUDENT"
Responda
-
d, disjoint
-
j, joint
-
o, overlapping
-
u, union
Questão 69
Questão
The case of specialization what the same (real-world) entity may be a member of more than one subclass of the specialization for example, an alumnus may also be an employee and may also be a student pursuing an advanced degree (PERSON entity type, which is specialized into the subclasses {EMPLOYEE, ALUMNUS, STUDENT})
Responda
-
disjoint
-
joint
-
overlapping
-
union
Questão 70
Questão
This auto-global built-in array variable which provides the IP (Internet Protocol) address of the client user computer that is accessing the server, for example 129.107.61.8.
Questão 71
Questão
This auto-global built-in array variable which provides the part of the URL address that comes after a backslash (/) at the end of the URL.
Questão 72
Questão
This auto-global built-in array variable which provides the string that holds parameters in a URL after a question mark (?) at the end of the URL. This can hold search parameters, for example
Questão 73
Questão
This auto-global built-in array variablewhich provides the Web site name of the server computer where the PHP interpreter is running.
Questão 74
Questão
What does PHP stands for
Responda
-
Personal Hypertext Processor
-
PHP: Hypertext Preprocessor
-
Private Home Page
-
Private Hypertext Preprocessor
Questão 75
Questão
What does S in BASE refers to?
Responda
-
System Consistence
-
System Availability
-
Changing System
-
System Stability
Questão 76
Questão
[What does the term "I" expands to in the term "ACID"?
Responda
-
Isolated
-
Inseparable
-
Indispensable
-
Insulted
Questão 77
Questão
What does XML stand for?
Questão 78
Questão
What does XSL stand for?
Questão 79
Questão
What is the correct syntax of the declaration which defines the XML version?
Responda
-
<?xml version="1.0" />
-
<?xml version="1.0"?>
-
<xml version="1.0" />
Questão 80
Questão
Which company did Cassandra was primarily developed in?
Responda
-
Apache
-
Facebook
-
Google
-
Amazon
Questão 81
Questão
Which feature of CAP refers to load balancing
Questão 82
Questão
Which of the following are the simplest NoSQL databases
Responda
-
Key-value
-
Wide-column
-
Document
-
All of the mentioned
Questão 83
Questão
Which of the following is correct about PHP
Responda
-
PHP is a recursive acronym for "PHP: Hypertext Preprocessor".]
-
PHP is a server side scripting language that is embedded in HTML
-
It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites
-
All of these statement
Questão 84
Questão
Which of the following is correct about variable naming rules?
Responda
-
Variable names must begin with a letter or underscore character.
-
A variable name can consist of numbers, letters, underscores.
-
you cannot use characters like + , - , % , ( , ) . & , etc in a variable name.
-
All of these statement
Questão 85
Questão
Which of the following is not a NoSQL database?
Responda
-
SQL Server
-
MongoDB
-
Cassandra
-
None of the mentioned
Questão 86
Questão
Which of the following method can be used to create a MySql database using PHP?
Responda
-
mysql_connect()
-
mysql_query()
-
mysql_close()
-
None of the above
Questão 87
Questão
Which of them could not be applied to techniques for looping through arrays in PHP
Responda
-
$courses = ('Database', 'OS', 'Graphics', 'Data Mining');
-
$courses = array('Database', 'OS', 'Graphics', 'Data Mining');
-
$teaching = array('Database' => 'Smith', 'OS' => 'Carrick', 'Graphics' => 'Kam');
-
$teaching['Graphics'] = 'Benson';
-
$alt_row_color = array('blue', 'yellow');
Questão 88
Questão
A key difference between structured and semistructured data concerns how the schema constructs (such as the names of attributes, relationships, and entity types) are handled.
Questão 89
Questão
A large database typically has large transaction volumes and rates, is used in service sector industries, and runs 24/7
Questão 90
Questão
A library of functions, also known as an application programming interface (API), is used to access the database
Questão 91
Questão
A safer way to do inserts and other queries is through the use of placeholders (specified by the ? symbol) in PHP
Questão 92
Questão
Associative array − An array with strings as index. This stores element values in association with key values rather than in a strict linear index order.
Questão 93
Questão
In SQLJ, an iterator is a type of object associated with a collection (set or multiset) of records in a query result.
Questão 94
Questão
In SQLJ, embedded SQL commands are preceded by #sql.
Questão 95
Questão
In XML schema, it is possible to specify constraints that correspond to unique and primary key constraints in a relational database, as well as foreign keys constraints.
Questão 96
Questão
Interfaces are defined to provide a common function names to the implementers. Different implementers can implement those interfaces according to their requirements. You can say, interfaces are skeletons which are implemented by developers.
Questão 97
Questão
Numeric array − An array with a numeric index. Values are stored and accessed in linear fashion.
Questão 98
Questão
OPEN CURSOR command is issued to indicate that we are done with processing the result of the query associated with that cursor.
Questão 99
Questão
PHP is written in C and usually comes installed with Unix; for other operating systems, the PHP interpreter can be downloaded from http://www.php.net.
Questão 100
Questão
The cursor is declared when the SQL query command is declared in the program. Later in the program, an OPEN CURSOR command fetches the query result from the database and sets the cursor to a position before the first row in the result of the query
Questão 101
Questão
The typical mechanisms for making an object persistent are naming and reachability
Questão 102
Questão
XML attribute values must always be enclosed in quotes
Questão 103
Questão
XML elements cannot be empty
Questão 104
Questão
XML's goal is to replace HTML
Questão 105
Questão
XQuery is the language for querying XML data
Questão 106
Questão
The case represents a single superclass/subclass relationship with more than one superclass, where the superclasses represent different entity types
Responda
-
disjoint
-
joint
-
overlapping
-
union
Questão 107
Questão
When a database design is in ____________, each value in a tuple is in atomic value.
Responda
-
First normal form
-
Second normal form
-
Third normal form
-
Forth normal form
Questão 108
Questão
Redundancy leads to three potential problems. Briefly describe each of the three.
Questão 109
Questão
What two things does minimizing redundancy imply
Questão 110
Questão
What are the four informal guidelines that may be used to measure the quality of a relation schema design?
Responda
-
Making sure the semantics of the attributes is clear in the schema.
-
Reducing the redundant information in tuples.
-
Reducing the NULL values in tuples.
-
Disallowing the possibility of generating spurious tuples.
Questão 111
Questão
What are the three goals of database design?
Responda
-
Satisfy the information content requirements of the specified users and applications.
-
Provide a natural and easy-to-understand structuring of the information.
-
Support processing requirements and any performance objectives
Questão 112
Questão
Identify two of the three factors to consider in choosing one DBMS over another
Responda
-
Organization-wide adoption of a certain philosophy (data model, vendor, methodology, tools).
-
Familiarity of personnel with the system
-
Availability of vendor services
Questão 113
Questão
Identify the three criteria to guide the choice of physical database design options
Responda
-
Response time.
-
Space utilization
-
Transaction throughput.
Questão 114
Questão
A join operation joins _____ tables into _____.
Responda
-
three, two
-
three, one
-
four, two
-
two, one
Questão 115
Questão
A primary key should be defined as:
I. NULL
II. NOT NULL
III. Optional
Responda
-
I, II
-
I, III
-
II only
-
I, II, III
Questão 116
Questão
A subquery in an SQL SELECT statement is enclosed in:
Responda
-
braces -- {...}.
-
CAPITAL LETTERS
-
parenthesis -- (...)
-
brackets -- [...].
Questão 117
Questão
SQL query and modification commands make up a(n) ________ .
Questão 118
Questão
The command to eliminate a table from a database is:
Responda
-
• REMOVE TABLE TableName
-
• DROP TABLE TableName
-
• DELETE TABLE TableName
-
• UPDATE TABLE TableName
Questão 119
Questão
________ stores are used to store information about networks, such as social connections.
Responda
-
• Key-value
-
• Wide-column
-
• Graph
Questão 120
Questão
A ___________ is an indirect functional dependency, one in which X->Z only by virtue of X->Y and Y->Z
Responda
-
• Multivalued Dependencies
-
• Join Dependency
-
• Trivial Functional Dependency
-
• Transitive Dependencies
Questão 121
Questão
A table is in 3NF if it is in 2NF and if it has no ____________
Responda
-
• Functional Dependencies
-
• Transitive Dependencies
-
• Trivial Functional Dependency
-
• Multivalued Dependencies
Questão 122
Questão
A table is in BCNF if it is in 3NF and if every determinant is a ___________ key.
Questão 123
Questão
Anomalies are avoided by splitting the offending relation into multiple relations, is also known as
Questão 124
Questão
Every time attribute A appears, it is matched with the same value of attribute B, but not the same value of attribute C. Therefore, it is true that:
Responda
-
A-->B
-
A-->C
-
A-->(B,C)
-
(B,C)-->A
Questão 125
Questão
For select operation the ________ appear in the subscript and the ___________ argument appears in the parenthesis after the sigma.
Responda
-
• Predicates, relation
-
• Relation, Predicates
-
• Operation, Predicates
-
• Relation, Operation
Questão 126
Questão
If X -> Y, which of the following would make Y fully dependent on X?
Responda
-
• X consists of multiple attributes
-
• Y is a single attribute
-
• Y consists of multiple attributes
-
• X is a single attribute
Questão 127
Questão
In a given relationship R, if an attribute A uniquely defines all other attributes, then the attribute A is a key attribute which is also known as the _________ key.
Responda
-
• Candidate
-
• Join
-
• Functional
-
• None of the Mentioned
Questão 128
Questão
In EER modeling, specialization is the process of generating
Responda
-
• entities out of attributes
-
• attributes out of entities
-
• subclasses out of superclasses
-
• superclasses out of subclasses
Questão 129
Questão
In precedence of set operators the expression is evaluated from
Questão 130
Questão
The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.
Responda
-
• Union
-
• Set-difference
-
• Difference
-
• Intersection
Questão 131
Questão
The functional dependency X -> Y is true if
Responda
-
a value of X uniquely determines a value of Y
-
the value of Y depends on the collective values of X
-
the value of X depends on the collective values of Y
-
a value of Y uniquely determines a value of X
Questão 132
Questão
The result of a set difference operation r - s will be
Responda
-
those tuples that are in s but not in r
-
those tuples that are in r but not in s
-
tuples in s after deducting their values by the corresponding values in the tuples in r
-
tuples in r after deducting their values by the corresponding values in the tuples in s
Questão 133
Questão
What does a projection operation do?
Responda
-
It extends the number of rows in a table.
-
It extends the number of columns in a table
-
It selects columns from a table
-
It selects rows from a table.
Questão 134
Questão
When the values in one or more attributes being used as a foreign key must exist in another set of one or more attributes in another table, we have created a(n)
Questão 135
Questão
Which is a join condition contains an equality operator
Responda
-
Equijoins
-
Cartesian
-
Natural
-
Left
Questão 136
Questão
Which is a unary operation
Responda
-
Selection operation
-
Primitive operation
-
Projection operation
-
Generalized selection
Questão 137
Questão
Which of the following is a fundamental operation in relational algebra
Responda
-
Set intersection
-
Natural join
-
Assignment
-
None of the mentioned
Questão 138
Questão
Which of the following is not a restriction for a table to be a relation?
Responda
-
The cells of the table must contain a single value
-
The columns must be ordered
-
No two rows in a table may be identical
Questão 139
Questão
Which of the following is used to denote the selection operation in relational algebra?
Questão 140
Questão
Y is transitively dependent on X, if
Responda
-
X -> A, B and Y -> A, B
-
X -> Y and A -> Y
-
X -> A, B and A -> Y
-
X -> Y and Y -> A
Questão 141
Questão
For two tables to be union compatible, corresponding columns from each table should have which of the following?
Responda
-
the same domain
-
the same name
-
different domains
-
different names