100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRU221m - SU22 Questions and Correct Answers the Latest Update $14.49   Add to cart

Exam (elaborations)

PRU221m - SU22 Questions and Correct Answers the Latest Update

 0 view  0 purchase
  • Course
  • PRU221m - SU22
  • Institution
  • PRU221m - SU22

1. Key word used to raised exception manually? a. try b. catch c. throw d. return c 2. Stack myStack = new Stack() { 1, 2, 3, 4, 5}; foreach (var itm in myStack) Console.Writeline(itm); a. 12345 b. Compile time error c. Run time error d. 54321 b 3. Composite design pattern, Leaf: ...

[Show more]

Preview 3 out of 28  pages

  • November 7, 2024
  • 28
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PRU221m - SU22
  • PRU221m - SU22
avatar-seller
TestTrackers
#Examify | #OnlineExams | #TestPrep | #StudyResources | #AcademicSuccess |
#ExamPreparation | #QuizTime | #LearningTools | #Education | #StudentSupport




PRU221m - SU22 Questions and Correct
Answers the Latest Update
1. Key word used to raised exception manually?

a. try

b. catch

c. throw

d. return


✓ c



2. Stack myStack = new Stack()

{ 1, 2, 3, 4, 5};

foreach (var itm in myStack)

Console.Writeline(itm);

a. 12345

b. Compile time error

c. Run time error

d. 54321


✓ b



3. Composite design pattern, Leaf:

Examify | Smart Grades | Latest update

,#Examify | #OnlineExams | #TestPrep | #StudyResources | #AcademicSuccess |
#ExamPreparation | #QuizTime | #LearningTools | #Education | #StudentSupport




a. declares the interface for objects in the composition and for accessing and

managing its child components

b. implements default behavior for the interface common to all classes as

appropriate

c. defines behavior for primitive objects in the composition

d. stores child components and implements child related operations in the

component interface


✓ c



4. Data in chess stored -> Suitable data structure:




a. array

b. set

c. tree

d. list


✓ a



5. Composite design pattern: participants manipulate object in composition

through component interface?

a. Leaf


Examify | Smart Grades | Latest update

, #Examify | #OnlineExams | #TestPrep | #StudyResources | #AcademicSuccess |
#ExamPreparation | #QuizTime | #LearningTools | #Education | #StudentSupport

b. Composite

c. Client

d. Component


✓ c



6. Advantage of prototype pattern?




a. It reduces the need of sub-classing.

b. It hides complexities of creating objects.

c. The clients can get new objects without knowing which type of object it will

be.

d. It lets you add or remove objects at runtime.

e. All of others


✓ e



7. 10, 8, 4, 11, 6, 9, 3, 12, 7, 5

=> Binary search tree (reversal order: 3 là min, 12 là max)

=> In-order traverse -> ?

a. 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

b. 12, 11, 10, 9, 8, 7, 6, 5, 4, 3



Examify | Smart Grades | Latest update

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 TestTrackers. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $14.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78252 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$14.49
  • (0)
  Add to cart