PRN221 FINAL EXAM QUESTIONS WITH
100% VERIFIED ANSWERS
Which of the following is one of the Behavioral Design Patterns?
a . Facade
b. Abstract Factory
c. Chain of responsibility
d. Bridge
C
What is the definition of a static method?
a. public static MethodA()
b .public void MethodA()
c. private static MethodA()
d. public static void MethodA()
D
Which of the following is one of the Gang of Four (GoF) pattern
categories?
a. All of the others
b. Behavioural
c. Creational
d. Structural
A
Which of the following keywords meaning access is limited in the same
assembly but not outside the assembly?
a. protected internal
b. public
c .private
d. internal
D
Which of the following statements related to Generic Class is True?
a. When creating generic classes, important considerations include:
class type to generalize into type parameters
b. Generic classes encapsulate operations that are not specific to a
particular data type
c. None of the others
,d. Generic classes are defined using a type parameter in parentheses
after the class name
B
Choose the correct statement related to Generics in C#.
a. A type parameter is a placeholder for a particular type specified when
creating an instance of the generic type
b. Generic means the general form, not specific. In C#, generic means
not specific to a particular data type
c. Generic can be used with classes, interfaces, fields, methods,
properties, and delegates using the out parameter
d. None of the others
B
Which of the following statements related to the Generic Method is
True?
a. A method declared with the type parameters for its return type or
parameters is called a generic method
b .Generic methods can only be used to static methods
c .Generic methods can not be defined within non-generic classes
d. None of the others
A
For the following statements related to ThreadPool:
Statement 1. The thread pool manages threads efficiently by minimizing
the number of threads that must be created, started, and stopped.
Statement 2. By using the thread pool, we can focus on your business
problem rather than the application's threading infrastructure.
Choose the correct answer :
a. Statement 1 is True and 2 is False
b. Statement 1 is False and 2 is True
c. Statement 1 and 2 are True
d. Statement 1 and 2 are False
C
Which of the following keywords is used to override (hidden) an existing
method (must not virtual method) of the base class?
a. new
b. virtual
c. hidden
d. override
, A
Choose the incorrect statement about the delegate.
a. Delegates are used to invoke methods that have the same signatures
b. Delegates are of reference types
c. A delegate cannot use with event
d. Delegates are type-safe
C
Which statement is incorrect about C# language?
a. C# fully supports aspect-oriented programming techniques
b. There is no pointer required in C#
c. C# does support Automatic memory management through the delete
keyword
d. C# fully supports interface-based programming techniques
C
Choose the correct statement related to Design Patterns is True?
a. A design pattern provides a general reusable solution for the common
problems that occur in software design
b. A design pattern is a description or template for how to implement an
algorithm that can be used in many different applications
c. A design pattern is a finished design that can be transformed directly
into code C# or Java
d. None of the others
A
Choose the correct statement related to using collections.
a. Using collections involves a significant performance overhead in the
form of access to elements
b. A primary limitation of collections is the absence of effective type
checking
c. The implicit and explicit type casting in the collections help to gain the
high performance
d. None of the others
B
To read a line from the command line window (console window), which
of the following statements should be used?
a. System.Console.WriteLine();
b. System.Read.ReadLine();
c. System.Console.ReadLine();
d. System.ReadLine();
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller luzlinkuz. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.