Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Compiled Languages > Other Compiled Languages   »   Programming Questions

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Jul 13, 2009, 08:26 PM
andyhaus1057
Junior Member
andyhaus1057 is offline
 
Join Date: Sep 2007
Posts: 109
andyhaus1057 See this member's comment history on his/her Profile page.
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

Reply With Quote
 
     

Answers
 
 
Old Jul 13, 2009, 08:58 PM   #2  
Ultra Member
Perito is offline
 
Perito's Avatar
 
Join Date: Feb 2009
Location: USA
Posts: 2,866
Perito See this member's comment history on his/her Profile page.Perito See this member's comment history on his/her Profile page.
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.

Comments on this post
andyhaus1057 agrees: Thank you for your help
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
Something about programming!
(3 replies)
Programming!The function I follow the questions to do.Anyone can check for me?
(1 replies)
Programming Questions
(4 replies)
programming a t.v.
(1 replies)
c programming
(1 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 12:18 AM.