SQL Server Quiz 1

SQL Server Quiz 1

University

41 Qs

quiz-placeholder

Similar activities

ICTC1023_Unit Test

ICTC1023_Unit Test

University

40 Qs

Midterm Exam - CSCC 5

Midterm Exam - CSCC 5

University

46 Qs

Big Data Analytics (CS-741) - Quiz

Big Data Analytics (CS-741) - Quiz

University

45 Qs

Ivanios II CS

Ivanios II CS

University

40 Qs

Microsoft Excel - Basics

Microsoft Excel - Basics

7th Grade - University

45 Qs

DAS_2

DAS_2

University

40 Qs

NoSQL

NoSQL

University

40 Qs

Kuis SBD1

Kuis SBD1

University

40 Qs

SQL Server Quiz 1

SQL Server Quiz 1

Assessment

Quiz

Computers

University

Hard

Created by

Omphile Mosingathi

Used 1+ times

FREE Resource

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the file type associated with a primary data file in SQL Server?

.ndf

.mdf

.ldf

sql

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file extension is used for a transaction log file in SQL Server?

.mdf

.ldf

.ndf

.log

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a database, which file contains the bulk of the data and is typically the first file created when the database is set up?

Primary data file

Transaction log file

Secondary data file

Configuration file

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the .ldf file in SQL Server?

To store primary data

To log transactions and ensure recoverability

To store backup data

To configure database settings

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the SQL Server file structure, what is the role of a secondary data file with an .ndf extension?

To store transaction logs

To provide additional storage space for data beyond the primary file

To manage database backups

To serve as a temporary storage file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function of the ALTER DATABASE command in SQL Server?

To create a new database

To modify the properties of an existing database

To delete an existing database

To restore a database from a backup

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct example of how to change the name of an existing database using the ALTER DATABASE command?

ALTER DATABASE MODIFY Name = 'NewDatabaseName';

ALTER DATABASE NewDatabaseName RENAME TO 'OldDatabaseName';

ALTER DATABASE OldDatabaseName MODIFY NAME = 'NewDatabaseName';

ALTER DATABASE CHANGE NAME TO 'NewDatabaseName';

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?