PRN 1178 client centered care 2 exam 1: Questions &
Answers: A+ Score Solution
Which of the following statements related to the Generic Method is True?
a.Generic methods can not be defined within non-generic classes
b.None of the others
c.A method declared with the type parameters for its return type or parameters is
called a generic method
d.Generic methods can only be used to static methods - ANSWERC
Which of the following statements related to Generic Class is True?
a.None of the others
b.Generic classes encapsulate operations that are not specific to a particular data
type
c.When creating generic classes, important considerations include: class type to
generalize into type parameters
d.Generic classes are defined using a type parameter in parentheses after the class
name - ANSWERB
Which is keyword meaning access is limited to the current assembly or types derived
from the defining class in the current assembly?
a.internal
b.protected internal
c.public
d.private - ANSWERB
Which of the following is one of the Creational Design Patterns?
a.Decorator
b.Singleton
c.Adapter
d.All of the others - ANSWERB
Which of the following keywords meaning access is limited in the same assembly but
not outside the assembly?
a.private
b.protected internal
c.internal
d.public - ANSWERC
Choose the correct statement related to the Namespaces in C#?
a.All of the others
b.It helps to control the scope of methods and variables in larger .Net programming
projects
c.It is used to organize the classes
d.The members of a namespace can be interfaces, structures, and delegates but not
namespaces - ANSWERC
,Which of the following is one of the Behavioral Design Patterns?
a.Bridge
b.Abstract Factory
c.Facade
d.Chain of responsibility - ANSWERD
The first character of an identifier (variable) can not be:
a.An underscore character
b.A lowercase letter
c.An uppercase letter
d.A digit - ANSWERD
Which statement is incorrect about C# language?
a.There is no pointer required in C#
b.C# does support Automatic memory management through the delete keyword
c.C# fully supports interface-based programming techniques
d.C# fully supports aspect-oriented programming techniques - ANSWERB
For the following statements related to Thread:
Statement 1. Foreground threads can prevent the current application from
terminating. The Core CLR will not shut down an application until all foreground
threads have ended.
Statement 2. Background threads are viewed by the Core CLR as expendable paths of
execution that can be ignored at any point in time.
Choose the correct answer :
a.
Statement 1 is True and 2 is False
b.
Statement 1 and 2 are False
c.
Statement 1 and 2 are True
d.
Statement 1 is False and 2 is True - ANSWERC
Which of the following is the Issue of Concurrency?
a.Blocking: Processes can block waiting for resources. A process could be blocked for
a long period waiting for input from a terminal
b.Average response time: Without concurrency, each application has to be run to
completion before the next one can be run
c.None of the others
d.Resource utilization: It enables that the resources that are unused by one
application can be used for other applications - ANSWERA
Choose the correct statement about .NET Framework.
, a.It used to develop two application types: ASP.NET Web Forms and WinForms
applications
b.It was developed to run on the Windows platform only
c.It is open source
d.None of the others - ANSWERB
Which of the following statements related to the characteristics of the delegate type
is True?
Statement 1: Invoke to methods that have the same signature.
Statement 2: Can be used as the parameters of any method.
Statement 3: Can be used to invoke methods via synchronous model by
BeginInvoke() method.
a.
Statement 1 and 3
b.
Statement 1, 2 and 3
c.
Statement 2 and 3
d.
Statement 1 and 2 - ANSWERD
To read a line from the command line window (console window), which of the
following statements should be used?
a.System.Read.ReadLine();
b.System.Console.WriteLine();
c.System.ReadLine();
d.System.Console.ReadLine(); - ANSWERD
Which of the following statements related to the ThreadPool is True?
a.Once thread pool threads finish executing their tasks, they will be killed
b.None of the others
c.A thread pool is a pool of worker threads that have already been created and are
available for apps to use as needed
d.The thread pool manages threads efficiently by minimizing the number of threads
that must be killed - ANSWERC
Choose the correct statement related to the Design Pattern?
a.Increased software development costs, because problems arise, are not known
b.None of the others
c.Design patterns provide specific solutions, documented in a format that require
specifics tied to a particular problem
d.Patterns allow developers to communicate using well-known, well-understood
names for software interactions - ANSWERD
Which of the following statement is one of the core components of the .NET
Framework integral to any application or service development?
Answers: A+ Score Solution
Which of the following statements related to the Generic Method is True?
a.Generic methods can not be defined within non-generic classes
b.None of the others
c.A method declared with the type parameters for its return type or parameters is
called a generic method
d.Generic methods can only be used to static methods - ANSWERC
Which of the following statements related to Generic Class is True?
a.None of the others
b.Generic classes encapsulate operations that are not specific to a particular data
type
c.When creating generic classes, important considerations include: class type to
generalize into type parameters
d.Generic classes are defined using a type parameter in parentheses after the class
name - ANSWERB
Which is keyword meaning access is limited to the current assembly or types derived
from the defining class in the current assembly?
a.internal
b.protected internal
c.public
d.private - ANSWERB
Which of the following is one of the Creational Design Patterns?
a.Decorator
b.Singleton
c.Adapter
d.All of the others - ANSWERB
Which of the following keywords meaning access is limited in the same assembly but
not outside the assembly?
a.private
b.protected internal
c.internal
d.public - ANSWERC
Choose the correct statement related to the Namespaces in C#?
a.All of the others
b.It helps to control the scope of methods and variables in larger .Net programming
projects
c.It is used to organize the classes
d.The members of a namespace can be interfaces, structures, and delegates but not
namespaces - ANSWERC
,Which of the following is one of the Behavioral Design Patterns?
a.Bridge
b.Abstract Factory
c.Facade
d.Chain of responsibility - ANSWERD
The first character of an identifier (variable) can not be:
a.An underscore character
b.A lowercase letter
c.An uppercase letter
d.A digit - ANSWERD
Which statement is incorrect about C# language?
a.There is no pointer required in C#
b.C# does support Automatic memory management through the delete keyword
c.C# fully supports interface-based programming techniques
d.C# fully supports aspect-oriented programming techniques - ANSWERB
For the following statements related to Thread:
Statement 1. Foreground threads can prevent the current application from
terminating. The Core CLR will not shut down an application until all foreground
threads have ended.
Statement 2. Background threads are viewed by the Core CLR as expendable paths of
execution that can be ignored at any point in time.
Choose the correct answer :
a.
Statement 1 is True and 2 is False
b.
Statement 1 and 2 are False
c.
Statement 1 and 2 are True
d.
Statement 1 is False and 2 is True - ANSWERC
Which of the following is the Issue of Concurrency?
a.Blocking: Processes can block waiting for resources. A process could be blocked for
a long period waiting for input from a terminal
b.Average response time: Without concurrency, each application has to be run to
completion before the next one can be run
c.None of the others
d.Resource utilization: It enables that the resources that are unused by one
application can be used for other applications - ANSWERA
Choose the correct statement about .NET Framework.
, a.It used to develop two application types: ASP.NET Web Forms and WinForms
applications
b.It was developed to run on the Windows platform only
c.It is open source
d.None of the others - ANSWERB
Which of the following statements related to the characteristics of the delegate type
is True?
Statement 1: Invoke to methods that have the same signature.
Statement 2: Can be used as the parameters of any method.
Statement 3: Can be used to invoke methods via synchronous model by
BeginInvoke() method.
a.
Statement 1 and 3
b.
Statement 1, 2 and 3
c.
Statement 2 and 3
d.
Statement 1 and 2 - ANSWERD
To read a line from the command line window (console window), which of the
following statements should be used?
a.System.Read.ReadLine();
b.System.Console.WriteLine();
c.System.ReadLine();
d.System.Console.ReadLine(); - ANSWERD
Which of the following statements related to the ThreadPool is True?
a.Once thread pool threads finish executing their tasks, they will be killed
b.None of the others
c.A thread pool is a pool of worker threads that have already been created and are
available for apps to use as needed
d.The thread pool manages threads efficiently by minimizing the number of threads
that must be killed - ANSWERC
Choose the correct statement related to the Design Pattern?
a.Increased software development costs, because problems arise, are not known
b.None of the others
c.Design patterns provide specific solutions, documented in a format that require
specifics tied to a particular problem
d.Patterns allow developers to communicate using well-known, well-understood
names for software interactions - ANSWERD
Which of the following statement is one of the core components of the .NET
Framework integral to any application or service development?