cloud2
cloud2
• SELECT
• GET
• FETCH
• RETRIEVE
Correct Answer: SELECT
• INSERT INTO
• ADD
• UPDATE
• CREATE
Correct Answer: INSERT INTO
• DELETE
• REMOVE
• DROP
• CLEAR
Correct Answer: DELETE
• Groups rows
Correct Answer: Filters rows returned by a query
• VARCHAR
• INTEGER
• BOOLEAN
• NUMERIC
Correct Answer: BOOLEAN
• UPDATE
• MODIFY
• CHANGE
• SET
Correct Answer: UPDATE
10. Which of these SQL commands deletes a table and its data?
• DROP TABLE
• DELETE TABLE
• REMOVE TABLE
• ERASE TABLE
Correct Answer: DROP TABLE
• A user-defined function
• A temporary table
Correct Answer: A precompiled set of SQL statements
• ORDER BY
• GROUP BY
• SORT BY
• FILTER BY
Correct Answer: ORDER BY
13. Which join returns all rows when there is a match in one of the tables?
• INNER JOIN
• LEFT JOIN
• RIGHT JOIN
• SqlConnection
• SqlCommand
• SqlDataReader
• SqlAdapter
Correct Answer: SqlConnection
15. What is the role of SqlCommand in ADO.NET?
• Reads data
16. Which ADO.NET object is used to retrieve data in a read-only, forward-only manner?
• SqlDataReader
• SqlDataAdapter
• SqlCommand
• DataSet
Correct Answer: SqlDataReader
• A database connection
• A data reader
Correct Answer: An in-memory cache of data
• SqlTransaction.Begin()
• SqlConnection.BeginTransaction()
• SqlCommand.Begin()
• DataSet.Begin()
Correct Answer: SqlConnection.BeginTransaction()
19. Which method executes a SQL query that returns a single value?
• ExecuteScalar()
• ExecuteNonQuery()
• ExecuteReader()
• ExecuteXmlReader()
Correct Answer: ExecuteScalar()
• ExecuteNonQuery()
• ExecuteReader()
• ExecuteScalar()
• ExecuteXmlReader()
Correct Answer: ExecuteNonQuery()
23. Which namespace contains the core ADO.NET classes for SQL Server?
• System.Data.SqlClient
• System.Data
• System.Sql
• System.Data.Sql
Correct Answer: System.Data.SqlClient
• connection.Close()
• connection.Dispose()
• connection.End()
• connection.Terminate()
Correct Answer: connection.Close()
• DataReader object
• Boolean status
Correct Answer: Number of rows affected
• Open connection
• Closed connection
• Transaction
• DataSet
Correct Answer: Open connection
• DataSet
• SqlConnection
• SqlCommand
• SqlDataReader
Correct Answer: DataSet
• A SQL table
• An SQL command
Correct Answer: A representation of a table in memory
29. How do you begin a transaction using SqlConnection?
• SqlConnection.BeginTransaction()
• SqlCommand.BeginTransaction()
• SqlDataAdapter.BeginTransaction()
• SqlTransaction.Start()
Correct Answer: SqlConnection.BeginTransaction()
• Rollback()
• Cancel()
• Undo()
• Abort()
Correct Answer: Rollback()
• ALTER TABLE
• MODIFY TABLE
• CHANGE TABLE
• UPDATE TABLE
Correct Answer: ALTER TABLE
• DISTINCT
• UNIQUE
• UNION
• EXCLUSIVE
Correct Answer: DISTINCT
• Atomicity
• Durability
• Consistency
• All of the above
Correct Answer: All of the above
34. What type of join returns only matching rows from both tables?
• INNER JOIN
• LEFT JOIN
• RIGHT JOIN
• FULL JOIN
Correct Answer: INNER JOIN
• Read Committed
• Serializable
• Read Uncommitted
• Repeatable Read
Correct Answer: Read Committed
36. Which method of SqlDataAdapter is used to send changes from a DataSet to the database?
• Update()
• Fill()
• Execute()
• Submit()
Correct Answer: Update()
• CREATE DATABASE
• NEW DATABASE
• MAKE DATABASE
• BUILD DATABASE
Correct Answer: CREATE DATABASE
• GROUP BY
• ORDER BY
• WHERE
• HAVING
Correct Answer: GROUP BY
• Filters groups
• Filters rows
• Sorts results
• Joins tables
Correct Answer: Filters groups
• Read()
• Next()
• MoveNext()
• Advance()
Correct Answer: Read()
43. What is the maximum size of a VARCHAR(MAX) field in SQL Server?
• 2^31-1 bytes
• 8000 bytes
• 4000 bytes
• Unlimited
Correct Answer: 2^31-1 bytes
44. Which ADO.NET object manages a set of SQL commands and connections?
• SqlCommand
• SqlConnection
• SqlDataAdapter
• SqlTransaction
Correct Answer: SqlDataAdapter
45. Which method is used to begin reading XML data from a SQL Server in ADO.NET?
• ExecuteXmlReader()
• ExecuteReader()
• ExecuteScalar()
• ExecuteNonQuery()
Correct Answer: ExecuteXmlReader()
• Read Uncommitted
• Read Committed
• Repeatable Read
• Serializable
Correct Answer: Read Uncommitted
• Visual Studio
• GRANT
• PERMIT
• ALLOW
• ACCESS
Correct Answer: GRANT
• CREATE LOGIN
• NEW LOGIN
• ADD LOGIN
• MAKE LOGIN
Correct Answer: CREATE LOGIN