Certification Practice Test Sample Questions For
Programming in C# (20483)
QuickStart is now offering sample questions for Programming in C# (20483). Whether you are deciding which exam to sign up for, or simply want to practice the materials necessary to complete certification for this course, we have provided a practice test to better aid in certification. 100% of the questions are real test questions; from a recent version of the Programming in C# (20483) exam.
Microsoft Certification Training Courses On The #1 IT Workforce Readiness Platform
Enroll now today and get 30% off using discount code PRACTICE30 at checkout.
Programming in C# (20483) Sample Exam Questions
MODULE 1
What can you use XAML to define?
Can you identify the data type that can store 4 bytes integer?
Identify from the following the.NET command that is not a Loop.
Back To Top
MODULE 2
void RemoveData()
{
}
void RemoveData(int Id)
{
}
Identify the correct statement as per the code mentioned above.
- B. Method Overriding
-
Incorrect.
- C. Methods are Overloaded
-
Correct!
- D. Above code will generate error
-
Incorrect.
Can you identify the keyword required to make a parameter output?
try
{
int a = 200;
}
catch (Exception ex)
{
// handling exception here
}
Identify the correct statement as per the code mentioned above
- B. code will compile, it will handle the error, but then it will raise error because finally block is missing
-
Incorrect.
- C. code will compile and work without any error
-
Correct!
- D. code will not compile because finally is missing
-
Incorrect.
Back To Top
MODULE 3
Can you choose which of the statements below stands true about structures?
- A. default constructor is defined implicitly
-
Incorrect.
- B. structures are value type
-
Incorrect.
- C. structures are reference type
-
Incorrect.
- D. Both a and b
-
Correct!
Identify from the following collections which one is used to store key/value objects pair?
From the following options, choose one object that is required to define events in .NET?
- A. Delegates
-
Correct!
- B. Internal methods
-
Incorrect.
- C. Array
-
Incorrect.
- D. None of the above
-
Incorrect.
Back To Top
MODULE 4
Which of these classes cannot be instantiated?
- A. abstract classes
-
Incorrect.
- B. static classes
-
Incorrect.
- C. sealed classes
-
Incorrect.
- D. Both a and b
-
Correct!
Complete the sentence with the right option. In an abstract class there can be
- A. only abstract methods
-
Incorrect.
- B. abstract and non-abstract methods
-
Incorrect.
- C. only virtual methods
-
Incorrect.
- D. Both 1 and 2
-
Correct!
Can you identify from the following, which can be classified as advantages of Generics?
- A. no boxing and unboxing
-
Incorrect.
- B. no casting
-
Incorrect.
- C. type safety
-
Incorrect.
- D. All of the above
-
Correct!
Back To Top
MODULE 5
You are required to call an extension method for the String class. A a static method within a static class is created by you. Can you identify from the options below which point can help indicate that your method extends the String type?
- C. The return type of the method must be a String.
-
Incorrect.
- D. The class must inherit from the String class.
-
Incorrect.
Identify from the following options which type of method should be implemented in derived classes?
- A. Static methods.
-
Incorrect.
- B. Protected methods.
-
Incorrect.
- C. Abstract methods.
-
Correct!
- D. Public methods.
-
Incorrect.
Which of the following members can override keyword be used?
Back To Top
MODULE 6
You work for a coffee shop as a developer. You are tasked to process a 100GB video file with the help of your coding skills. The code you write must be able to transfer the file from one location on disk, to another location on disk, without reading the entire file into memory. Can you identify the classes you will use to read and write the file?
- B. The BinaryReader and BinaryWriter classes.
-
Incorrect.
- C. The MemoryStream, BinaryReader and BinaryWriter classes.
-
Incorrect.
- D. The FileStream, StreamReader and StreamWriter classes.
-
Incorrect.
You want to read the content from the text file. Which of the following would you use?
- A. Directory.Exists(…)
-
Incorrect.
- B. File.ReadAllText(…)
-
Incorrect.
- C. File.ReadAllLines(…)
-
Incorrect.
- D. Both b and c
-
Correct!
One of the following options cannot be classified as a serializable format. Can you identify which one could it be?
Back To Top
MODULE 7
You can use LINQ to query which of the following data sources?
- A. SQL Server databases
-
Incorrect.
- B. XML documents
-
Incorrect.
- C. ADO.NET data sets
-
Incorrect.
- D. All of the above
-
Correct!
The ADO.NET Entity Data Model Tools are provided by Visual Studio 2017. The ADO.NET Entity Data Model Tools include three wizards which work with models and data sources. Identify from the following options which one is the best description of Entity Data Model Wizard?
- A. Enables you to create SQL server database
-
Incorrect.
Can you spot the advantage(s) of using LINQ instead of traditional ways of querying data?
- A. LINQ provides IntelliSense support in Visual Studio
-
Incorrect.
- B. LINQ provides compile-time type-checking
-
Incorrect.
- C. LINQ provides compile-time syntax-checking
-
Incorrect.
- D. All of the above
-
Correct!
Back To Top
MODULE 8
Can you identify from the following statements which one best describes how data that is provided in an HTTP response can be accessed?
System.Net namespace is provided by the .NET Framework. The namespace consists of numerous request and response classes through which you can target various data sources. WebRequest is one of the class. Can you identify what it does?
- A. A derivative of the WebResponse class that provides functionality to process any FTP response.
-
Incorrect.
You provide remote access to an EDM by creating a WCF Data Service. Which of the following steps would you take to specify which entity sets the data service should make available to client applications?
- C. Do nothing. All entity sets in the EDM are automatically available to client applications.
-
Incorrect.
- D. Define a data contract for each entity set.
-
Incorrect.
Back To Top
MODULE 9
There are items in the ListBox, and to a few selected items you decide to apply a highlighting effect. What steps would you take?
A coffee company wants you to create an application which customers can use to place orders for coffees. There should be a list of products from which customers can select the drink they want. There should be four features attached with each item within the application, including the name of the coffee, its description, its price, and an image of the coffee. What action would you take to execute it?
- A. Create a ListBox control. Use a Style to specify how each field is displayed within a list item.
-
Incorrect.
- B. Create a ListBox control. Use a DataTemplate to specify how each field is displayed within a list item.
-
Correct!
You are required to lay out a UI using rows and columns. Identify the container control you must use.
- A. The WrapPanel control.
-
Incorrect.
- B. The DockPanel control.
-
Incorrect.
- C. The Canvas control.
-
Incorrect.
- D. The Grid control.
-
Correct!
Back To Top
MODULE 10
There are three tasks named task1, task2, and task3, created and started by you. You decide to block the joining thread till the time all these tasks are parked to completion. Identify the code example you think you should use to accomplish this?
- A. Task.WhenAll(task1, task2, task3);
-
Incorrect.
- B. Task.WaitAll(task1, task2, task3);
-
Correct!
- C. task1.Wait();task2.Wait();task3.Wait();
-
Incorrect.
- D. Task.WaitAny(task1, task2, task3);
-
Incorrect.
Following is a signature for a synchronous method you have.
public IEnumerable GetCoffees(string country, int strength)
If you want to convert this method to an asynchronous method, what would the signature of this method be?
You want to make sure at one point in time, maximum five threads can access a resource. Identify the synchronization primitive you must use.
- A. The ReaderWriterLockSlim class.
-
Incorrect.
- B. The SemaphoreSlim class.
-
Correct!
- C. The ManualResetEventSlim class.
-
Incorrect.
- D. The CountdownEvent class.
-
Incorrect.
Back To Top
MODULE 11
Can you identify from the following statements which one is the best description for a dynamic keyword?
You want to dispose the object implicitly. Which statement would be suitable for it?
Can you identify from the following options, which of these is a result of object being created in object life cycle?
- A. Memory is reclaimed
-
Incorrect.
- B. Memory is allocated
-
Correct!
- C. Resources are released
-
Incorrect.
- D. None of the above
-
Incorrect.
Back To Top
MODULE 12
There is a code that uses CodeDOM to generate managed Visual C# at run time. You are reviewing it. Can you identify from the options below what the below mentioned line of code does?
var method = new CodeEntryPointMethod();
- A. Defines an instance method with a random name.
-
Incorrect.
- B. Defines a static method named EntryPoint.
-
Incorrect.
- C. Defines an instance method named Main.
-
Incorrect.
- D. Defines a static method named Main.
-
Correct!
The version number consists of the following sections i.e 2.1.0.24
- A.
. . . -
Correct!
- B.
.< build number >.< minor version >. -
Incorrect.
- C.
. . .< minor version > -
Incorrect.
- D.
. . . -
Incorrect.
Can you identify which class would you use while developing a custom attribute, if you want to derive your custom attribute class from the abstract base class that underpins all attributes?
- A. DataAttribute
-
Incorrect.
- B. ContextAttribute
-
Incorrect.
- C. Attribute
-
Correct!
- D. ExtensionAttribute
-
Incorrect.
Back To Top
MODULE 13
Asymmetric encryption encrypt data using which key?
Identify the option that is meant for encrypting large amount of data.
- A. Brute force
-
Incorrect.
- B. Symmetric encryption
-
Correct!
- C. Asymmetric encryption
-
Incorrect.
- D. None of the above
-
Incorrect.
Can you identify the .Net Framework class which uses a combination of the SHA512 hash algorithm and the Hash-Based Message Authentication Code (HMAC) in order to compute a 512-bit hash.
- A. MACTripleDES
-
Incorrect.
- B. SHA512Managed
-
Incorrect.
- C. HMACSHA512
-
Correct!
- D. MD5CryptoServiceProvider
-
Incorrect.
Back To Top
Tell Us About You:
- Home
- Practice Exam - Programming in C#
Practice Exam - Programming in C#
More Information:
- Learning Style: On Demand
- Learning Style: Practice Exam
- Difficulty: Beginner
- Course Duration: 1 Hour
- Course Info: Download PDF
- Certificate: See Sample
Contact a Learning Consultant
Need Training for 5 or More People?
Customized to your team's need:
- Annual Subscriptions
- Private Training
- Flexible Pricing
- Enterprise LMS
- Dedicated Customer Success Manager