wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Final Examination (Info Mgt)

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

Which SQL statement is used to create a table named Customers?

a)

MAKE TABLE Customers

b)

ADD TABLE Customers

c)

CREATE TABLE Customers

d)

NEW TABLE Customers

2.

What keyword is used to automatically generate values for a primary key?

a)

UNIQUE

b)

NOT NULL

c)

AUTO_INCREMENT

d)

DEFAULT

3.

Which data type is best used for storing names with variable length?

a)

CHAR

b)

INT

c)

DATE

d)

VARCHAR

4.

Which constraint ensures that a column cannot have NULL values?

a)

UNIQUE

b)

NOT NULL

c)

CHECK

d)

DEFAULT

5.

Which SQL statement is used to insert data into a table?

a)

ADD INTO

b)

PUT INTO

c)

INSERT INTO

d)

INPUT INTO

6.

Which INSERT statement allows specifying selected columns only?

a)

INSERT ALL

b)

INSERT VALUES

c)

INSERT INTO table (columns)

d)

INSERT FULL

7.

What happens if a NOT NULL column is not given a value during INSERT?

a)

It inserts zero

b)

It inserts blank

c)

An error occurs

d)

It inserts NULL automatically

8.

Which symbol separates multiple rows in an INSERT statement?

a)

Semicolon

b)

Colon

c)

Period

d)

Comma

9.

What is the purpose of a PRIMARY KEY?

a)

To store text

b)

To allow duplicate values

c)

To uniquely identify each record

d)

To format data

10.

Which column type is most suitable for postal codes?

a)

INT

b)

DATE

c)

VARCHAR

d)

FLOAT

11.

Which SQL command modifies existing records?

a)

CHANGE

b)

UPDATE

c)

MODIFY

d)

ALTER

12.

What keyword specifies the condition in an UPDATE statement?

a)

SET

b)

WHERE

c)

FROM

d)

FILTER

13.

What happens if UPDATE is executed without a WHERE clause?

a)

Only one row updates

b)

No rows update

c)

All rows are updated

d)

The query fails

14.

Which SQL statement removes records from a table?

a)

DROP

b)

REMOVE

c)

DELETE

d)

CLEAR

15.

What does DELETE FROM table; do?

a)

Deletes the table structure

b)

Deletes one row

c)

Deletes all records

d)

Deletes selected columns

16.

Which clause is required to delete specific records only?

a)

SET

b)

FILTER

c)

WHERE

d)

LIMIT

17.

Which command permanently removes a table including its structure?

a)

DELETE

b)

REMOVE

c)

DROP

d)

CLEAR

18.

Which statement increases all prices by a value?

a)

UPDATE price = price + 100

b)

UPDATE table SET price = price + 100

c)

SET price + 100

d)

ADD price + 100

19.

What is the result of deleting records with a WHERE condition?

a)

All rows deleted

b)

Table removed

c)

Only matching rows are deleted

d)

No rows deleted

20.

Which SQL keyword modifies column values?

a)

WHERE

b)

FROM

c)

SET

d)

SELECT

21.

Which operator is used to check equality?

a)

:=

b)

===

c)

=

d)

<>

22.

Which operator selects values greater than a number?

a)

<

b)

<=

c)

>

d)

!=

23.

Which keyword excludes a value from the result?

a)

EXCEPT

b)

NOT IN

c)

REMOVE

d)

OUT

24.

Which operator is used to combine multiple conditions that must all be true?

a)

OR

b)

NOT

c)

AND

d)

BETWEEN

25.

Which operator returns results if at least one condition is true?

a)

AND

b)

OR

c)

NOT

d)

XOR

26.

What does BETWEEN do?

a)

Matches text

b)

Sorts data

c)

Selects values within a range

d)

Joins tables

27.

Which keyword is used for pattern matching?

a)

MATCH

b)

FIND

c)

LIKE

d)

SEARCH

28.

Which wildcard represents any number of characters?

a)

_

b)

#

c)

*

d)

%

29.

Which wildcard represents exactly one character?

a)

%

b)

*

c)

_

d)

?

30.

Which query finds names starting with "A"?

a)

LIKE '%A'

b)

LIKE '%A%'

c)

LIKE 'A%'

d)

LIKE '_A%'

31.

Which query finds names ending with “s”?

a)

LIKE 's%'

b)

LIKE '%s'

c)

LIKE 's'

d)

LIKE '_s'

32.

Which query finds names containing “en”?

a)

LIKE 'en%'

b)

LIKE '%en'

c)

LIKE '%en%'

d)

LIKE 'en'

33.

Which condition checks multiple values?

a)

BETWEEN

b)

IN

c)

LIKE

d)

EXISTS

34.

What does DISTINCT do?

a)

Sorts data

b)

Groups data

c)

Removes duplicate values

d)

Counts rows

35.

Which clause limits the number of rows returned?

a)

WHERE

b)

LIMIT

c)

ORDER

d)

GROUP

36.

Which keyword sorts results?

a)

FILTER

b)

GROUP

c)

ORDER BY

d)

SORT

37.

Which keyword sorts data in ascending order by default?

a)

DESC

b)

ASC

c)

UP

d)

LOW

38.

Which function returns the smallest value?

a)

MAX()

b)

COUNT()

c)

MIN()

d)

AVG()

39.

Which function returns the largest value?

a)

COUNT()

b)

AVG()

c)

MAX()

d)

SUM()

40.

Which function counts the number of rows?

a)

SUM()

b)

COUNT()

c)

AVG()

d)

TOTAL()

41.

Which function calculates the total?

a)

ADD()

b)

TOTAL()

c)

SUM()

d)

COUNT()

42.

Which function calculates the average?

a)

MEAN()

b)

TOTAL()

c)

AVG()

d)

ROUND()

43.

Which clause groups records with the same value?

a)

ORDER BY

b)

DISTINCT

c)

GROUP BY

d)

HAVING

44.

Which clause filters grouped results?

a)

WHERE

b)

HAVING

c)

LIMIT

d)

ORDER

45.

Which clause works with aggregate functions?

a)

WHERE

b)

HAVING

c)

LIMIT

d)

JOIN

46.

What happens if HAVING is used without GROUP BY?

a)

Error

b)

Ignored

c)

Works with aggregates only

d)

Deletes data

47.

Which function rounds numbers?

a)

FORMAT()

b)

FIX()

c)

ROUND()

d)

CEIL()

48.

What does ROUND(12.56,1) return?

a)

12

b)

12.5

c)

12.6

d)

13

49.

Which keyword renames a column in output?

a)

NAME

b)

RENAME

c)

AS

d)

ALIAS

50.

What is an alias used for?

a)

Delete columns

b)

Modify tables

c)

Temporary column naming

d)

Join tables

51.

Which function converts text to uppercase?

a)

LOWER()

b)

CAPITAL()

c)

UPPER()

d)

TEXT()

52.

Which function converts text to lowercase?

a)

UPPER()

b)

LOWER()

c)

SMALL()

d)

TEXT()

53.

Which function combines strings?

a)

JOIN()

b)

MERGE()

c)

CONCAT()

d)

ADD()

54.

What does CONCAT_WS do?

a)

Concatenates without spaces

b)

Concatenates with a separator

c)

Removes spaces

d)

Splits text

55.

Which function counts characters in a string?

a)

SIZE()

b)

COUNT()

c)

LENGTH()

d)

CHAR()

56.

Which function extracts part of a string?

a)

SPLIT()

b)

CUT()

c)

SUBSTRING()

d)

MIDTEXT()

57.

Which CASE statement is used for?

a)

Looping

b)

Sorting

c)

Conditional logic

d)

Formatting tables

58.

CASE is similar to which programming concept?

a)

Loop

b)

Function

c)

IF–ELSE

d)

Array

59.

Which CASE condition runs first?

a)

ELSE

b)

LAST

c)

First matching WHEN

d)

All WHEN

60.

What happens if no CASE condition is met?

a)

Error

b)

NULL

c)

ELSE value is used

d)

Query stops