SWC_QUIZ_4

SWC_QUIZ_4

University

60 Qs

quiz-placeholder

Similar activities

Business Intelligence Excel Related Functions Quiz

Business Intelligence Excel Related Functions Quiz

University

58 Qs

Amazon AWS CLF-C01 Chapter 5 - 6

Amazon AWS CLF-C01 Chapter 5 - 6

University

55 Qs

Hệ quản trị CSDL

Hệ quản trị CSDL

University

62 Qs

Recap Web Dev Level 01

Recap Web Dev Level 01

University

62 Qs

PHP-Midterm Exam

PHP-Midterm Exam

University

60 Qs

Practice Quiz

Practice Quiz

University

60 Qs

Evaluación teórica Base de Datos 7ºU 2025

Evaluación teórica Base de Datos 7ºU 2025

12th Grade - University

60 Qs

CS8392 - Object Oriented Programming - Unit 1

CS8392 - Object Oriented Programming - Unit 1

University

63 Qs

SWC_QUIZ_4

SWC_QUIZ_4

Assessment

Quiz

Computers

University

Medium

Created by

Shabnam Choudhary

Used 2+ times

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which SQL statement is used to create an index on a column?
CREATE TABLE
CREATE INDEX
CREATE VIEW
CREATE CONSTRAINT
CREATE COLUMN

Answer explanation

CREATE INDEX is used to create an index on a table column.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
What is the main benefit of using indexes?
Data redundancy
Faster query performance
Smaller table size
Avoid joins
Normalization

Answer explanation

Indexes improve query speed, especially for SELECT statements with WHERE.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
Which of the following can negatively impact performance when overused?
Views
Constraints
Indexes
Triggers
Foreign keys

Answer explanation

Too many indexes can slow down INSERT, UPDATE, and DELETE operations.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
How can you see whether a query uses an index in SQL Server?
SHOW PLAN
USE INDEX
EXPLAIN QUERY
Query Plan Viewer
LOG INDEX

Answer explanation

SQL Server's Query Plan Viewer shows if indexes are being used.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What happens when you drop an index?
Table is deleted
Data is lost
Query performance may degrade
Triggers are disabled
Nothing

Answer explanation

Dropping an index can reduce read performance.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is TRUE about CTEs in SQL?
They persist data permanently
They are used only for INSERT
They are temporary result sets
They replace triggers
They are stored procedures

Answer explanation

CTEs are temporary and exist only during query execution.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a key difference between Views and CTEs?
Views are faster
CTEs require stored procedures
Views are persistent, CTEs are not
CTEs use triggers
Views can’t use joins

Answer explanation

Views are saved in the database; CTEs are not.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?