Microsoft SQL Server Database Quiz Questions

Chapter Name:Chapter 3 - Database Tables, Columns and Rows
Lesson Content Link:ROWs and COLUMNs
Current Quiz Count:45
Progress
0%
Q1
True / False

In SQL Server, each row in a table must have a unique identifier.

Q2
True / False

SQL Server allows columns to have default values.

Q3
True / False

In SQL Server, a column's data type cannot be changed once the table is created.

Q4
True / False

The ROW_NUMBER() function in SQL Server can be used to assign a unique number to each row.

Q5
True / False

SQL Server allows NULL values in columns by default.

Q6
True / False

In SQL Server, columns can be set to automatically increment their values.

Q7
True / False

SQL Server's ALTER TABLE command can add new columns to an existing table.

Q8
True / False

A column with the UNIQUE constraint in SQL Server allows duplicate values.

Q9
True / False

In SQL Server, a table can have multiple columns with the same name.

Q10
True / False

SQL Server supports creating tables with columns of various data types, including user-defined types.

Q11
True / False

The SQL Server function COUNT(*) can count rows even if some columns have NULL values.

Q12
True / False

SQL Server allows columns in a table to have default values assigned only at the time of table creation.

Q13
True / False

The DISTINCT keyword in SQL Server can be used to eliminate duplicate rows from a query result.

Q14
True / False

SQL Server does not allow altering the data type of a column if it contains existing data.

Q15
True / False

In SQL Server, rows and columns in a table are always ordered based on their insertion sequence.

Q16
Single Choice

Which SQL Server function can be used to get the number of rows in a table?

Q17
Single Choice

Which command is used to add a new column to an existing table in SQL Server?

Q18
Single Choice

Which SQL Server clause is used to filter rows based on specific conditions?

Q19
Single Choice

What is the purpose of the PRIMARY KEY constraint in SQL Server?

Q20
Single Choice

Which SQL Server function retrieves the current date and time?

Q21
Single Choice

Which SQL Server function can be used to calculate the length of a string?

Q22
Single Choice

Which SQL Server clause is used to sort the result set of a query?

Q23
Single Choice

What does the SQL Server function AVG() calculate?

Q24
Single Choice

Which keyword is used to prevent duplicate rows in the result set of a query?

Q25
Single Choice

Which function in SQL Server is used to concatenate strings?

Q26
Single Choice

What is the result of a SELECT statement without a WHERE clause?

Q27
Single Choice

Which command is used to delete all rows from a table but keep the table structure intact?

Q28
Single Choice

Which keyword is used to specify the columns to be retrieved in a SELECT statement?

Q29
Single Choice

Which SQL Server function is used to convert a string to uppercase?

Q30
Single Choice

Which function is used to round a numeric value to a specified number of decimal places in SQL Server?

Q31
Multiple Choice

Which SQL Server functions can be used to aggregate data?

Q32
Multiple Choice

Which of the following are valid SQL Server column data types?

Q33
Multiple Choice

Which SQL Server clauses can be used to organize query results?

Q34
Multiple Choice

Which of the following are valid ways to modify column data in SQL Server?

Q35
Multiple Choice

Which SQL Server functions can be used to manipulate dates?

Q36
Multiple Choice

Which SQL Server constraints ensure data integrity in columns?

Q37
Multiple Choice

Which SQL Server commands are used to remove data from a table?

Q38
Multiple Choice

Which of the following are methods to ensure data is not duplicated in a table?

Q39
Multiple Choice

Which functions can be used to manipulate strings in SQL Server?

Q40
Multiple Choice

Which SQL Server keywords are used to combine results from multiple queries?

Q41
Multiple Choice

Which SQL Server functions are used to convert data types?

Q42
Multiple Choice

Which SQL Server constraints help enforce referential integrity?

Q43
Multiple Choice

Which SQL Server functions return the current system time?

Q44
Multiple Choice

Which of the following commands are used to create a new table in SQL Server?

Q45
Multiple Choice

Which SQL Server functions are used to handle NULL values?