0 of 15 questions completed
Questions:
The Exam 70-461 exam is intended for SQL Server database administrators, system engineers and developers with two or more years of experience, who are seeking to validate their skills and knowledge in writing queries.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 15 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
What will be the best possible output of following T-SQL statement?
DECLARE @value int=1000;
SELECT CASE
WHEN TRY_CAST(@value AS tinyint) IS NULL THEN ‘Cast Failed’
ELSE ‘Cast Succeeded’
END;
TRY_CAST() function returns a value cast to the specified data type if the cast succeeds; otherwise, returns null.
What will be the correct output of following T-SQL statement?
SELECT ROUND (799.00, -2, 0);
ROUND() mathematical function returns a numeric value, rounded to the specified length or precision.
What will be the correct output of following T-SQL statement?
CREATE TABLE tbl_Test(Col1 int);
SELECT DISTINCT OBJECTPROPERTY(OBJECT_ID(‘tbl_Test’),’IsSystemTable’);
DROP TABLE tbl_Test;
OBJECTPROPERTY() function returns information about schema-scoped objects in the current database.
Which of the following function is a SQL Server 2012 Analytic Function?
CUME_DIST() function calculates the cumulative distribution of a value in a group of values in SQL Server 2012.
Which of the below statements is incorrect about the View in SQL Server 2012?
ALTER VIEW can be applied to indexed views, but ALTER VIEW drops all the indexes on the view.
Which of the below statements is incorrect about the SET DATEFORMAT Statement?
Which of the below statements is true about the SET XACT_ABORT command in SQL Server 2012?
SET XACT_ABORT specifies what action SQL Server should take following run-time errors. When SET XACT_ABORT is ON, if a Transact-SQL statement raises a run-time error, the entire transaction is terminated and rolled back.
What are the cursors in SQL Server 2012?
Cursors are database objects used to manipulate data in a set on a row-by-row basis.
Which of the following function would you consider using to repeat a string value a specified number of times?
REPLICATE() function repeats a string value a specified number of times.
What will be the default output of following T-SQL statement?
DECLARE @value int = 1, @datetime datetime2 = ‘2014-01-01’;
SELECT DATEADD(week, @value, @datetime);
DATEADD() function returns a specified date with the specified number interval (signed integer) added to a specified datepart of that date.
You’re planning to modify an existing table called “Manager” in your current database. Which of the following syntax can be used to rebuilds a primary key index called “PK_Manager_ID” on the Manager table?
What will be the possible output of following T-SQL statement?
SELECT TYPEPROPERTY(‘uniqueidentifier’,’Scale’);
TYPEPROPERTY() function returns information about a data type.
What will be the correct output of following T-SQL statement?
DECLARE @expression varchar(100)=’0′;
DECLARE @count int=5;
SELECT REPLICATE(@expression,@count)+’A’;
REPLICATE() function repeats a string value a specified number of times.
Which of the following function would you consider using to get the statistical standard deviation for the population for all values in the specified expression?
STDEVP() function returns the statistical standard deviation for the population for all values in the specified expression.
Which of the following is the correct output for the following T-SQL statement?
CREATE TABLE tbl_Scores(Score decimal(8,2)) ;
INSERT tbl_Scores VALUES (1.58),(2.38),(3.47),(4.01),(5.20) ;
SELECT IIF ( 5.20 = ANY (SELECT * FROM tbl_Scores), ‘TRUE’, ‘FALSE’ );
DROP TABLE tbl_Scores;
ANY logical operator compares a scalar value with a single-column set of values. SOME and ANY are equivalent.