MongoDB stores data as documents and does not use tables, so it is a NoSQL database, MongoDB. Why the others are wrong: MySQL — that is a relational database that uses tables and SQL. Oracle Database — that is a relational database that uses tables and SQL. Microsoft Access — that is a relational desktop database that uses tables.
BThe language used to work with databases ✓ Correct answer
CA type of computer memory
DA cable that connects computers together
✓ Correct answer: The language used to work with databases
Full explanation
SQL is the standard language for asking a database for data and for adding or changing data in it, so SQL is The language used to work with databases. Why the others are wrong: A program used to print documents — a program used to print documents is a word processor, not SQL. A type of computer memory — a type of computer memory is RAM or ROM, not SQL. A cable that connects computers together — a cable that connects computers together is a network cable, not SQL.
CA virtual table made from the result of a query ✓ Correct answer
DA table that stores data on a disk
✓ Correct answer: A virtual table made from the result of a query
Full explanation
A view shows data from one or more tables as if it were a table, but it stores no data of its own, so a view is a virtual table made from the result of a query. Why the others are wrong: A password used to open a database — a password is for security, it is not a view. A list of all the tables in a database — a list of tables is not a view. A table that stores data on a disk — a real table stores data, but a view stores no data of its own.
DTo ask the database for data and to change the data in it. ✓ Correct answer
✓ Correct answer: To ask the database for data and to change the data in it.
Full explanation
To ask the database for data and to change the data in it. is the main use of SQL, because SQL is the language used to get data from a database and to add, change or remove data. Why the others are wrong: To draw pictures and charts. - SQL works with data, not with drawing pictures; To print documents from the database. - printing is not the main use of SQL; To protect the computer from viruses. - SQL does not protect a computer from viruses.
A relational database stores data in tables, and Oracle is one of them, so the answer is Oracle. Why the others are wrong: MongoDB — MongoDB is a NoSQL database, not a relational one. Microsoft Excel — Excel is a spreadsheet program, not a database. Microsoft Word — Word is a word-processing program, not a database.
COrganising data in tables to reduce repetition and keep it correct ✓ Correct answer
DHiding data so that no one can see it
✓ Correct answer: Organising data in tables to reduce repetition and keep it correct
Full explanation
The correct answer is Organising data in tables to reduce repetition and keep it correct. Normalization means arranging data into well-planned tables so that the same facts are not stored again and again and the data stays correct. Why the others are wrong: Deleting a table from the database — normalization does not delete tables, it organises them. Printing all the data in the database — printing has nothing to do with normalization. Hiding data so that no one can see it — normalization does not hide data, it organises data.
A student asks a database to show the names of all pupils whose marks are above 80. What is this request called in a database?
AA table that stores data.
BA request for data from a database. ✓ Correct answer
CA field that identifies each record.
DA program that prints reports.
✓ Correct answer: A request for data from a database.
Full explanation
A request for data from a database. is a query: it asks the database for particular data, for example all students with marks above 80. Why the others are wrong: "A table that stores data." is a table, not a query. "A field that identifies each record." is a primary key, not a query. "A program that prints reports." is a report, not a query.
In a database, what does the term 'data integrity' mean?
AThe data is stored on two computers.
BThe data is printed every day.
CThe data is correct and complete. ✓ Correct answer
DThe data is kept secret with a password.
✓ Correct answer: The data is correct and complete.
Full explanation
The correct answer is The data is correct and complete. Data integrity means that the data in a database is correct and complete, with no missing or wrong values. Why the others are wrong: The data is stored on two computers. — storing data on two computers is making a backup, not data integrity. The data is printed every day. — printing the data does not make it correct and complete. The data is kept secret with a password. — keeping data secret is data security, not data integrity.
Data Definition Language. DDL is short for Data Definition Language, the part of SQL used to create and change tables and other parts of a database. Why the others are wrong: Data Direct Language. — Data Direct Language. is not the full form of DDL. Database Design Language. — Database Design Language. is not the full form of DDL. Data Display Language. — Data Display Language. is not the full form of DDL.
Which language is used to get information from a database?
AHTML.
BSQL. ✓ Correct answer
CPython.
DC++.
✓ Correct answer: SQL.
Full explanation
SQL, the Structured Query Language, is the language used to get information from a database, so the correct answer is SQL. Why the others are wrong: HTML. — HTML is used to write web pages, not to get information from a database. Python. — Python is a general-purpose programming language, not the language used to query a database. C++. — C++ is a general-purpose programming language, not the language used to query a database.
CA screen used to enter data into a database. ✓ Correct answer
DA type of keyboard.
✓ Correct answer: A screen used to enter data into a database.
Full explanation
A screen used to enter data into a database. A form is a screen in a database that is used to enter or view data easily. Why the others are wrong: A printed book. — a printed book is made of paper, not a screen in a database. A computer virus. — a computer virus is harmful software, not a screen in a database. A type of keyboard. — a keyboard is a device for typing, not a screen in a database.
BIt adds, changes and deletes the data in tables ✓ Correct answer
CIt gives users permission to use the database
DIt designs web pages
✓ Correct answer: It adds, changes and deletes the data in tables
Full explanation
It adds, changes and deletes the data in tables. DML, or Data Manipulation Language, is the part of SQL that adds, changes and deletes the data in tables. Why the others are wrong: It creates and changes the structure of tables — that is the job of DDL, not DML. It gives users permission to use the database — that is the job of DCL, not DML. It designs web pages — that is the job of HTML, not DML.
Which SQL command adds a new row to a table in a database?
ASELECT
BDELETE
CUPDATE
DINSERT ✓ Correct answer
✓ Correct answer: INSERT
Full explanation
The INSERT command adds a new row to a table, so the correct answer is INSERT. Why the others are wrong: SELECT — SELECT reads data from a table, it does not add a row. DELETE — DELETE removes rows, it does not add one. UPDATE — UPDATE changes data that is already in a table, it does not add a new row.
Which SQL command removes a row from a table in a database?
AINSERT.
BDELETE. ✓ Correct answer
CUPDATE.
DSELECT.
✓ Correct answer: DELETE.
Full explanation
The SQL command that removes a row from a table is DELETE. Why the others are wrong: INSERT. — INSERT adds a new row to a table. UPDATE. — UPDATE changes the values in a row. SELECT. — SELECT reads data from a table.
DA collection of data stored in an organised way ✓ Correct answer
✓ Correct answer: A collection of data stored in an organised way
Full explanation
The correct answer is A collection of data stored in an organised way. In computing, a database is a collection of data stored in an organised way. Why the others are wrong: A single printed page — a database is a collection of data, not a single printed page. A type of printer — a database is a collection of data, not a printer. A kind of computer virus — a database is a collection of data, not a virus.
DA vertical list of one kind of data ✓ Correct answer
✓ Correct answer: A vertical list of one kind of data
Full explanation
A vertical list of one kind of data. In a database table, a column is a vertical list of one kind of data, such as all the names. Why the others are wrong: A single row of data — a row is horizontal and holds one record, not a column. A printed report — a report is printed from a database, not a column. A database password — a password protects a database; it is not a column.
BTo find rows in a table more quickly ✓ Correct answer
CTo print a table on paper
DTo change the colour of a table
✓ Correct answer: To find rows in a table more quickly
Full explanation
To find rows in a table more quickly. An index works like the index of a book, helping the database find the rows it needs without reading the whole table. Why the others are wrong: To delete a whole database — deleting a database removes all its data, which is not the job of an index. To print a table on paper — printing a table makes a paper copy, which is not the job of an index. To change the colour of a table — changing the colour of a table only changes how it looks, which is not the job of an index.
Computer ScienceDatabases & DBMSPPSCID: PPP-055
A collection of well-organized data is called?
AField
BFile
CDatabase ✓ Correct answer
DRing
✓ Correct answer: Database
Full explanation
A collection of well-organised data stored so it can be retrieved and managed is called a Database, so the correct answer is Database.
Computer ScienceDatabases & DBMSPPSCID: PPP-144
Primary key is a?
AUniquely identifies each record
BAuto number is example of key
Ccannot be repeated
DAll of these ✓ Correct answer
✓ Correct answer: All of these
Full explanation
A primary key Uniquely identifies each record, cannot be repeated, and an Auto number is example of key, so the correct answer is All of these.
Computer ScienceDatabases & DBMSPPSCID: PPP-145
Foreign key is a?
AA column containing the primary key of another table ✓ Correct answer
BUse to design data type
Cdefine null status
DA key used for encryption
✓ Correct answer: A column containing the primary key of another table
Full explanation
A foreign key is A column containing the primary key of another table, so the correct answer is A column containing the primary key of another table.