Ask Experts Questions for FREE Help !
Ask
    andyhaus1057's Avatar
    andyhaus1057 Posts: 98, Reputation: 1
    Junior Member
     
    #1

    Jul 13, 2009, 08:26 PM
    Programming Questions
    Hi,

    I'm not sure about these, but these are my answers. Can you please check them for me?

    1) When __, a copy of the argument's value is passed into the parameter variable.
    B?

    A) passing an argument by reference
    B) passing an argument by name
    C) passing an argument by value
    D) passing an argument by data type


    2) When __, the module can modify the argument in the calling part of the program
    C?

    A) passing an argument by reference
    B) passing an argument by name
    C) passing an argument by value
    D) passing an argument by data type


    3) When possible, you should avoid using __ variables in a program
    B?

    A) local
    B) global
    C) reference
    D) parameter
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Jul 13, 2009, 08:58 PM
    1) When __, a copy of the argument's value is passed into the parameter variable.
    B?

    A) passing an argument by reference
    B) passing an argument by name
    -> C) passing an argument by value
    D) passing an argument by data type

    If you pass it by value, you pass a copy of the variable.

    2) When __, the module can modify the argument in the calling part of the program
    C?

    ->A) passing an argument by reference
    B) passing an argument by name
    C) passing an argument by value
    D) passing an argument by data type

    When you pass an argument by reference, the subroutine can modify the value in the calling routine.

    Passing by name or passing by data type are "smoke screens".



    3) When possible, you should avoid using __ variables in a program
    B?

    A) local
    ->B) global
    C) reference
    D) parameter

    My selections are shown by the arrows.

    This should be under "Programming" somewhere.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

C programming [ 2 Answers ]

I'll be extremely thankful if u could provide me with a c program that convert a given nfa to dfa

Something about programming! [ 4 Answers ]

Can anyone help me about this question>>>?? (Microsoft Visual C++) A company wants to transmit data over the telephone, but they are concerned that their phones may be tapped. All of their data is transmitted as four-digit integers. They have asked you to write a program that will encrypt their...

Programming!The function I follow the questions to do.Anyone can check for me? [ 2 Answers ]

Question 1 Write a C/C++ program to perform the task of maintaining student information for 123 College. You are to use a linked-list for storing the student records. Each student record contains the student’s name and age, and it should be a node in the linked-list. Your program should have an...

Programming Questions [ 4 Answers ]

Write a C/C++ program to perform the task of maintaining student information for 123 College. You are to use a linked-list for storing the student records. Each student record contains the student’s name and age, and it should be a node in the linked-list. Your program should have an insert(),...

Programming a t.v. [ 1 Answers ]

I bought a vizio t.v. and was wondering if anyone could tell me how to programming a direct t.v. remote to the television because it's not listed on the programs:confused:


View more questions Search