PRN212 EXAM QUESTIONS AND
CORRECT ANSWERS
In WPF Padding controls how much extra space gets placed around the
inside edges of the element.
a. True
b. False
a
Choose the correct statement about Extensible Application Markup
Language (XAML) in the WPF
a. XAML directly represents the instantiation of objects in a specific set
of backing types defined in assemblies
b. XAML is a declarative markup language. As applied to the .NET Core
programming model, XAML simplifies creating a UI for a .NET Core app
c. All of the others
d. XAML enables a workflow where separate parties can work on the UI
and the logic of an app, using potentially different tools
c
The TextBox control shows a default context menu with options to Cut,
Copy and Paste. Can we override this context menu by defining our own
in the TextBox control?
a. True
b. False
a
The Abstract Factory pattern provides an interface for creating families
of related objects without specifying their concrete classes. Which of the
following is a participant in the Abstract Factory pattern?
a. All of the above.
b. AbstractProduct
c. AbstractFactory
d. ConcreteFactory
a
What does the IEnumerable<T> interface define?
a. Methods for modifying a collection
b. A single method GetElements that returns an array
, c. Methods for sorting a collection
d. A single method GetEnumerator that returns an IEnumerator
d
Choose the incorrect statement about the Basic Structure of XAML in
the WPF
a. In a XAML file, Window is a top-level window with the tag, whereas
the Page is a browser-hasted page with the <Page> tag
b. The window is one of commonly used root 'element which contains
other elements
c. Apart from Window and Page, XAML has ResourceDictionary and
Application roat elements for specifying the exter dictionary and
application definition
d. A WPF application contains only Windows or window form controls
d
What type of collection is SortedSet<T>?
a. A collection of objects in random order
b. A collection of objects that can have duplicates
c. A collection of objects in sorted order with no duplicates
d. A collection of objects in descending order
c
Which of the following is a disadvantage of the Builder pattern?
a. It can lead to complex object creation logic.
b. Both B and C.
c.It requires creating a separate Concrete Builder for each different type
of Product.
d. The number of lines of code increases compared to a traditional
constructor.
b
Which of the following is NOT a benefit of using generics?
a. Improved performance
b. Reduction of run-time errors
c. Type safety at compile-time
d. Increased memory usage due to boxing
d
What is deferred execution in LINQ?
a. Execution of a query at compile time
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 $11.49. You're not tied to anything after your purchase.