Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ISPFL6 - Final - Quiz 1

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which SQL clause is used to return the smallest value within a selected column?

a)

TOP

b)

MIN()

c)

LIMIT

d)

FETCH FIRST

2.

The SQL LIKE operator is used in conjunction with which clause?

a)

GROUP BY

b)

ORDER BY

c)

WHERE

d)

HAVING

3.

Which SQL clause is used to select values within a given range?

a)

RANGE

b)

BETWEEN

c)

RANGE BETWEEN

d)

IN

4.

What SQL function returns the total sum of a numerical column?

a)

COUNT()

b)

AVG()

c)

SUM()

d)

MAX()

5.

SQL aliases are used for:

a)

Giving names to databases

b)

Giving names to tables

c)

Giving names to columns

d)

Giving names to rows

6.

The SQL IN operator is used to:

a)

Specify multiple values in a WHERE clause

b)

Join tables together

c)

Filter rows based on a condition

d)

Perform mathematical operations

7.

Which wildcard character is used to substitute for a single character in a string?

a)

%

b)

_

c)

*

d)

$

8.

What does the SQL COUNT() function return?

a)

The number of distinct values in a column

b)

The number of rows in a set

c)

The average value of a numerical column

d)

The smallest value within a selected column

9.

The SQL LIMIT clause is used to:

a)

Set a maximum number of rows to return in a result set

b)

Set a minimum number of rows to return in a result set

c)

Order the result set in ascending order

d)

Filter rows based on a condition

10.

Which SQL clause is used to return the largest value within a selected column?

a)

FETCH FIRST

b)

MAX()

c)

TOP

d)

SUM()

11.

What does the SQL LIKE operator do?

a)

Matches exact values

b)

Matches similar values based on a specified pattern

c)

Matches NULL values

d)

Matches values within a given range

12.

SQL aliases are useful for:

a)

Shortening SQL queries

b)

Providing alternate names for columns or tables

c)

Joining tables together

d)

Ordering query results

13.

Which SQL function returns the average value of a numerical column?

a)

AVG()

b)

MIN()

c)

MAX()

d)

SUM()

14.

The SQL BETWEEN operator selects values:

a)

Outside a given range

b)

Within a given range

c)

Above a specified value

d)

Below a specified value

15.

The SQL FETCH FIRST clause is similar to:

a)

LIMIT

b)

TOP

c)

OFFSET

d)

ORDER BY

16.

The SQL LIKE operator is used to search for a specified pattern in a column.

a)

True

b)

False

17.

The SQL MIN() function returns the largest value within a selected column.

a)

True

b)

False

18.

SQL aliases are permanent names assigned to tables or columns.

a)

True

b)

False

19.

The SQL IN operator allows you to specify multiple values in a WHERE clause.

a)

True

b)

False

20.

The SQL BETWEEN operator selects values within a given range.

a)

True

b)

False

21.

The SQL COUNT() function returns the total sum of a numerical column.

a)

True

b)

False

22.

The SQL LIMIT clause is used to set a maximum number of rows to return in a result set.

a)

True

b)

False

23.

The SQL MAX() function returns the smallest value within a selected column.

a)

True

b)

False

24.

Wildcard characters are used to substitute one or more characters in a string.

a)

True

b)

False

25.

The SQL FETCH FIRST clause is used to fetch the last row from a result set.

a)

True

b)

False

26.

The SQL LIKE operator can be used with the NOT keyword to exclude rows that match a specified pattern.

a)

True

b)

False

27.

The SQL AVG() function returns the average value of a numerical column.

a)

True

b)

False

28.

The SQL IN operator is used to perform logical comparisons between two columns.

a)

True

b)

False

29.

The SQL BETWEEN operator can be used to specify a range of dates.

a)

True

b)

False

30.

SQL aliases are used to give a permanent name to a column or table.

a)

True

b)

False