wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ICT EXAM — Worksheet Questions

Total questions: 23

Worksheet time: 12mins

Name
Class
Date
1.

Calculate the total marks from student table /1mark. Use the STUDENT TABLE shown with columns: Student_id, Names, sex, Class, Age, Marks /100, Address.

a)

Select sum (mark) from student;

b)

Select Total(mark) from student;

c)

Select Total (marks) from student;

d)

Select sum (marks) from student;

2.

Display the student who have maximum ages /1mark. Refer to the STUDENT TABLE.

a)

SELECT MAX (age) from students;

b)

SELECT MAX (age) from student table

c)

SELECT MAXIMUM (age) from student

d)

None above

3.

Modify the class of S6MEG to S6MPG from student_id:001 /2marks.

a)

UPDATE Student SET class = 'S6MPG' WHERE Student_id= 001;

b)

UPDATE Student SET class = "S6MPG" WHERES Student_id= 001;

c)

UPDATE Student SET class = "S6MPG" WHERE student-id= “001”;

d)

UPDATE Student SET class = "S6MPG" WHERE Student-id=” 001”;

e)

UPDATE Student SET class = "S6MPG" WHERE Student_id= 001;

4.

Which best statement used to display the students who have at least half of marks /2mark.

a)

SELECT * FROM student WHERE MARKS >=50;

b)

SELECT * FROM students WHERE MARKS >='50';

c)

SELECT * FROM student WHERES MARK >'50';

d)

SELECT * FROM students WHERE MARKS >='50';

5.

SELECT StrComp("Rutsiro", "Gasabo"); /1mark

a)

1

b)

-1

c)

0

d)

None above

6.

Describe the best function used to converted from "RWANDA" to "rwanda" case: /1mark

a)

Lowecase ( )

b)

Lowecase ( )

c)

None above

7.

SELECT Len("RWANDA NZIZA"); Which the best answers: /2 marks

a)

11

b)

12

c)

13

8.

SELECT LEFT("RWANDA NZIZA",8); Which the best answers: /1mark

a)

RWANDANZ

b)

RWANDANZI

c)

RWANDAN

d)

RWANDANZIZ

9.

The column that uniquely identifies each row in a table is called: /1mark

a)

Foreign key

b)

Unique field

c)

Primary key

d)

Composite key

10.

Which SQL statement is used to add data into a table? /1mark

a)

INSERT INTO

b)

UPDATE

c)

APPEND

d)

ADD RECORD

11.

A foreign key is used to: /1mark

a)

Identify records in a table

b)

Link tables together

c)

Sort data

d)

Store only numbers

12.

Which database model stores data in tables consisting of rows and columns? /1mark

a)

Hierarchical

b)

Relational

c)

Network

d)

Object-oriented

13.

In the relational model, a tuple is: /1mark

a)

A column

b)

A field

c)

A row

d)

A table

14.

The graphical representation of entities and their relationships is known as: /1mark

a)

ERD

b)

DFD

c)

Flowchart

d)

UML

15.

Which statement is used to create a table? /1mark

a)

CREATE

b)

CREATE TABLE

c)

CREATE TABLES

d)

UPDATE

16.

Which SQL statement removes an entire table? /1mark

a)

DELETE TABLE

b)

ERASE TABLE

c)

REMOVE TABLE

d)

DROP TABLE

17.

Which part of SQL is used to change the structure of a table? /1mark

a)

DDL

b)

DML

c)

DCL

d)

RDBMS

18.

GRANT and REVOKE commands belong to: /1mark

a)

DDL

b)

DML

c)

TCL

d)

None Above

19.

SELECT DISTINCT is used to: /1mark

a)

Delete duplicate rows

b)

Prevent NULL values

c)

Return unique values only

d)

None above

20.

Which operator is used in WHERE clause to combine conditions? /1mark

a)

WHERE

b)

AND

c)

LIKE

d)

NONE ABOVE

21.

The ALTER TABLE statement can add or drop columns. True / False /2 marks

a)

True

b)

False

22.

DROP TABLE removes only data but keeps the table structure. True / False /2 marks

a)

True

b)

False

23.

SQL is case sensitive when writing commands. True / False /2 marks

a)

True

b)

False