HomeExamsMicrosoftTETAMSTDEVIC1015
TETAMSTDEVIC1015

Infosys Certified Backend Layers Developer

Practice with real exam-pattern questions for Infosys Certified Backend Layers Developer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

BeginnerMicrosoft240 min
Free questions

10 Infosys Certified Backend Layers Developer practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Backend Layers Developer certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    Assume that the below table Course got created successfully.

    CREATE TABLE Course
    (
    	CourseId INT PRIMARY KEY IDENTITY(100,1),
    	CourseName VARCHAR(100) UNIQUE NOT NULL
    )
    

    Which of the following option helps to get the below mentioned output?

    CourseIdCourseName
    100C#
    10EF
    101SQL

    • INSERT INTO Course VALUES ('C#')
      INSERT INTO Course (CourseId,CourseName) VALUES (10,'EF')
      SET IDENTITY_INSERT Course OFF
      INSERT INTO Course VALUES ('SQL')
      

      Correct
    • B
      INSERT INTO Course VALUES (100,'C#')
      SET IDENTITY_INSERT Course ON
      INSERT INTO Course (CourseId,CourseName) VALUES (10,'EF')
      SET IDENTITY_INSERT Course OFF
      INSERT INTO Course VALUES (101,'SQL')
      

    • C
      INSERT INTO Course VALUES ('C#')
      SET IDENTITY_INSERT Course ON
      INSERT INTO Course VALUES (10,'EF')
      SET IDENTITY_INSERT Course OFF
      INSERT INTO Course VALUES ('SQL')
      

    • D
      INSERT INTO Course VALUES ('C#')
      SET IDENTITY_INSERT Course ON
      INSERT INTO Course (CourseId,CourseName) VALUES (10,'EF')
      SET IDENTITY_INSERT Course OFF
      INSERT INTO Course VALUES ('SQL')
      

  2. Question 2

    What would be the output when the following SQL scripts gets executed?

    CREATE TABLE Roles
    (
    	RoleId INT PRIMARY KEY IDENTITY(1000,2),
    	RoleName VARCHAR(50) UNIQUE NOT NULL
    )
    GO
    
    INSERT INTO Roles VALUES ('Admin')
    GO
    
    SET IDENTITY_INSERT Roles ON
    INSERT INTO Roles(RoleId,RoleName) VALUES (1100,'HR')
    SET IDENTITY_INSERT Roles OFF
    
    DELETE FROM Roles
    SELECT @@IDENTITY
    GO
    

    • 1000Correct
    • B1002
    • C1100
    • D1102
  3. Question 3

    Consider the below SQL statements

    CREATE TABLE Dancer
    (
    	DancerId INT PRIMARY KEY IDENTITY(1,2),
    	Name VARCHAR(100)
    )
    
    INSERT INTO Dancer VALUES ('Priya')
    INSERT INTO Dancer VALUES ('Riya')
    
    SET IDENTITY_INSERT Dancer ON
    DELETE FROM Dancer WHERE DancerId = 2
    INSERT INTO Dancer VALUES ('Linza')
    SET IDENTITY_INSERT Dancer OFF
    
    INSERT INTO Dancer VALUES ('Shreya')
    

    What will be the value of identity for the last inserted row?

    • 7Correct
    • B2
    • C3
    • D5
  4. Question 4

    Consider the following procedure

    CREATE PROCEDURE Test
    (
    	@Id INT OUTPUT, 
    	@Name VARCHAR(10)
    ) 
    AS 
    BEGIN 
    	SET @Id=10 
    	SET @Name='James' 
    END 
    

    What will be the output after executing the following statements?

    DECLARE @Name VARCHAR(10)='Tom' 
    DECLARE @Id INT 
    EXEC Test @Id OUTPUT, @Name 
    SELECT @Id, @Name
    

    • 10 JamesCorrect
    • B10 NULL
    • C10 Tom
    • DNULL Tom
  5. Question 5

    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
    

    • NULLCorrect
    • BNum1 cannot be divided by zero
    • C

      NULL

      Num1 cannot be divided by zero

    • D

      0

      Num1 cannot be divided by zero

  6. Question 6

    BEGIN 
    	BEGIN TRY 
    		SELECT 1/0 
    	END TRY 
    	BEGIN CATCH 
    		PRINT 'Some Error Occurred' 
    	END CATCH 
    	IF @@ERROR <> 0 
    	PRINT 'Divide by Zero Exception Occurred' 
    END
    

    Predict the output of the code given above.

    • Some Error Occurred

      Correct
    • B

      Divide by Zero Exception Occurred

      Some Error Occurred

    • C

      Divide by Zero Exception Occurred

    • D

      Some Error Occurred

      Divide by Zero Exception Occurred

  7. Question 7

    Along with a simple read operation, what other operation/s can be performed on entities while querying data using LINQ?

    • FilteringCorrect
    • BSearching based on pattern matching
    • CSorting of data
    • DAll of the above
  8. Question 8

    Choose the correct syntax from the given options, that will delete multiple rows of a table, which contains the provided substring as part of the bookType.

    • var deleteBooks = context.Books.Where(p => p.BookType.Contains(subString));
      context.Books.Remove(deleteBooks);
      context.SaveChanges();
      

      Correct
    • B
      var deleteBooks = context.Books.Where(p => p.BookType.Contains(subString));
      context.Books.RemoveRange(Books);
      context.SaveChanges();
      

    • C
      var deleteBooks = context.Books.Where(p => p.BookType.Contains(subString));
      context.Books.RemoveRange(deleteBooks);
      context.SaveChanges();
      

    • D
      var deleteBooks = context.Books.Where(p => p.BookType.Contains(subString));
      context.Books.RemoveRange(deleteBooks);
      

  9. Question 9

    For the following code,

    SqlParameter prmStudentName = new SqlParameter("@StudentName", studentName);
    
    SqlParameter prmReturnResult = new SqlParameter("@ReturnResult", System.Data.SqlDbType.Int);
    prmReturnResult.Direction = System.Data.ParameterDirection.Output;
    
    result = context.Database
    .ExecuteSqlRaw("EXEC @ReturnResult = usp_ AddStudentDetails @ StudentName”, prmReturnResult, prmStudentName);
    returnResult = Convert.ToInt32(prmReturnResult.Value);
    

    what is the value of the variable result when NO rows are affected in the database? Assume that the procedure usp_AddStudentDetails contains one update and one insert statement and the procedure returns 1, only if they are executed successfully.

    • 0Correct
    • B-1
    • C-2
    • DNULL
  10. Question 10

    Alex has following Entity Classes in the DAL for the tables Transaction and User for his UPITransaction application. He wants to fetch all the transaction details depending on the UserName.

    Choose from the given options that help him achieve the requirement.

    public partial class Transaction
    {
    	public string TransactionId { get; set; }
    	public string TransactionType { get; set; }
    	public string TransactionDate { get; set; }
    	public string UserId { get; set; }
    	public string TransactionStatus { get; set; }
    	public User User { get; set; }
    }
    public partial class User
    {
    	public string UserId { get; set; }
    	public string UserName { get; set; }
    	public string Password { get; set; }
    	public string MobileNumber { get; set; }
    	public ICollection<Transaction> Transactions { get; set; }
    }

    Assumptions:

    a.Transactions and Users are the DbSet properties in the UPITransactionDBContext

    b.Context is an object of the class UPITransactionDBContext

    Choose TWO correct options.

    • var transactionList = (from t in Context.Transactions where t.User.UserName == userName select t).ToList();
      Correct
    • B
      var transactionList = (from t in Context.Transactions join u in Context.Users on t.UserId equals u.UserId where u.UserName == UserName select t).ToList();
    • C
      var transactionList = (from u in Context.Users where u.UserName == userName select u).ToList();
    • D
      var transactionList = (from u in Context.Users join t in Context.Transactions on u.UserId equals t.UserId where u.UserName == UserName select u).ToList();
Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

Common questions, straight answers.

A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.

Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.

We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.

Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.

Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram