Arguments are __________     Both variables defined in a function header and local variables to the function     Local variables to a function.     Variables defined in a function header.     Variables or constants used in a function call. Given the function of    def happyBirthday(name, age = 10):    print("Happy Birthday", name, "I hear your", age, "today") What is the output with a function call of:  happyBirthday("Timmy", 4)      Error Message     Happy Birthday Timmy I hear your 10 today     Happy Birthday Timmy I hear your 4 today     Happy Birthday 4 I hear your Timmy today Given the function of    def happyBirthday(name, age = 10):    print("Happy Birthday", name, "I hear your", age, "today") What is the output with a function call of:  happyBirthday(age = 5, name = "Sam")     Happy Birthday Sam I hear your 5 today     Happy Birthday Sam I hear your 10 today      Happy Birthday 5 I hear your Sam today     Error Message

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.6: A Closer Look: Namespaces And Creating A Personal Library
Problem 5E
icon
Related questions
Question
  1. Arguments are __________

       

    Both variables defined in a function header and local variables to the function

       

    Local variables to a function.

       

    Variables defined in a function header.

       

    Variables or constants used in a function call.

    1. Given the function of 

       

      def happyBirthday(name, age = 10):
         print("Happy Birthday", name, "I hear your", age, "today")


      What is the output with a function call of: 

      happyBirthday("Timmy", 4)

         

       Error Message

         

      Happy Birthday Timmy I hear your 10 today

         

      Happy Birthday Timmy I hear your 4 today

         

      Happy Birthday 4 I hear your Timmy today

      1. Given the function of 

         

        def happyBirthday(name, age = 10):
           print("Happy Birthday", name, "I hear your", age, "today")


        What is the output with a function call of: 

        happyBirthday(age = 5, name = "Sam")

           

        Happy Birthday Sam I hear your 5 today

           

        Happy Birthday Sam I hear your 10 today

           

         Happy Birthday 5 I hear your Sam today

           

        Error Message

         

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning