JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
SQL Server interview questions part 34
SQL Server interview questions part 34
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. UDFs in SQL Server is composed of _______ parts.
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
2. When to choose scalar function over inline table valued function ?
A. You want a single value as the result
B. One or more row’s worth of data is expected
C. You want multiple values as result
D. All of the mentioned
Show Correct Answer
Correct Answer is :
You want a single value as the result
3. Which of the user defined function will be preferred for adding two numbers ?
A. Scalar
B. Inline table valued
C. Max()
D. Min()
Show Correct Answer
Correct Answer is :
Scalar
4. The ability to create a user-defined function (UDF) is a new feature added to :
A. SQL Server 6.5
B. SQL Server 7.0
C. SQL Server 2000
D. None of the mentioned
Show Correct Answer
Correct Answer is :
SQL Server 2000
5. Variables was added newly to SQL Server version :
A. 2005
B. 2008
C. 2012
D. 2014
Show Correct Answer
Correct Answer is :
2008
6. Which of the following keyword is not associated with initialization of variable ?
A. DECLARE
B. SET
C. SELECT
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
7. Which of the following is a global variable ?
A. @@CPU_BUSY
B. @@CPU_IO
C. @@CPU
D. @@I_BUSY
Show Correct Answer
Correct Answer is :
@@CPU_BUSY
8. Point out the right statement :
A. The server always maintain the values of local variable
B. Local variable names begin with a @@ prefix
C. T-SQL restricts the use of variables in ways that aren’t common in other development environments
D. None of the mentioned
Show Correct Answer
Correct Answer is :
T-SQL restricts the use of variables in ways that aren’t common in other development environments
9. Which of the following global has return type ‘numeric’ ?
A. @@ERROR
B. @@MAX_CONNECTIONS
C. @@CPU_BUSY
D. @@IDENTITY
Show Correct Answer
Correct Answer is :
@@IDENTITY
10. DECLARE @techonthenet VARCHAR(50); Value of the @techonthenet variable can be changed using the SET statement, as follows:
A. SET @techonthenet = ‘Example showing how to declare variable’;
B. SELECT @techonthenet = ‘Example showing how to declare variable’;
C. SET @techonthenet == ‘Example showing how to declare variable’;
D. None of the mentioned
Show Correct Answer
Correct Answer is :
SET @techonthenet = ‘Example showing how to declare variable’;
11. _________ gives amount of time, in ticks, that SQL Server has been idle since it was last started.
A. @@ERROR
B. @@IDLE
C. @@LANGID
D. @@LANGUAGE
Show Correct Answer
Correct Answer is :
@@IDLE
12. @@LANGUAGE variable whose return type nvarchar is specified in :
A. sys.name
B. syslang.name
C. syslanguages.name
D. syslanguages.id
Show Correct Answer
Correct Answer is :
syslanguages.name
13. What is a view?
A. A view is a special stored procedure executed when certain event occurs
B. A view is a virtual table which results of executing a pre-compiled query
C. A view is a database diagram
D. None of the Mentioned
Show Correct Answer
Correct Answer is :
A view is a virtual table which results of executing a pre-compiled query
14. Which of the following is not a limitation of view?
A. ORDER BY Does Not Work
B. Index Created on View Used Often
C. Cross Database Queries Not Allowed in Indexed View
D. Adding Column is Expensive by Joining Table Outside View
Show Correct Answer
Correct Answer is :
Index Created on View Used Often
15. Which of the following following statement is true?
A. Views could be looked as an additional layer on the table which enables us to protect intricate or sensitive data based upon our needs
B. Views are virtual tables that are compiled at run time
C. Creating views can improve query response time
D. All of the Mentioned
Show Correct Answer
Correct Answer is :
All of the Mentioned
16. SQL Server has mainly how many types of views?
A. one
B. two
C. three
D. four
Show Correct Answer
Correct Answer is :
two
17. Dynamic Management View is a type of
A. System Defined Views
B. User Defined View
C. Simple View
D. Complex View
Show Correct Answer
Correct Answer is :
System Defined Views
18. Syntax for creating views is
A. CREATE VIEW AS SELECT
B. CREATE VIEW AS UPDATE
C. DROP VIEW AS SELECT
D. CREATE VIEW AS UPDATE
Show Correct Answer
Correct Answer is :
CREATE VIEW AS SELECT
19. You can delete a view with ___________ command.
A. DROP VIEW
B. DELETE VIEW
C. REMOVE VIEW
D. TRUNCATE VIEW
Show Correct Answer
Correct Answer is :
DROP VIEW
20. What is SCHEMABINDING a VIEW?
A. Schema binding binds your views to the dependent physical columns of the accessed tables specified in the contents of the view
B. These are stored only in the Master database
C. These types of view are defined by users on specified schema
D. These are used to show database self describing information
Show Correct Answer
Correct Answer is :
These are stored only in the Master database
Similar Interview Questions
Search for latest jobs
Find Jobs