Qtr No. 213, New Town Yehlanka Indore 454775
What would be the output of the following batch?
BEGIN
DECLARE @Num1 INT,@Result INT
SET @Num1=10
BEGIN TRY
SET @Result=@Num1/0
SELECT @Result
END TRY
BEGIN CATCH
PRINT 'Num1 cannot be divided by zero'
END CATCH
END
NULL
Num1 cannot be divided by zero
0
Num1 cannot be divided by zero
To get all Infosys Certified Backend Layers Developer Exam questions Join Telegram Group https://rebrand.ly/lex-group-70b557
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in
Updated on Tue, 16 Sept 2025