PRN211 PT2 EXAM QUESTIONS WITH
CORRECT ANSWERS
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 |- |CORRECT |ANSWER✔✔-C
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 |- |
CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-B
Which |of |the |following |is |one |of |the |Creational |Design |Patterns? |
a.Decorator |
,b.Singleton |
c.Adapter |
d.All |of |the |others |- |CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-C
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 |- |CORRECT |ANSWER✔✔-C
Which |of |the |following |is |one |of |the |Behavioral |Design |Patterns? |
a.Bridge |
b.Abstract |Factory |
c.Facade |
d.Chain |of |responsibility |- |CORRECT |ANSWER✔✔-D
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 |- |CORRECT |ANSWER✔✔-D
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 |- |CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-C
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 |- |CORRECT |ANSWER✔✔-A
Choose |the |correct |statement |about |.NET |Framework. |
a.It |used |to |develop |two |application |types: |ASP.NET |Web |Forms |and |WinForms |applications |
CORRECT ANSWERS
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 |- |CORRECT |ANSWER✔✔-C
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 |- |
CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-B
Which |of |the |following |is |one |of |the |Creational |Design |Patterns? |
a.Decorator |
,b.Singleton |
c.Adapter |
d.All |of |the |others |- |CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-C
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 |- |CORRECT |ANSWER✔✔-C
Which |of |the |following |is |one |of |the |Behavioral |Design |Patterns? |
a.Bridge |
b.Abstract |Factory |
c.Facade |
d.Chain |of |responsibility |- |CORRECT |ANSWER✔✔-D
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 |- |CORRECT |ANSWER✔✔-D
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 |- |CORRECT |ANSWER✔✔-B
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 |- |CORRECT |ANSWER✔✔-C
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 |- |CORRECT |ANSWER✔✔-A
Choose |the |correct |statement |about |.NET |Framework. |
a.It |used |to |develop |two |application |types: |ASP.NET |Web |Forms |and |WinForms |applications |