wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Syed: Chapter 9 Databases: IGCSE Computer Science

Total questions: 80

Worksheet time: 2hrs 38mins

Name
Class
Date
1.

What is the primary distinction between data and information?

a)

Data is unorganized, while information is organized

b)

Data is processed, while information is raw

c)

Data includes images, while information does not

d)

Data is stored on a computer, while information is not

2.

Which of the following best describes data?

a)

Raw material for information

b)

Processed information

c)

Structured information

d)

Random collection of facts

3.

What types of items can be classified as data?

a)

Only numbers and letters

b)

Only images and characters

c)

Only organized information

d)

Numbers, letters, characters, and images

4.

What is the purpose of organizing data into a database?

a)

To make data more unstructured

b)

To remove meaning and context

c)

To provide raw material for information

d)

To structure data in a meaningful way

5.

Sarah is trying to understand the concept of data and information. She learns that data can be anything stored on a computer, such as numbers, letters, characters, and images. How would you differentiate data from information based on Sarah's understanding?

a)

Data is unorganized, while information is organized

b)

Data includes only numbers and letters, while information includes images

c)

Data is processed, while information is raw

d)

Data is stored on a computer, while information is not

6.

Alex is studying databases for his computer science class. He learns that a database is a collection of structured data. How would you define a database based on Alex's understanding?

a)

A random assortment of data

b)

Unstructured information on a computer

c)

Processed and organized data

d)

Information without any meaning or context

7.

Emily is confused about the concept of data. She thinks data refers only to numbers and letters. How would you correct Emily's misconception?

a)

Data is raw material for information

b)

Data is processed information

c)

Data is structured information

d)

Data includes numbers, letters, characters, and images

8.

James is learning about the different types of items that can be classified as data. He asks for clarification on what constitutes data. What would be the most appropriate response?

a)

Only numbers and letters

b)

Only images and characters

c)

Only organized information

d)

Numbers, letters, characters, and images

9.

Lily is curious about why data is organized into a database. How would you explain the purpose of organizing data to Lily?

a)

To make data more unstructured

b)

To remove meaning and context

c)

To provide raw material for information

d)

To structure data in a meaningful way

10.

Data can be anything that can be stored on a computer, like numbers, letters, characters, images, and so on. Information is data that has been processed and organized to provide ​ (a)   and ​ (b)   .

Choose from the below words

meaning

context

numbers

letters

images

processing

11.

What is a database primarily composed of?

a)

Unstructured data

b)

Structured data stored on paper

c)

Structured collection of data

d)

Random assortment of data

12.

What forms a record in a database?

a)

A collection of tables

b)

A collection of fields

c)

A collection of queries

d)

Random assortment of data

13.

Sarah is learning about databases and wonders how data about various objects is stored. How would you explain the storage of objects' data to Sarah?

a)

In paragraphs

b)

In tables

c)

In files

d)

In images

14.

How are data entered in a database?

a)

As paragraphs

b)

In a random format

c)

In a tabular format

d)

As images

15.

What is the purpose of a query in a database?

a)

To organize data into tables

b)

To define data types

c)

To find full records or specific fields

d)

To enter data into the database

16.

Alex is confused about what constitutes a record in a database. How would you clarify the concept of a record to Alex?

a)

A collection of tables

b)

A collection of fields

c)

A collection of queries

d)

A collection of rows

17.

A column in a database table is referred to as a ​ (a)   .

Choose from the below words

field

row

cell

18.

A collection of fields related to one object forms a ​ (a)   , such as all information about a specific person.

Choose from the below words

record

document

file

19.

Data types define the type of value that can be stored in a table column. For example, Integer, Boolean, ​ (a)   , etc.

Choose from the below words

string

image

video

20.

In a database, data is entered in a tabular format, that is, organized as​ (a)   to provide meaningful information.

Choose from the below words

tables

attributes

rows and columns

21.

What is the primary purpose of a primary key in a database?

a)

To store data

b)

To ensure duplication in different records

c)

To uniquely identify each record

d)

To run queries on data

22.

What does a primary key uniquely identify in a database? ​ (a)  

Choose from the below words

Records

Tables

Data types

Fields

23.

Match the following!

a)

Database

1.

Structured collection of data.

b)

Field

2.

Single piece of data within a database.

c)

Record

3.

Collection of related fields.

d)

Primary Key

4.

Unique identifier for records.

e)

Information

5.

Processed and organized data.

24.

What does SQL stand for?

a)

Standardized Query Language

b)

Structured Query Language

c)

Sequential Query Language

d)

Simplified Query Language

25.

SQL is a standard language used in most databases for tasks like: Define tables, change tables, add data to tables, search for data from tables, and perform calculations using data from tables. SQL stands for (a)  

26.

Which of the following is NOT a function of SQL?

a)

Defining tables

b)

Adding data to tables

c)

Managing network connections

d)

Searching for data from tables

27.

SQL commands are used to interact with which type of databases?

a)

Relational databases

b)

NoSQL databases

c)

File-based databases

d)

Object-oriented databases

28.

Match the following

a)
  1. Text/Alphanumeric

1.

Combination of letters/symbols/numbers

b)

Character

2.

Single letter, number, or symbol.

c)

Boolean

3.

One of two options: True/False, Yes/No.

d)

Integer

4.

Whole number.

e)

Date/Time

5.

A date or a time.

29.

Text/Alphanumeric data type allows for the storage of______?

a)

only numbers

b)

only letters

c)

any combination of letters, symbols, and numbers

d)

single letter, number, or symbol

30.

Boolean data type consists of ​ (a)   options.


Choose from the below words

two

one

three

31.

Integer data type includes ​ (a)   numbers.


Choose from the below words

whole

fractional

negative

32.

Real data type allows for numbers with at least one ​ (a)   .


Choose from the below words

decimal place

negative sign

fractional part

33.

Date/Time data type can represent both ​ (a)  

Choose from the below words

dates and times.

Only Dates.

Only time.

34.

Organize these options into the right categories

Categorize the following

"Lisa"

"Anna"

"123.4"

"%"

"L"

TRUE

FALSE

666

5562

"TRUE"

"Road123"

String
Char
Boolean
Integer
35.

Organize these options into the right categories

Categorize the following

"123.4"

"%"

"L"

666

5562

"!"

"@"

"#"

"abc"

"def"

"2.718"

"999"

3.14
2.718
0.123
789
12345
999
String
Char
Real
Integer
36.

Logical operators are symbols that perform a comparison resulting in ​ (a)   .

Choose from the below words

True or False

Greater than or equal to

Addition

Multiplication

37.

The logical operator "=" is used to check if two values are ​ (a)   .

Choose from the below words

equal to

greater than

less than

38.

The ">" operator checks if the left operand is ​ (a)   the right operand.

Choose from the below words

greater than

less than

equal to

39.

The "<" operator checks if the left operand is ​ (a)   the right operand.

Choose from the below words

less than

greater than

equal to

40.

The "<=" operator checks if the left operand is ​ (a)   the right operand.

Choose from the below words

less than or equal to

greater than or equal to

not equal to

41.

The ">=" operator checks if the left operand is ​ (a)   the right operand.

Choose from the below words

greater than or equal to

less than or equal to

not equal to

42.

The "<>" operator checks if the left operand is ​ (a)   the right operand.

Choose from the below words

Not equal to

Greater than

Less than

43.

Organize these options into the right categories

Categorize the following

<

>
<>
>=
Less than
Greater than
Not equal to
greater than or equal to
44.

evaluate the given expression.

Categorize the following

10>=10

9<15

10<>5

11=11

12<=12

15>=20

20+10=35

'apple'='apple'

'cat'='dog'

2*4=8

6<>6

12+5<11

True
False
45.

The SELECT statement allows you to select a set of ________ from a table.

a)

records

b)

fields

c)

conditions

d)

values

46.

Given a table named "employee" with columns "id", "name", and "department", write an SQL query to select only the names of the employees.

  1. ​ (a)  

Choose from the below words

SELECT name FROM students;

SELECT id FROM students;

SELECT name FROM employee;

47.

In a table named "orders" with columns "order_id", "customer_name", and "order_date", write an SQL query to select only the order dates.

  1. ​ (a)   order_date ​ (b)   orders;

Choose from the below words

SELECT

FROM

WHERE

GROUP BY

HAVING

ORDER BY

48.

Given a table named "products" with columns "product_id", "product_name", and "price", write an SQL query to select only the product names.

  1. ​ (a)  

Choose from the below words

SELECT product_name FROM products;

SELECT product_id FROM products;

SELECT price FROM products;

49.

In a table named "students" with columns "student_id", "student_name", and "grade", write an SQL query to select only the student names.

  1. SELECT ​ (a)   FROM ​ (b)   ;

Choose from the below words

students

student_name

student_id, grade

student_id

grade

student_name, grade

50.

In a table named "students" with columns "student_id", "student_name", and "grade", write an SQL query to select all data.

  1. SELECT ​ (a)   FROM ​ (b)   ;

Choose from the below words

students

*

ALL

student_id

grade

EVERYTHING

51.

Given a table named "inventory" with columns "item_id", "item_name", and "quantity", write an SQL query to select only the item names.

  1. ​ (a)   item_name ​ (b)   ​ (c)   ;

Choose from the below words

SELECT

inventory

FROM

FILTER

item_id

WHERE

quantity

GROUP BY

52.

Including a WHERE clause in the SELECT statement allows you to select only specific data. Which Boolean operator is used to combine conditions where both conditions need to be satisfied?

a)

AND

b)

OR

c)

NOT

d)

XOR

53.

Combining conditions in a WHERE clause requires a Boolean operator. Which operator is used when at least one of two conditions needs to be satisfied?

a)

AND

b)

OR

c)

NOT

d)

XOR

54.

In SQL, the WHERE clause is used to filter records based on specified conditions. Which operator is used for exact matching in the WHERE clause?

a)

=

b)

!=

c)

<>

55.

Given a table named "employees" with columns "emp_id", "emp_name", and "department", write an SQL query to select only the employee names who work in the 'HR' department.

  1. SELECT ​ (a)   FROM employees ​ (b)   emp_name ​ (c)   ​ (d)   = 'HR';

Choose from the below words

*

AND

department

WHERE

ALL

DISTINCT

emp_id

JOIN

GROUP BY

56.

Given a table named "students" with columns "student_id", "student_name", and "age", write an SQL query to select all data of students with the name "lisa".

  1. SELECT ​ (a)   FROM students ​ (b)   student_name="Lisa";

Choose from the below words

*

WHERE

ALL

student_name

57.

Given a table named "orders" with columns "order_id", "customer_name", and "order_date", write an SQL query to select orders made by customer 'Alice' on January 1, 2023.

  1. SELECT * FROM orders WHERE ​ (a)   ​ (b)   ​ (c)  

Choose from the below words
customer_name = 'Alice'
order_date = '2023-01-01';
AND
customer_name = 'Alice', order_date = '2023-01-01';
customer_name = 'Alice' AND order_date = '2023-01-01';
customer_name = 'Alice' OR order_date = '2023-01-01';
customer_name = 'Alice' WHERE order_date = '2023-01-01';
customer_name = 'Alice' FROM order_date = '2023-01-01';
58.

Given a table named "inventory" with columns "item_id", "item_name", and "quantity", write an SQL query to select all items with a quantity greater than 10.

  1. ​ (a)   * FROM ​ (b)   ​ (c)   ​ (d)   ​;

Choose from the below words
quantity > 10
WHERE
SELECT
inventory
quantity < 5
HAVING
DELETE
items
quantity = 10
59.

Given a table named "students" with columns "StudentID", "Name","Age","Class","Computer" and "Math", write an SQL query to select student IDs, names, and math scores of students whose math scores are greater than or equal to 70.

SELECT ​ (a)  

​ (b)   students

WHERE ​ (c)  

Choose from the below words
StudentID, Name, Math
Math >= 70;
FROM
StudentID, Name, Math, Math >= 70;
ORDER BY
OUTPUT
60.

Given a table named "students" with columns "student_id", "name", and "score", write an SQL query to select all columns of students except those with the name 'Alina'.

SELECT ​ (a)  

FROM students

​ (b)   name ​ (c)   ‘Alina’;

Choose from the below words
*
<>
WHERE
SELECT
DISTINCT
!=
FILTER
HAVING
61.

Given a table named "employees" with columns "emp_id", "emp_name", and "salary", write an SQL query to select all columns of employees and order the result by salary in descending order.

  1. SELECT * FROM employees ​ (a)   salary ​ (b)   ;

Choose from the below words
ORDER BY
DESC
ORDER BY, ASC
ORDERBY
SORT BY
GROUP BY, salary
ASC
62.

Given a table named "products" with columns "product_id", "product_name", and "price", write an SQL query to select all columns of products and order the result by product name in ascending order.

  1. SELECT * FROM products ​ (a)   product_name ​ (b)   ;

Choose from the below words
ORDER BY, ASC
ORDERBY
SORT BY
GROUP BY, salary
ASC
ORDER BY
63.

Given a table named "orders" with columns "order_id", "customer_name", and "order_date", write an SQL query to select all columns of orders and order the result by order date in descending order.

  1. ​ (a)  

Choose from the below words
SELECT * FROM orders ORDER BY order_date DESC;
SELECT * FROM orders ORDER BY order_date ASC;
SELECT * FROM orders ORDER BY order_id DESC;
64.

Given a table named "sales" with columns "sale_id", "customer_name", and "amount", write an SQL query to select all columns of sales and order the result by amount in ascending order.\

  1. ​ (a)  

Choose from the below words
SELECT * FROM sales ORDER BY amount ASC;
SELECT * FROM sales ORDER BY amount DESC;
SELECT sale_id, customer_name, amount FROM sales ORDER BY amount ASC;
65.

Given a table named "students" with columns "student_id", "name", and "age", write an SQL query to select all columns of students and order the result by age in ascending order.

  1. ​ (a)  

Choose from the below words
SELECT * FROM students ORDER BY age ASC;
SELECT * FROM students ORDER BY age DESC;
SELECT * FROM students ORDER BY name ASC;
66.

Given a table named "customers" with columns "customer_id", "customer_name", and "email", write an SQL query to select all columns of customers and order the result by email in descending order.

  1. SELECT * FROM ​ (a)   ORDER BY ​ (b)   ​ (c)   ;

Choose from the below words
customers
email
DESC
ASC
name
customerz
67.

Given a table named "expenses" with a column "cost", write an SQL query to calculate the total expenses incurred.

  1. ​ (a)  

Choose from the below words
SELECT SUM(cost) FROM expenses;
SELECT SUM(expenses) FROM cost;
SELECT COUNT(cost) FROM expenses;
68.

Given a table named "customers", write an SQL query to count the total number of customers.

  1. SELECT ​ (a)   FROM customers;

Choose from the below words
COUNT(*)
COUNT(ALL)
COUNT=COUNT+1
COUNT(customers)
69.

Given a table named "sales" with a column "amount", write an SQL query to calculate the total sales amount.

  1. SELECT (a)   (amount) FROM sales;

70.

Given a table named "orders" with a column "price", write an SQL query to calculate the total price of all orders.

  1. ​ (a)  

Choose from the below words
SELECT SUM(price) FROM orders;
SELECT AVG(price) FROM orders;
SELECT MAX(price) FROM orders;
71.

Given a table named "students" with a column "grade", write an SQL query to count the total number of students who scored above 80.

  1. SELECT ​ (a)   FROM students WHERE ​ (b)  

Choose from the below words
grade > 80;
COUNT(*)
grade = 80;
COUNT(grade);
SELECT * FROM students WHERE grade < 80;
SELECT COUNT(*) FROM students WHERE grade <= 80;
72.

Given a table named "orders" with columns "order_id" and "status", write an SQL query to count the total number of completed orders placed by customer 'Alice'.

  1. SELECT COUNT(*) FROM orders WHERE ​ (a)  

Choose from the below words
status = 'completed' AND customer = 'Alice';
status = 'completed' OR customer = 'Alice';
status = 'pending' AND customer = 'Alice';
73.

Match the following

a)

SELECT

1.

Choose specific data.

b)

WHERE

2.

Filter records.

c)

ORDER BY

3.

Sort result set.

d)

ASC / DESC

4.

Ascending / Descending order.

e)

COUNT()

5.

Count number of rows.

74.

WHERE clause is used to (a)   records.

75.

ORDER BY sorts data in (a)   order.

76.

SQL (a)   allows specifying conditions.

77.

DESC sorts data in (a)   order.

78.

ASC sorts data in (a)   order.

79.

SQL (a)   function adds up values.

80.

Match the following!

a)

WHERE

1.

SQL Filtering

b)

ORDER BY

2.

SQL Sorting

c)

ASC / DESC

3.

Sorting Order in SQL