100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF1511 ASSIGNMENT 5 SEMESTER 1 2024 QUESTION AND SOLUTIONS DISTINCTION GUARANTEE $3.41   Add to cart

Exam (elaborations)

INF1511 ASSIGNMENT 5 SEMESTER 1 2024 QUESTION AND SOLUTIONS DISTINCTION GUARANTEE

 39 views  0 purchase
  • Course
  • Institution

INF1511 ASSIGNMENT 5 SEMESTER 1 2024 QUESTION AND SOLUTIONS DISTINCTION GUARANTEED!

Preview 2 out of 10  pages

  • July 11, 2024
  • 10
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Assessment 5
Open course
Started on Thursday, 11 July 2024, 5:59 AM
State Finished
Completed on Friday, 11 July 2024, 6:22 AM
Time taken 22 mins 42 secs
Marks 14.00/15.00
Grade 93.33 out of 100.00
Question 1
Complete
Not graded

Flag question

Question text


Marked out of 1.00



What code is generated when the following code is executed?

def myPet(pType,pName):

print('I have a %s named %s.' %(pType.lower(), pName.title()))



petType = str(input("What type of pet do you have? "))

petName = str(input("What is the name of your pet? "))

myPet(petType, petName)



a.What type of pet do you have? CAT

What is the name of your pet? FRED

I have a CAT named FRED.



b.What type of pet do you have? CAT

What is the name of your pet? FRED

, I have a cat named Fred.



c.What type of pet do you have? CAT

What is the name of your pet? FRED

I have a Cat named Fred.



d.What type of pet do you have? CAT

What is the name of your pet? FRED

I Have A Cat Named Fred.



Question 2



The variables in the function that receive the arguments are called _____.



a.globals



b.modules



c.parameters



d.returns



Question 3

A _____ function is a function that is small (usually only a single line), and is used only once.

a.argument

b.module

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80364 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
$3.41
  • (0)
  Add to cart