Advertisement
Exam Name: LinkedIn C# Skill Quiz
Exam URL: https://www.linkedin.com/skill-assessments/C%23/quiz-intro/
- In which of these situations are interfaces better than abstract classes?
- Which statement is true of delegates?
- Which choice best defines C#’s asynchronous programming model?
- How would you determine if a class has a particular attribute?
- What is the difference between the ref and out keywords?
- How could you retrieve information about a class, as well as create an instance at runtime?
- What is this code an example of?
- What is the difference between an anonymous type and a regular data type?
- When would you use a Dictionary rather that an Array type in your application?
- What is the difference between a.Equals(b) and a == b?
- Which choice best describes a deadlock situation?
- How does the async keyword work?
- What is an object in C#?
- Which code snippet declares an anonymous type named userData?
- What will be returned when this method is executed?
- In what order would the employee names in this example be printed to the console?
- Lambda expressions are often used in tandem with which of the following?
- What is the correct formatting for single line and multiline comments?
- How do you make a method in an abstract class overridable?
- How would you write code for an integer property called Age with a getter and setter?
- What is an abstract class?
- When using a thread pool what happens to a given thread after it finishes its task?
- Which choice represents a class that inherits behavior from a base class?
- What does operator overloading allow you to do?
- What it the main purpose of LINQ?
- What is the correct syntax for a new generic list of strings named contacts?
- What is the difference between throw exceptions and throw clauses?
- When an asynchronous method is executed, the code runs but nothing happens other than a compiler warning. What is most likely causing the method to not return anything?
- What are C# events?
- What kind of values can arrays store?
- Given this enumeration, how would you access the integer-type value of ‘AppState.Loading’?
- What character would you use to start a regular expression pattern at a word boundary?
- To conform to the following interface, which of its members need to be implemented?
- You’re dealing with multiple assemblies in your program, but are worried about memory allocation. At what point in the program life cycle are assemblies loaded into memory?
- What is most accurate description of a regular expression?
- Why would you use a class field in C#
- When would you use generics in your code?
- What prints to the console when this code is executed?
- What is the difference between non-static and static classes?
- How would you declare a sealed class named User?
- Which characteristic prevents this code from compiling?
- How would you serialize this class?
- How would you write a delegate named ResultCallback with an int parameter named responseCode?
- What is the difference between a static and non-static method?
- What is the correct way to write an event named apiResult based on a delegate named ResultCallback?
- When will the code inside finally block be executed in a try-catch statement?
- What method correctly extends the string class?
- How are C# classses limited?
- What function do namespaces perform?
- What is the correct way to write a public property with a private backing field?
- What is a thread pool?
- When an object in C# is serialized, what is it converted to?
- What is a delegate
- What are the four keywords associated with exception handling in C#?
- What is the main difference between the is and as operators?
- What is the difference between finally and finalize blocks?
- Your application has a value type called username that needs to be able to accept null values, but this is generating compile-time errors. How would you fix this in code?
- Which code snippet correctly declares a custom exception named InvalidResponse?
- How would you write an enum variable called AppState with values for Offline, Loading, and Ready?
- What is the main difference between a value type and a reference type?
- What is the difference between the break and continue keywords?
- Which code snippet correctly declares a variable named userId with a public get and private set?
- What is true about virtual methods?
- What is likely to happen if you have multiple threads accessing the same resource in your program?
- How do you indicate that a string might be null?
- Do you need to declare an out variable before you use it?
- How would you access the last two people in an array named People?
- When can anonymous types be created?
- What is true about thread multitasking?
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.