1. Choose the correct statement of Singleton Pattern?
2. a. None of the others
3. b. Responsible for creating and maintaining many instances at the same time
4. c. Defines an Instance operation that lets clients access its unique instance. The
instance is a class operation
5. d. The single instance is a public static attribute. The accessor function is a private static
method - ANS-C
6. Choose the correct statement related to Assemblies in .NET (.NET 5)?
7. A. Assemblies from the fundamental units of deployment, version control, reuse,
activation scoping, and security permissions .NET based applications
8. B. An assembly is a collection oftypes and resources that are built to work together and
form a logical unit of functionality
9. C. Assemblies take the form of executable (.exe) or dynamic link library (.dll) files and
are the building blocks of .NET applications
10. D. All of the others - ANS-D
11. Choose the correct statement related to Concurrency in Operation System
12. a. Concurrency happens in the operating system when several process threads are
running in parallel
13. b. Concurrency is the execution of the multiple instruction sequences at the same time
14. c. All of the others
15. d. The running process threads always communicate with each other through shared
memory or message passing - ANS-C
16. Choose the correct statement related to events in C#
17. a. None of the others
18. b. An event is a user-generated or system-generated action
19. c. An event is a notification sent by an object to signal the occurrence of an action.
Events in .NET follow the singleton design pattern
20. d. The events allow an object (source of the event) be able to notify other objects
(subscribers) when the event was destroyed - ANS-B
21. Choose the correct statement related to Lamda Expressions
22. a. The '->' is the lambda operator which is used in all lambda expressions
23. b. With Lambda expressions we need to specify the type of the value that we input thus
making it more flexible to use
24. c. All of the others
25. d. Lambda expressions in C# are used like anonymous functions - ANS-D
26. Choose the correct statement related to Query Expressions
27. a. A from clause must be used to start a lambda expression and a sum or count clause
must be used to end the query expression
28. b. None of the others
, 29. c. A query expression is a query expressed in query syntax
30. d. A query expression consists of a set of clauses written in a declarative syntax similar
to SQL Server or XPathQuery - ANS-C
31. Choose the correct statement related to Query Expressions
32. a. A from clause must be used to start a lambda expression and a sum or count clause
must be used to end the query expression
33. b. None of the others
34. c. A query expression is a query expressed in query syntax
35. d. A query expression consists of a set of clauses written in a declarative syntax similar
to SQL Server or XPathQuery - ANS-C
36. Choose the correct statement related to the Design Pattern?
37. a. Increased software development costs, because problems arise, are not known
38. b. None of the others
39. c. Design patterns provide specific solutions, documented in a format that require
specifics tied to a particular problem
40. d. Patterns allow developers to communicate using well-known, well-understood names
for software interactions - ANS-D
41. Choose the correct statement related to the Namespaces in C#.
42. A. It is used to organize the classes
43. B. It helps to control the scope of methods and variables in larger .Net programming
projects
44. C. The members of a namespace can be interfaces, structures, and delegates but not
namespaces
45. D. All of the others - ANS-A
46. Choose the correct statement related to using collections
47. a. Using collections involves a significant performance overhead in the form of access to
elements
48. b. The implicit and explicit type casting in the collections help to gain the high
performance
49. c. None of the others
50. d. A primary limitation of collections is the absence of effective type checking - ANS-D
51. Choose the incorrect statement about the delegate
52. A. A delegate cannot use with event
53. B. Delegates are used to invoke methods that have the same signatures
54. C. Delegates are type-safe
55. D. Delegates are of reference types - ANS-A
56. For steps are used to create a Thread as the following:
57. Step 1. Create a type method to be the entry point for the new thread.
58. Step 2. Create a Thread object, passing the ParameterizedThreadStart/ThreadStart
delegate as a constructor argument.
59. Step 3. Create a new ParameterizedThreadStart (ThreadStart) delegate, passing the
address of the method defined in step 1 to the constructor.
60. Step 4. Establish any initial thread characteristics (name, priority, etc.)
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 LegitPage. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.