wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL Server Management Studio Quiz

Total questions: 85

Worksheet time: 47mins

Name
Class
Date
1.

Which of the following components of SQL Server Management Studio (SSMS) provides a tree-like interface for managing database objects such as tables, views, and stored procedures?

a)

Query Editor

b)

Object Explorer

c)

Template Explorer

d)

Solution Explorer

2.

To perform a backup of a database in SSMS, which command would you most likely execute in the Query Editor?

a)

BACKUP LOG

b)

CREATE DATABASE

c)

BACKUP DATABASE

d)

RESTORE DATABASE

3.

Which of the following is used to manage security and permissions for a user within a specific database?

a)

Server Roles

b)

Database Users

c)

Logins

d)

Endpoints

4.

In the Query Editor, what is the keyboard shortcut to execute the selected T-SQL query or the entire script if nothing is selected?

a)

F5

b)

Ctrl + S

c)

Ctrl + C

d)

F1

5.

When troubleshooting a performance issue in a stored procedure, which of the following tools within SSMS would be most helpful for visualizing the execution plan of the query?

a)

SQL Server Profiler

b)

Management Studio Activity Monitor

c)

Database Mail

d)

The Actual Execution Plan feature

6.

What is the term for a set of step-by-step instructions designed to solve a problem or complete a task?

(a)  

7.

How can an algorithm be visually represented using geometric shapes and arrows to show the logical flow of a program?

(a)  

8.

What type of attribute is represented by a dashed oval in an ER diagram and is derived from another attribute?

(a)  

9.

What is the symbol used to denote a decision statement in a flowchart, where the answer is typically a binary choice?

(a)  

10.

What is the name of the attribute in an ER diagram that uniquely identifies each entity in an entity set, represented by an oval with an underline?

(a)  

11.

What is the name for the association between two entity types, graphically represented by a diamond shape in an ER diagram?

(a)  

12.

What is the term for a type of attribute that can have more than one value for a given entity, and is depicted by a double oval?

(a)  

13.

What is the concept in an ER model that defines the maximum number of times an entity of one set can participate in a relationship set?

(a)  

14.

What is the symbol used at the beginning and end of a flowchart to indicate the program's start and end points?

(a)  

15.

What is an organized collection of data, typically stored electronically, that is managed by a software system?

(a)  

16.

Which of the following is the primary purpose of a flowchart?

a)

a. To write the code for a program.

b)

b. To provide a written, text-based description of an algorithm.

c)

c. To visually represent the logical flow of an algorithm using symbols.

d)

d. To compile and execute a program.

17.

In an Entity-Relationship (ER) diagram, what does a diamond shape represent?

a)

a. An attribute.

b)

b. An entity set.

c)

c. A relationship set.

d)

d. A composite attribute.

18.

What is the defining characteristic of a "derived attribute" in an ER diagram?

a)

a. It can have multiple values for a single entity.

b)

b. It is an attribute that uniquely identifies an entity.

c)

c. Its value can be calculated from other related attributes.

d)

d. It is a grouping of other simple attributes.

19.

When designing an algorithm using a top-down approach, what is the initial step?

a)

a. Writing the detailed code for each sub-problem.

b)

b. Breaking down the main problem into smaller, manageable sub-problems.

c)

c. Testing and debugging the complete algorithm.

d)

d. Defining the input and output variables.

20.

In a flowchart, the decision symbol (diamond) typically leads to which of the following?

a)

a. A single output path.

b)

b. A loop that repeats indefinitely.

c)

c. Two or more alternative paths based on a condition.

d)

d. The end of the program.

21.

What does SQL stand for?

a)

a) Simple Query Language

b)

b) Structured Query Language

c)

c) Sequential Query Logic

d)

d) Standardized Question Language

22.

Which organization standardized SQL in 1986?

a)

a) ISO

b)

b) IEEE

c)

c) ANSI

d)

d) W3C

23.

Which SQL command is used to add new records to a table?

a)

a) ADD INTO

b)

b) INSERT INTO

c)

c) CREATE RECORD

d)

d) UPDATE

24.

What is the correct syntax to create a new database named "DB_School"?

a)

a) CREATE DB_School DATABASE;

b)

b) MAKE DATABASE DB_School;

c)

c) CREATE DATABASE DB_School;

d)

d) DATABASE CREATE DB_School;

25.

Which keyword is used to define a column as a primary key in a CREATE TABLE statement?

a)

a) UNIQUE

b)

b) PRIMARY

c)

c) KEY

d)

d) PRIMARY KEY

26.

What is the correct syntax to insert a student record into tbl_Student?

a)

a) INSERT INTO tbl_Student (SID, SLastName) VALUES (10120, 'Castro');

b)

b) ADD RECORD tbl_Student (SID, SLastName) VALUES (10120, 'Castro');

c)

c) INSERT tbl_Student (SID, SLastName) SET (10120, 'Castro');

d)

d) UPDATE tbl_Student (SID, SLastName) WITH (10120, 'Castro');

27.

Which SQL command removes an entire database?

a)

a) DELETE DATABASE

b)

b) REMOVE DATABASE

c)

c) DROP DATABASE

d)

d) ERASE DATABASE

28.

What data type would you use for a column storing student last names?

a)

a) int

b)

b) varchar(255)

c)

c) boolean

d)

d) float

29.

What is the purpose of the VALUES clause in an INSERT statement?

a)

a) To specify which columns to update

b)

b) To define the data being inserted

c)

c) To filter records

d)

d) To sort the results

30.

Which SQL command creates a new table?

a)

a) MAKE TABLE

b)

b) CREATE TABLE

c)

c) NEW TABLE

d)

d) DEFINE TABLE

31.

Which SQL command creates a new table?

a)

MAKE TABLE

b)

CREATE TABLE

c)

NEW TABLE

d)

DEFINE TABLE

32.

What does the ORDER BY clause do?

a)

Filters records

b)

Sorts the result set

c)

Groups records

d)

Deletes duplicates

33.

How do you sort prices in descending order?

a)

ORDER BY price ASC

b)

ORDER BY price HIGH

c)

ORDER BY price DESC

d)

SORT BY price DOWN

34.

Which operator filters records based on multiple conditions where all must be true?

a)

OR

b)

AND

c)

NOT

d)

XOR

35.

What does SELECT TOP 3 * FROM products do?

a)

Returns the first 3 columns

b)

Returns the cheapest 3 products

c)

Returns the first 3 records

d)

Returns the last 3 records

36.

Which query retrieves products in 'Electronics' OR 'Home Appliances'?

a)

SELECT * FROM products WHERE category = 'Electronics' AND category = 'Home Appliances'

b)

SELECT * FROM products WHERE category = 'Electronics' OR category = 'Home Appliances'

c)

SELECT * FROM products WHERE category IN ('Electronics', 'Home Appliances')

d)

Both b and c

37.

What does the NOT operator do?

a)

Inverts a condition

b)

Combines conditions

c)

Sorts results

d)

Limits rows

38.

Which query selects products NOT in 'Electronics' with price < 100?

a)

SELECT * FROM products WHERE NOT category = 'Electronics' OR price < 100

b)

SELECT * FROM products WHERE category != 'Electronics' AND price < 100

c)

SELECT * FROM products WHERE NOT (category = 'Electronics' AND price < 100)

d)

Both a and b

39.

How do you sort by category (ascending) and then price (descending)?

a)

ORDER BY category ASC, price DESC

b)

SORT BY category UP, price DOWN

c)

ORDER BY category, price DESC

d)

Both a and c

40.

Which query shows 'Office Furniture' OR (NOT 'Electronics' AND price > 100)?

a)

SELECT * FROM products WHERE category = 'Office Furniture' OR (NOT category = 'Electronics' AND price > 100)

b)

SELECT * FROM products WHERE (category = 'Office Furniture' OR NOT category = 'Electronics') AND price > 100

c)

SELECT * FROM products WHERE category <> 'Electronics' AND price > 100 OR category = 'Office Furniture'

d)

Both a and c

41.

What does SELECT TOP 3 * FROM products ORDER BY price DESC return?

a)

The 3 cheapest products

b)

The 3 most expensive products

c)

The first 3 products added

d)

Random 3 products

42.

Which SQL command retrieves data from a table?

a)

FETCH

b)

SELECT

c)

GET

d)

RETRIEVE

43.

What does SELECT DISTINCT Country FROM tbl_Employee do?

a)

Returns all countries, including duplicates

b)

Returns only unique countries

c)

Returns the first country alphabetically

d)

Counts the number of countries

44.

Which clause filters records in a SELECT statement?

a)

FILTER BY

b)

WHERE

c)

HAVING

d)

GROUP BY

45.

How do you update an employee's country to 'South Africa' where EmployeeID = 1001?

a)

MODIFY tbl_Employee SET Country = 'South Africa' WHERE EmployeeID = 1001

b)

UPDATE tbl_Employee SET Country = 'South Africa' WHERE EmployeeID = 1001

c)

EDIT tbl_Employee Country = 'South Africa' FOR EmployeeID = 1001

d)

CHANGE tbl_Employee Country TO 'South Africa' IF EmployeeID = 1001

46.

What does DELETE FROM tbl_Employee WHERE EmployeeName = 'Petterson' do?

a)

Removes all employees

b)

Deletes only employees named 'Petterson'

c)

Updates 'Petterson' to NULL

d)

Renames 'Petterson'

47.

Which query selects only employees from 'South Korea'?

a)

SELECT * FROM tbl_Employee HAVING Country = 'South Korea'

b)

SELECT * FROM tbl_Employee WHERE Country = 'South Korea'

c)

SELECT * FROM tbl_Employee FILTER Country = 'South Korea'

d)

SELECT * FROM tbl_Employee FOR Country = 'South Korea'

48.

What is the purpose of the SET keyword in SQL?

a)

To filter rows

b)

To define columns to update

c)

To group data

d)

To sort results

49.

Which command removes all rows from a table (without deleting the table)?

a)

DROP TABLE

b)

TRUNCATE TABLE

c)

REMOVE ALL

d)

CLEAR TABLE

50.

How do you select only LName and City from tbl_Employee?

a)

SELECT LName, City FROM tbl_Employee

b)

GET LName, City FROM tbl_Employee

c)

RETRIEVE LName AND City FROM tbl_Employee

d)

EXTRACT LName, City FROM tbl_Employee

51.

What happens if you omit the WHERE clause in an UPDATE statement?

a)

Only the first row is updated

b)

No rows are updated

c)

All rows are updated

d)

The statement fails

52.

Does SQL stand for "Structured Query Language"?

a)

YES

b)

NO

c)

MAYBE

53.

Is INSERT INTO used to delete records from a table?

a)

YES

b)

NO

c)

MAYBE

54.

Can you use CREATE DATABASE to make a new database?

a)

YES

b)

NO

c)

MAYBE

55.

Does DROP DATABASE permanently remove a database?

a)

YES

b)

NO

c)

MAYBE

56.

Is varchar(255) a valid data type for storing names?

a)

YES

b)

NO

c)

MAYBE

57.

Does SELECT DISTINCT return duplicate values?

a)

YES

b)

NO

c)

MAYBE

58.

Can the WHERE clause be used in an UPDATE statement?

a)

YES

b)

NO

c)

MAYBE

59.

Does DELETE FROM table_name remove all rows from a table?

a)

YES

b)

NO

c)

MAYBE

60.

Is SELECT * FROM tbl_Employee a valid SQL query?

a)

YES

b)

NO

c)

MAYBE

61.

Does the WHERE clause in a DELETE statement prevent accidental deletion of all rows?

a)

YES

b)

NO

c)

MAYBE

62.

What is the term for a unique string of characters that verifies a user's identity when logging into accounts?

(a)  

63.

What do we call the practice of protecting systems, networks and data from digital attacks?

(a)  

64.

What is the name for malicious software designed to harm or exploit computer systems?

(a)  

65.

What do we call the trail of data you leave behind when using the internet?

(a)  

66.

Name the logo.

(a)  

67.

Name the missing label on the image shown.

(a)  

68.

What is the name of the integrated development environment (IDE) commonly used for .NET programming?

(a)  

69.

What term describes the ability to find, evaluate, use and share information using digital technologies?

(a)  

70.

Complete name of your teacher

(a)  

71.

Which of the following is the most effective way to identify a phishing email?

a)

The sender's email address is misspelled or doesn't match the company's official domain.

b)

The email is addressed to a general recipient, like 'Dear Customer'.

c)

The email requests a password change.

d)

The email has a familiar company logo.

72.

What is the markup language used for creating the structure and content of a web page?

(a)  

73.

What is the styling language used to control the visual appearance of a web page, such as colors, fonts, and layout?

(a)  

74.

Which programming language is used to add interactivity and dynamic behavior to a web page, such as handling button clicks or changing content?

(a)  

75.

What term describes the part of web development that focuses on the user-facing side of a website, including the design and interactive elements?

(a)  

76.

To add new data into a table named Employees, you would use the (a)   command.

77.

To create a new table in the database, the (a)   TABLE statement is used.

78.

The (a)   command is used to remove a row of data from a table.

79.

To change the data in an existing record, you use the (a)   command.

80.

To sort the results of a query in ascending order, you use the (a)   keyword.

81.

To sort query results in descending order, you use the (a)   keyword.

82.

The (a)   operator is used to reverse the meaning of a condition.

83.

Name the device

(a)  

84.

Name the device

(a)  

85.

To combine two or more conditions where all must be true, you use the (a)   operator.