InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Which of the following are TCL commands?(a) UPDATE and TRUNCATE(b) SELECT and INSERT(c) GRANT and REVOKE(d) ROLLBACK and SAVEPOINTThis question was posed to me in exam.Query is from Basic SQL topic in division Laying the Foundation of SQL Server |
|
Answer» RIGHT choice is (d) ROLLBACK and SAVEPOINT Best explanation: Transaction control commands manage CHANGES made by DML commands. These SQL commands are used for managing changes AFFECTING the data. |
|
| 52. |
Which of the following is not a DDL command?(a) UPDATE(b) TRUNCATE(c) ALTER(d) None of the MentionedThis question was addressed to me in unit test.My enquiry is from Basic SQL topic in division Laying the Foundation of SQL Server |
|
Answer» Correct choice is (a) UPDATE |
|
| 53. |
___________removes all rows from a table without logging the individual row deletions.(a) DELETE(b) REMOVE(c) DROP(d) TRUNCATEThe question was asked during an interview for a job.I need to ask this question from Basic SQL in section Laying the Foundation of SQL Server |
|
Answer» The CORRECT option is (d) TRUNCATE |
|
| 54. |
Which of the following SQL clauses is used to DELETE tuples from a database table?(a) DELETE(b) REMOVE(c) DROP(d) CLEARThis question was posed to me during an interview.This intriguing question originated from Basic SQL in chapter Laying the Foundation of SQL Server |
|
Answer» Right option is (a) DELETE |
|
| 55. |
Which SQL keyword is used to retrieve a maximum value?(a) MOST(b) TOP(c) MAX(d) UPPERThis question was posed to me in homework.This intriguing question comes from Basic SQL topic in division Laying the Foundation of SQL Server |
|
Answer» Right choice is (c) MAX |
|
| 56. |
Which SQL function is used to count the number of rows in a SQL query?(a) COUNT()(b) NUMBER()(c) SUM()(d) COUNT(*)This question was posed to me during an interview.My question comes from Basic SQL in division Laying the Foundation of SQL Server |
|
Answer» RIGHT CHOICE is (d) COUNT(*) For explanation: COUNT(*) takes NULL value row in to CONSIDERATION. |
|
| 57. |
Built in Functions in SQL Server is categorized into how many categories?(a) 4(b) 5(c) 6(d) 7I had been asked this question in final exam.My doubt is from Builtin Functions in chapter Laying the Foundation of SQL Server |
|
Answer» Correct ANSWER is (a) 4 |
|
| 58. |
______________ returns the rank of rows within the partition of a result set, without any gaps in the ranking.(a) RANK(b) NTILE(c) DENSE_RANK(d) ROW_NUMBERI had been asked this question in an interview for job.The question is from Builtin Functions in division Laying the Foundation of SQL Server |
|
Answer» RIGHT ANSWER is (c) DENSE_RANK The EXPLANATION is: DENSE_RANK function makes the RANK of a row is one plus the number of distinct ranks that COME before the row in question. |
|
| 59. |
Which of the following is not a conversion function?(a) CAST and CONVERT(b) PARSE(c) TRY_CAST(d) TRY_CASEI got this question at a job interview.The question is from Builtin Functions in portion Laying the Foundation of SQL Server |
|
Answer» The correct option is (d) TRY_CASE |
|
| 60. |
Text and Image Functions are ___________(a) nondeterministic(b) deterministic(c) table valued(d) all of the mentionedThis question was posed to me in semester exam.The question is from Builtin Functions in division Laying the Foundation of SQL Server |
|
Answer» Right option is (a) NONDETERMINISTIC |
|
| 61. |
DecryptByKeyAutoCert is ________________type function.(a) Symmetric Encryption and decryption(b) Encryption Hashing(c) Asymmetric Encryption and decryption(d) Symmetric decryption with Automatic key handlingThe question was asked in an interview for job.Question is taken from Builtin Functions topic in division Laying the Foundation of SQL Server |
|
Answer» The correct option is (d) SYMMETRIC DECRYPTION with Automatic key handling |
|
| 62. |
__________ are used for supporting encryption, decryption, digital signing and their validation.(a) Cryptographic functions(b) Cursor functions(c) Configuration functions(d) None of the mentionedI had been asked this question in quiz.This is a very interesting question from Builtin Functions topic in division Laying the Foundation of SQL Server |
|
Answer» RIGHT choice is (a) Cryptographic FUNCTIONS Explanation: Encryption and decryption of DATA is DONE by cryptographic functions. |
|
| 63. |
NESTLEVEL functionfalls under which of the following category?(a) Configuration functions(b) Cursor functions(c) Mathematical functions(d) Date and Time Data FunctionsI got this question by my school principal while I was bunking the class.Enquiry is from Builtin Functions topic in chapter Laying the Foundation of SQL Server |
|
Answer» CORRECT CHOICE is (a) CONFIGURATION functions To EXPLAIN: Configuration functions return information about the current configuration. |
|
| 64. |
Which of the following is not a mathematical function?(a) ATN2(b) POWER(c) PI(d) CEILThe question was posed to me in an online interview.The query is from Builtin Functions topic in chapter Laying the Foundation of SQL Server |
|
Answer» RIGHT choice is (d) CEIL The explanation is: SQL Server has CEILING function to get the smallest integer GREATER than the specified expression. |
|
| 65. |
Which of the following function checks whether the expression is a valid date or not?(a) ISDATE(b) ISDAY(c) ISVALID(d) ISYEARI had been asked this question in examination.I'd like to ask this question from Builtin Functions in section Laying the Foundation of SQL Server |
|
Answer» The CORRECT answer is (a) ISDATE |
|
| 66. |
Which of the following data type is not present in SQL Server?(a) bit(b) boolean(c) hierarchyid(d) geographyI got this question by my school principal while I was bunking the class.This intriguing question originated from Data Types in portion Laying the Foundation of SQL Server |
|
Answer» Correct option is (B) boolean |
|
| 67. |
______________ functionreturns current date and time.(a) SET DATEFIRST(b) SYSDATETIME(c) Cert_ID(d) GETDATEThe question was asked by my college professor while I was bunking the class.The query is from Builtin Functions in section Laying the Foundation of SQL Server |
|
Answer» The correct option is (d) GETDATE |
|
| 68. |
Which of the data type has a storage size of 8 bytes?(a) timestamp(b) uniqueidentifier(c) real(d) smallmoneyThis question was posed to me in a national level competition.Query is from Data Types in portion Laying the Foundation of SQL Server |
|
Answer» The CORRECT choice is (a) timestamp |
|
| 69. |
______________ is monetary data type in SQL Server.(a) Smallmoney(b) sql_variant(c) Cursor(d) None of the MentionedThe question was asked in my homework.The query is from Data Types topic in division Laying the Foundation of SQL Server |
|
Answer» CORRECT choice is (a) Smallmoney Explanation: Monetary data types are data types that REPRESENT monetary or currency values such as smallmoney and money. |
|
| 70. |
_________ isa spatial data type.(a) geometry(b) sql_variant(c) cursor(d) all of the mentionedThis question was addressed to me during a job interview.This is a very interesting question from Data Types in division Laying the Foundation of SQL Server |
|
Answer» Correct answer is (b) sql_variant |
|
| 71. |
You want to track date and time of the last write access per row?(a) Add TIMESTAMP column to the table(b) Add a DATETIME column to the table and assign getdate() as the default value(c) Add a DATETIME column to the table and write a trigger that sets its value(d) Add a UNIQUEIDENTIFIER column to the table and use it with SQL Server’s built-in functionsI got this question in quiz.This key question is from Data Types in chapter Laying the Foundation of SQL Server |
|
Answer» The correct answer is (a) ADD TIMESTAMP column to the table |
|
| 72. |
A column of type __________ may contain rows of different data types.(a) ntext(b) date(c) smallmoney(d) sql_variantI got this question in semester exam.I'm obligated to ask this question of Data Types in section Laying the Foundation of SQL Server |
|
Answer» CORRECT CHOICE is (d) sql_variant To elaborate: sql_variant is data type that STORES values of various SQL Server-supported data types. |
|
| 73. |
ntext data type falls under which category?(a) Exact numerics(b) Character strings(c) Unicode character strings(d) None of the mentionedI had been asked this question during an interview.The origin of the question is Data Types in division Laying the Foundation of SQL Server |
|
Answer» The CORRECT OPTION is (c) Unicode character strings |
|
| 74. |
Data types in SQL Server are organized into how many categories?(a) 6(b) 8(c) 9(d) 10This question was addressed to me during an internship interview.I'm obligated to ask this question of Data Types topic in division Laying the Foundation of SQL Server |
|
Answer» The correct OPTION is (a) 6 |
|
| 75. |
Exact Numeric data type is ___________(a) bigint(b) int(c) smallmoney(d) all of the mentionedThe question was asked during an online interview.This interesting question is from Data Types in division Laying the Foundation of SQL Server |
|
Answer» The correct OPTION is (d) all of the mentioned |
|
| 76. |
Which of the following is a large object data type?(a) varchar(max)(b) varbinary(max)(c) nvarchar(max)(d) imageThe question was posed to me by my college professor while I was bunking the class.Origin of the question is Data Types topic in chapter Laying the Foundation of SQL Server |
|
Answer» The correct choice is (d) image |
|
| 77. |
The _________ database is used by SQL Server Agent for scheduling alerts and jobs, and recording operators.(a) model(b) msdb(c) master(d) tempI had been asked this question in final exam.My question is from Management Studio topic in chapter Laying the Foundation of SQL Server |
|
Answer» The correct OPTION is (b) msdb |
|
| 78. |
______________ is schematic drawing used for representing relationships in database.(a) Trigger(b) Database Diagrams(c) Table designer(d) Query EditorThe question was posed to me by my college director while I was bunking the class.Question is from Management Studio topic in chapter Laying the Foundation of SQL Server |
|
Answer» The CORRECT option is (B) Database Diagrams |
|
| 79. |
Which of the following is not a database object?(a) Database Diagrams(b) Stored Procedures(c) PowerShell(d) IndexThe question was asked at a job interview.Asked question is from Management Studio topic in section Laying the Foundation of SQL Server |
|
Answer» RIGHT choice is (c) PowerShell For EXPLANATION I would SAY: PowerShell is a tool utility not a database OBJECT. |
|
| 80. |
Which of the following is used to build sql statements without writing code?(a) Registered Servers(b) Query Designer(c) Template Explorer(d) Context ExplorerThis question was addressed to me in homework.The doubt is from Management Studio topic in division Laying the Foundation of SQL Server |
|
Answer» Right CHOICE is (b) Query Designer |
|
| 81. |
Which menu is used to restore windows to their original locations?(a) Edit(b) File(c) Tools(d) WindowsI had been asked this question in a job interview.I'd like to ask this question from Management Studio in division Laying the Foundation of SQL Server |
|
Answer» CORRECT option is (d) Windows Easiest explanation: To restore windows to their original LOCATIONS, on the WINDOW menu, click Reset Window LAYOUT. |
|
| 82. |
Which of the following shortcut is used to clear all bookmarks?(a) Ctrl+K+L(b) Ctrl+K+O(c) Ctrl+K+B(d) Ctrl+K+PThe question was posed to me in an international level competition.This is a very interesting question from Management Studio in section Laying the Foundation of SQL Server |
|
Answer» CORRECT CHOICE is (a) Ctrl+K+L For explanation I WOULD say: To DELETE all within SSMS, press Ctrl+K+L. |
|
| 83. |
__________menu allows user to set up some keyboard shortcuts.(a) Edit(b) File(c) Tools(d) None of the MentionedI had been asked this question in quiz.My enquiry is from Management Studio topic in section Laying the Foundation of SQL Server |
|
Answer» The CORRECT choice is (C) TOOLS |
|
| 84. |
Which of the following feature is not provided by SSS 2008?(a) Automatic formatting(b) IntelliSense(c) Code Outlining(d) SQLCMDThe question was posed to me in unit test.My enquiry is from Management Studio topic in division Laying the Foundation of SQL Server |
|
Answer» RIGHT ANSWER is (a) Automatic formatting Explanation: Management Studio Query Editor does not provide automatic formatting of T-SQL. There are some free WEBSITES that enable you to submit a SQL STATEMENT and will then FORMAT the code, but I’ve been using SQL Prompt from Red Gate and I’ve come to depend on it for consistent formatting. |
|
| 85. |
Ctrl+K+Kshortcut refers to ___________(a) Refresh IntelliSense(b) Add or remove a bookmark(c) Enable all bookmarks(d) Move to the next bookmarkThe question was asked in unit test.The doubt is from Management Studio in portion Laying the Foundation of SQL Server |
|
Answer» Correct option is (b) ADD or remove a bookmark |
|
| 86. |
Which of the following pane option is not provided by Query Designer?(a) Diagram pane(b) Grid pane(c) Results pane(d) Query paneThis question was posed to me during an internship interview.My question is based upon Management Studio in portion Laying the Foundation of SQL Server |
|
Answer» CORRECT OPTION is (d) Query PANE Easiest explanation: Query DESIGNER does not PROVIDE Query pane for querying database schema. |
|
| 87. |
SMO in SQL Server stands for ___________(a) Server Management Object(b) Service Management Object(c) SQL Management Object(d) SQL Server Management ObjectThe question was posed to me in my homework.This intriguing question originated from Management Studio in chapter Laying the Foundation of SQL Server |
|
Answer» The correct answer is (d) SQL SERVER MANAGEMENT Object |
|
| 88. |
Which of the following tool is used for designing schema of the database in SSMS?(a) Query Designer(b) Database Diagrams(c) Table designer(d) Query EditorThe question was asked in an internship interview.The question is from Management Studio topic in portion Laying the Foundation of SQL Server |
|
Answer» Right CHOICE is (C) Table designer |
|
| 89. |
Which of the following is a database object?(a) Tables(b) Triggers(c) Functions(d) All of the mentionedThe question was posed to me by my school teacher while I was bunking the class.I would like to ask this question from Management Studio topic in chapter Laying the Foundation of SQL Server |
|
Answer» Right choice is (d) All of the mentioned |
|
| 90. |
_________ is tool in SSMS used to manage multiple servers.(a) Registered Servers(b) Query Editor(c) Template Explorer(d) Context ExplorerI have been asked this question in an internship interview.The doubt is from Management Studio in division Laying the Foundation of SQL Server |
|
Answer» Correct choice is (a) Registered Servers |
|
| 91. |
Which command is used to reset default configuration in SSMS?(a) Clear(b) Hide(c) Reset all(d) ResetI had been asked this question in homework.I need to ask this question from Management Studio in chapter Laying the Foundation of SQL Server |
|
Answer» CORRECT choice is (d) RESET The best EXPLANATION: To reset Management Studio to its default configuration (Object Explorer ➪ Tabbed Documents ➪Property WINDOW) use the Window ➪ Reset Window Layout MENU command. |
|
| 92. |
_____________ is not available on standard toolbar.(a) Error List(b) Object Explorer(c) Query Editor(d) Properties windowsI had been asked this question during an interview for a job.I'd like to ask this question from Management Studio in portion Laying the Foundation of SQL Server |
|
Answer» RIGHT choice is (a) Error List To ELABORATE: The most commonly used TOOLS — Query Editor, Object Explorer, TEMPLATE Explorer, and PROPERTIES windows are available on the standard toolbar. |
|
| 93. |
Which of the following shortcut is used for displaying error list?(a) Ctrl + /(b) Ctrl + |(c) Ctrl + \(d) Ctrl + !This question was addressed to me during an online exam.This is a very interesting question from Management Studio topic in portion Laying the Foundation of SQL Server |
|
Answer» The correct CHOICE is (c) CTRL + \ |
|
| 94. |
Template Explorer is used to manage ____________(a) T-SQL scripts(b) Registered Servers(c) Properties(d) Query designThis question was addressed to me in an online interview.My question is based upon Management Studio topic in division Laying the Foundation of SQL Server |
|
Answer» Right answer is (a) T-SQL scripts |
|
| 95. |
Which panel presents a list of objects under the selected node?(a) Template Explorer(b) Object Explorer(c) Properties window(d) Query EditorI had been asked this question during an interview.I need to ask this question from Management Studio in division Laying the Foundation of SQL Server |
|
Answer» RIGHT ANSWER is (B) Object Explorer Explanation: Object Explorer is used for administering and DEVELOPING SQL Server database objects. |
|
| 96. |
Management Studio is ________ used for development of SQL Server database.(a) Front end tool(b) Back end tool(c) Database engine(d) SQL ServerThis question was posed to me in exam.My question comes from Management Studio topic in portion Laying the Foundation of SQL Server |
|
Answer» Right OPTION is (a) Front end tool |
|
| 97. |
Which was the first version of SQL Server to introduce in-memory capability?(a) SQL Server 2012(b) SQL Server 2014(c) SQL Server 2005(d) SQL Server 2008I have been asked this question in an interview.Query is from Introduction topic in section Laying the Foundation of SQL Server |
|
Answer» RIGHT answer is (B) SQL Server 2014 Easiest explanation: SQL Server 2014 provides a new in-MEMORY capability for tables that can fit entirely in memory (also known as Hekaton). |
|
| 98. |
__________is the first true GUI-based database server.(a) SQL Server 7.0(b) SQL Server 6.5(c) SQL Server 2005(d) SQL Server 2008This question was addressed to me in homework.This intriguing question originated from Introduction topic in division Laying the Foundation of SQL Server |
|
Answer» Right answer is (a) SQL SERVER 7.0 |
|
| 99. |
_________ is free database software running free SQL Server technology.(a) SQL Server Express(b) SQL Server Workgroup(c) SQL Server Enterprise(d) SQL Server WebThe question was asked in final exam.My doubt stems from Introduction in portion Laying the Foundation of SQL Server |
|
Answer» Right option is (a) SQL SERVER Express |
|
| 100. |
LocalDB was introduced in which of the following versions of SQL Server?(a) 2012(b) 2008(c) 2014(d) 2008 R2This question was addressed to me in class test.The doubt is from Introduction topic in division Laying the Foundation of SQL Server |
|
Answer» The correct choice is (a) 2012 |
|