

MCQOPTIONS
Saved Bookmarks
This section includes 427 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
351. |
Which of the following is an SQL trigger supported by Oracle? |
A. | BEFORE |
B. | INSTEAD OF |
C. | AFTER |
D. | All of the above. |
Answer» E. | |
352. |
A reason for using an SQL view to hide columns is: |
A. | to simplify a result only. |
B. | to prevent the display of sensitive data only. |
C. | to accomplish both of the above. |
D. | None of the above are reasons for using an SQL view. |
Answer» D. None of the above are reasons for using an SQL view. | |
353. |
What is not an advantage of stored procedures? |
A. | Greater security |
B. | SQL can be optimized |
C. | Code sharing |
D. | Increased network traffic |
Answer» E. | |
354. |
When using the SQL INSERT statement: |
A. | rows can be modified according to criteria only. |
B. | rows cannot be copied in mass from one table to another only. |
C. | rows can be inserted into a table only one at a time only. |
D. | rows can either be inserted into a table one at a time or in groups. |
Answer» E. | |
355. |
What is an SQL virtual table that is constructed from other tables? |
A. | Just another table |
B. | A view |
C. | A relation |
D. | Query results |
Answer» C. A relation | |
356. |
For what purposes are views used? |
A. | To hide columns only |
B. | To hide rows only |
C. | To hide complicated SQL statements only |
D. | All of the above are uses for SQL views. |
Answer» E. | |
357. |
A ________ is a program that performs some common action on database data and that is stored in the database. |
A. | trigger |
B. | stored procedure |
C. | pseudofile |
D. | None of the above is correct. |
Answer» C. pseudofile | |
358. |
Which of the following is NOT a type of SQL constraint? |
A. | PRIMARY KEY |
B. | FOREIGN KEY |
C. | ALTERNATE KEY |
D. | UNIQUE |
Answer» D. UNIQUE | |
359. |
To update an SQL view, the DBMS must be able to associate the column(s) to be updated with: |
A. | a particular column in a particular underlying table. |
B. | a particular column in a particular row. |
C. | a particular row in a particular underlying table. |
D. | None of the above is correct. |
Answer» D. None of the above is correct. | |
360. |
The SQL statement to create a view is: |
A. | CREATE VIEW. |
B. | MAKE VIEW. |
C. | SELECT VIEW. |
D. | INSERT VIEW. |
Answer» B. MAKE VIEW. | |
361. |
SQL views can be used to hide: |
A. | columns and rows only. |
B. | complicated SQL syntax only. |
C. | both of the above can be hidden by an SQL view. |
D. | None of the above is correct. |
Answer» D. None of the above is correct. | |
362. |
A ________ is a stored program that is attached to a table or a view. |
A. | pseudofile |
B. | embedded SELECT statement |
C. | trigger |
D. | None of the above is correct. |
Answer» D. None of the above is correct. | |
363. |
The SQL command to create a table is: |
A. | MAKE TABLE. |
B. | ALTER TABLE. |
C. | DEFINE TABLE. |
D. | CREATE TABLE. |
Answer» E. | |
364. |
In a one-to-many relationship, the entity that is on the many side of the relationship is called a(n) ________ entity. |
A. | parent |
B. | child |
C. | instance |
D. | subtype |
Answer» C. instance | |
365. |
Which type of entity represents a logical generalization whose actual occurrence is represented by a second, associated entity? |
A. | Supertype entity |
B. | Subtype entity |
C. | Archetype entity |
D. | Instance entity |
Answer» D. Instance entity | |
366. |
Which type of entity has its relationship to another entity determined by an attribute in that other entity called a discriminator? |
A. | Supertype entity |
B. | Subtype entity |
C. | Archetype entity |
D. | Instance entity |
Answer» C. Archetype entity | |
367. |
Entities can be associated with one another in which of the following? |
A. | Entities |
B. | Attributes |
C. | Identifiers |
D. | Relationships |
Answer» E. | |
368. |
In which of the following is a single-entity instance of one type of related to a single-entity instance of another type? |
A. | One-to-One Relationship |
B. | One-to-Many Relationship |
C. | Many-to-Many Relationship |
D. | Composite Relationship |
Answer» B. One-to-Many Relationship | |
369. |
Which of the following is NOT a basic element of all versions of the E-R model? |
A. | Entities |
B. | Attributes |
C. | Relationships |
D. | Primary keys |
Answer» E. | |
370. |
Entities of a given type are grouped into a(n): |
A. | database. |
B. | entity class. |
C. | attribute. |
D. | ERD. |
Answer» C. attribute. | |
371. |
In which of the following can many entity instances of one type be related to many entity instances of another type? |
A. | One-to-One Relationship |
B. | One-to-Many Relationship |
C. | Many-to-Many Relationship |
D. | Composite Relationship |
Answer» D. Composite Relationship | |
372. |
Properties that describe the characteristics of entities are called: |
A. | entities. |
B. | attributes. |
C. | identifiers. |
D. | relationships. |
Answer» C. identifiers. | |
373. |
An attribute that names or identifies entity instances is a(n): |
A. | entity. |
B. | attribute. |
C. | identifier. |
D. | relationship. |
Answer» D. relationship. | |
374. |
Which type of entity is related to two or more associated entities that each contain specialized attributes that apply to some but not all of the instances of the entity? |
A. | Supertype entity |
B. | Subtype entity |
C. | Archetype entity |
D. | Instance entity |
Answer» B. Subtype entity | |
375. |
Which of the following refers to an entity in which the identifier of one entity includes the identifier of another entity? |
A. | Weak entity |
B. | Strong entity |
C. | ID-dependent entity |
D. | ID-independent entity |
Answer» D. ID-independent entity | |
376. |
In which of the following is a single-entity instance of one type related to many entity instances of another type? |
A. | One-to-One Relationship |
B. | One-to-Many Relationship |
C. | Many-to-Many Relationship |
D. | Composite Relationship |
Answer» C. Many-to-Many Relationship | |
377. |
Which of the following refers to something that can be identified in the users' work environment, something that the users want to track? |
A. | Entity |
B. | Attribute |
C. | Identifier |
D. | Relationship |
Answer» B. Attribute | |
378. |
Which of the following indicates the minimum number of entities that must be involved in a relationship? |
A. | Minimum cardinality |
B. | Maximum cardinality |
C. | ERD |
D. | Greater Entity Count (GEC) |
Answer» B. Maximum cardinality | |
379. |
A recursive relationship is a relationship between an entity and ________ . |
A. | itself |
B. | a subtype entity |
C. | an archetype entity |
D. | an instance entity |
Answer» B. a subtype entity | |
380. |
Which type of entity represents an actual occurrence of an associated generalized entity? |
A. | Supertype entity |
B. | Subtype entity |
C. | Archetype entity |
D. | Instance entity |
Answer» E. | |
381. |
In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n) ________ entity. |
A. | parent |
B. | child |
C. | instance |
D. | subtype |
Answer» B. child | |
382. |
Which type of entity cannot exist in the database unless another type of entity also exists in the database, but does not require that the identifier of that other entity be included as part of its own identifier? |
A. | Weak entity |
B. | Strong entity |
C. | ID-dependent entity |
D. | ID- independent entity |
Answer» B. Strong entity | |
383. |
Which of the following indicates the maximum number of entities that can be involved in a relationship? |
A. | Minimum cardinality |
B. | Maximum cardinality |
C. | ERD |
D. | Greater Entity Count (GEC) |
Answer» C. ERD | |
384. |
One solution to the multivalued dependency constraint problem is to: |
A. | split the relation into two relations, each with a single theme. |
B. | change the theme. |
C. | create a new theme. |
D. | add a composite key. |
Answer» B. change the theme. | |
385. |
A tuple is a(n): |
A. | column of a table |
B. | two dimensional table. |
C. | row of a table. |
D. | key of a table. |
Answer» D. key of a table. | |
386. |
A relation in this form is free of all modification anomalies. |
A. | First normal form |
B. | Second normal form |
C. | Third normal form |
D. | Domain/key normal form |
Answer» E. | |
387. |
An attribute is a(n): |
A. | column of a table. |
B. | two dimensional table. |
C. | row of a table. |
D. | key of a table. |
Answer» B. two dimensional table. | |
388. |
A key: |
A. | must always be composed of two or more columns. |
B. | can only be one column. |
C. | identifies a row. |
D. | identifies a column. |
Answer» D. identifies a column. | |
389. |
For some relations, changing the data can have undesirable consequences called: |
A. | referential integrity constraints. |
B. | modification anomalies. |
C. | normal forms. |
D. | transitive dependencies. |
Answer» C. normal forms. | |
390. |
Which of the following is not a restriction for a table to be a relation? |
A. | The cells of the table must contain a single value. |
B. | All of the entries in any column must be of the same kind. |
C. | The columns must be ordered. |
D. | No two rows in a table may be identical. |
Answer» D. No two rows in a table may be identical. | |
391. |
Table is synonymous with the term: |
A. | record. |
B. | relation. |
C. | column. |
D. | field. |
Answer» C. column. | |
392. |
A functional dependency is a relationship between or among: |
A. | tables. |
B. | rows. |
C. | relations. |
D. | attributes. |
Answer» E. | |
393. |
In the relational model, relationships between relations or tables are created by using: |
A. | composite keys. |
B. | determinants. |
C. | candidate keys. |
D. | foreign keys. |
Answer» E. | |
394. |
A relation is considered a: |
A. | Column. |
B. | one-dimensional table. |
C. | two-dimensional table. |
D. | three-dimensional table. |
Answer» D. three-dimensional table. | |
395. |
Which of the following is a group of one or more attributes that uniquely identifies a row? |
A. | Key |
B. | Determinant |
C. | Tuple |
D. | Relation |
Answer» B. Determinant | |
396. |
The primary key is selected from the: |
A. | composite keys. |
B. | determinants. |
C. | candidate keys. |
D. | foreign keys. |
Answer» D. foreign keys. | |
397. |
Row is synonymous with the term: |
A. | record. |
B. | relation. |
C. | column. |
D. | field. |
Answer» B. relation. | |
398. |
A relation is in this form if it is in BCNF and has no multivalued dependencies: |
A. | second normal form. |
B. | third normal form. |
C. | fourth normal form. |
D. | domain/key normal form. |
Answer» D. domain/key normal form. | |
399. |
The different classes of relations created by the technique for preventing modification anomalies are called: |
A. | normal forms. |
B. | referential integrity constraints. |
C. | functional dependencies. |
D. | None of the above is correct. |
Answer» B. referential integrity constraints. | |
400. |
What will be the output of the following query? SELECT emp_id, fname, lname FROM employee WHERE LEFT (fname, 1) =’F’ OR LEFT (lname, 1) =’F’; |
A. | Only those employees are selected whose first name and last name started with ‘F’ |
B. | Only those employees are selected whose first name started with ‘F’ but last name can be starts with any other letter |
C. | Only those employees are selected whose first name and last name started with any other letter except ‘F’ |
D. | None of the mentioned |
Answer» B. Only those employees are selected whose first name started with ‘F’ but last name can be starts with any other letter | |