Infosys Certified L1 Junior Microsoft .NET Programmer
Practice with real exam-pattern questions for Infosys Certified L1 Junior Microsoft .NET Programmer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified L1 Junior Microsoft .NET Programmer practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified L1 Junior Microsoft .NET Programmer certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
Which statements among following are correct?
- ✓ We can derive a class from a base class even if source code of base class not available Correct
- B Multiple inheritance is different from multiple levels of inheritance
- C Creating a derived class from base class requires fundamental changes to base class
- D It is possible to make objects of one class as members of another class
- Question 2
Which of the following statement is FALSE regarding the out Parameter?
- ✓
out parameter allows us to return multiple values
Correct - B
out parameter must be declared before its usage
- C
out parameter needs to be assigned when it is declared
- D
Keyword out is mandatory in both actual & formal parameter
- ✓
- Question 3
What will be the output of the following code snippet ?
using System;
namespace DemoOne
{
public class Base
{
private int intMember = 50;
public void Display()
{
Console.WriteLine("Result is " + intMember);
}
}
}
namespace DemoTwo
{
public class Base
{
private int intMember = 60;
public void Display()
{
Console.WriteLine("Result is " + intMember);
}
public static void Main(string[] args)
{
DemoOne.Base baseObj = new DemoOne.Base();
baseObj.Display();
}
}
}- ✓ Result is 50 Correct
- B Result is 60
- C Result is 0
- D Incorrect access of Display method
- Question 4
Consider the following program.
using System;
using System.Collections;
namespace Infosys.TelephoneDirectory
{
class Program
{
static void Main(string[] args)
{
SortedList myPhoneBook = new SortedList();
myPhoneBook.Add("Pat", 9932001343);
myPhoneBook.Add("Ted", 8956412745);
myPhoneBook.Add("Sam", 9243761256);
myPhoneBook.Add("Ann", 9546300876);
Console.WriteLine("Please enter a name to display the details:");
string searchName = Console.ReadLine();
int flag = 0;
foreach (object name in myPhoneBook.Keys)
{
//String.Compare(string str1,string str2,bool ignoreCase) method
//is used here for case insensitive comparison
if (String.Compare(name.ToString(), searchName, true) == 0)
{
Console.WriteLine("Search Results are:");
// LINE 01 : Code to display the output
flag = 1;
break;
}
}
if (flag == 0)
Console.WriteLine("No contacts found!");
}
}
}
Choose the correct option that needs to be written at LINE 01 inside Main() method in order to achieve the following output, when the user enters "Ted" as the input?
Please enter a name to display the details:
Ted
Search Results are:
Contact Name : Ted
Contact No. : 8956412745- ✓
Console.WriteLine("Contact Name : " + name);
Console.WriteLine("Contact No. : " + myPhoneBook.GetKey(0).ToString()); Correct - B
Console.WriteLine("Contact Name : " + name.ToString());
Console.WriteLine("Contact No. : " + myPhoneBook[name.ToString()]); - C
Console.WriteLine("Contact Name : " + name.Key);
Console.WriteLine("Contact No. : " + myPhoneBook[name.Key]); - D
Console.WriteLine("Contact Name : " + name.Key);
Console.WriteLine("Contact No. : " + name.Value);
- ✓
Console.WriteLine("Contact Name : " + name);
- Question 5
Consider your mobile phone. You just need to know how to use your mobile phone like what buttons are to be pressed to send a message or make a call. But what happens when you press a button or how your messages are sent or how your calls are connected is all abstracted away from the user. What object oriented principle is more relevant here?
- ✓ Encapsulation Correct
- B Abstraction
- C Polymorphism
- D None of the above
- Question 6
Which of the following is true with respect to conversion of data type.
static void Main(string[] args)
{
int num1 = 20000;
int num2 = 50000;
long total;
total = num1 + num2;
Console.WriteLine("Total is : " +total);
Console.ReadLine();
}
- ✓
Compiler will generate runtime error
Correct - B
Conversion is implicit type, no error generation
- C
Specifying data type for conversion externally will solve the problem
- D
None of the options
- ✓
- Question 7
Which of the following statement is correct about "params" parameter?
- ✓
We can have more than one "params" parameter in a method
Correct - B
We should mention "params" keyword in both actual and formal parameters
- C
"params" parameter must be the last parameter in a method
- ✓
- Question 8
You want to create a string property named CountryOfOrigin. You want to be able to read the property value from any code, but you should only be able to write to the property from within the containing structure. How should you declare the property?
- ✓
public string CountryOfOrigin { get; private set; }
Correct - B
public string CountryOfOrigin { get; }
- C
public string CountryOfOrigin { get; set; }
- D
private string CountryOfOrigin { get; set; }
- ✓
- Question 9
What is the output of the following code snippet?
class Demo
{
public static void Main(string[] args)
{
int var=4,temp;
double result,modVar;
result = (double) var / 3.9;
modVar = var % 4;
temp=(int)result + (int)modVar;
if(temp==1){
Console.WriteLine("The condition is true");
}
else{
Console.WriteLine("The condition is false");
}
}
}- ✓ The condition is true Correct
- B This code will not compile as value of int data type cannot be converted to boolean data type
- C The condition is false
- D This code will not compile as value of int data type cannot be converted to double data type
- Question 10
What is true regarding overloading?
- ✓
a. Overloaded methods have different types of arguments
Correct - B
b. Overloaded methods have different number of arguments
- C
c. Overloaded methods must have different return types.
- D
Option a & b are true
- ✓
More in Microsoft
Infosys Certified Dynamics 365 ERP Fundamentals
Infosys Certified MS SQL Server Developer
Infosys Certified Dotnet Core Web API Developer
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
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.