SWC_QUIZ_4

SWC_QUIZ_4

University

60 Qs

quiz-placeholder

Similar activities

Java

Java

University

61 Qs

VIRTUSA 2020 BATCH ( MODULE-1)

VIRTUSA 2020 BATCH ( MODULE-1)

University

60 Qs

Экзаменационные вопросы Python (Раздел 3)

Экзаменационные вопросы Python (Раздел 3)

University

65 Qs

Evaluation in HCI

Evaluation in HCI

University

60 Qs

Cuestionario de C# - Windows Forms

Cuestionario de C# - Windows Forms

University

63 Qs

FDS_MIDTERM

FDS_MIDTERM

University

60 Qs

Test 1 Category B

Test 1 Category B

University

60 Qs

Cuestionario Java & SpringBoot

Cuestionario Java & SpringBoot

University

60 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?