Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 6, Problem 8RQ
Program Description Answer
The statement “The name of the actual argument must be identical to the formal parameters” is False.
Hence, the correct answer is option “D”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which of the following is false? a. The order of the arguments listed in the calling statement should agree with the order of the parameters listed in the receiving procedure’s header. b. The data type of each argument in the calling statement should match the data type of its corresponding parameter in the procedure header. c. When you pass an item to a procedure by value, the procedure stores the item’s value in a separate memory location. d. The name of each argument in the calling statement should be identical to the name of its corresponding parameter in the procedure header.
Which of the following is false?
a. The position of the arguments listed in the Call statement should agree with the position of the parameters listed in the receiving procedure’s parameterList.
b. The data type of each argument in the Call statement should match the data type of its corresponding parameter in the receiving procedure’s parameterList.c. The name of each argument in the Call statement should be identical to the name of its corresponding parameter in the receiving procedure’s parameterList.
d. When you pass information to a procedure by value, the procedure stores the value of each item it receives in a separate memory location.
Explain procedure return code briefly.
Chapter 6 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 6 - Prob. 1RQCh. 6 - Prob. 2RQCh. 6 - Prob. 3RQCh. 6 - Prob. 6RQCh. 6 - Prob. 7RQCh. 6 - Prob. 8RQCh. 6 - Which of the following instructs a function to...Ch. 6 - Prob. 10RQCh. 6 - Which of the following is a valid header for a...Ch. 6 - Prob. 14RQ
Ch. 6 - The memory locations listed in a procedure...Ch. 6 - Prob. 16RQCh. 6 - Prob. 17RQCh. 6 - The items in a combo box belong to which...Ch. 6 - Prob. 19RQCh. 6 - Prob. 20RQCh. 6 - Prob. 21RQCh. 6 - Prob. 22RQCh. 6 - Prob. 23RQCh. 6 - Prob. 24RQCh. 6 - Prob. 25RQCh. 6 - Prob. 1ECh. 6 - Prob. 3ECh. 6 - The Donut Shoppe sells four varieties of...Ch. 6 - Prob. 8ECh. 6 - Prob. 11E
Knowledge Booster
Similar questions
- The memory locations listed in a procedure’s parameterList have procedure scope and are removed immediately after the procedure header is processed.a. Trueb. Falsearrow_forwardIn order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following: Show the player the different commands they can enter (such as “go North”, “go West”, and “get [item Name]”). Show the player’s status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room. You could make these separate functions or part of a single function, depending on how you prefer to organize your code. #Sample function showing the goal of the game and move commands def show_instructions(): #print a main menu and the commands print("Dragon Text Adventure Game") print("Collect 6 items to win the game, or be eaten by the dragon.") print("Move commands: go South, go North, go East, go West") print("Add to Inventory: get 'item name'") #In this solution, the player’s status would be shown in a separate function. #You may organize your…arrow_forwardIn order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following: Show the player the different commands they can enter (such as “go North”, “go West”, and “get [item Name]”). Show the player’s status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room. You could make these separate functions or part of a single function, depending on how you prefer to organize your code. Sample function showing the goal of the game and move commands def show_instructions(): #print a main menu and the commands print("Dragon Text Adventure Game") print("Collect 6 items to win the game, or be eaten by the dragon.") print("Move commands: go South, go North, go East, go West") print("Add to Inventory: get 'item name'") The blue image is an example of how the code should look. The map image is the map your code should…arrow_forward
- When using a procedure the calling code sends data via the: Select one: a. formal parameter to the actual argument of the procedure b. actual parameter to the formal argument of the procedure c. formal argument to the actual parameter of the procedure d. actual argument to the formal parameter of the procedurearrow_forward1) Create the DISPLAY_OWNER procedure which obtains the first name and last name of the owner whose number currently is stored in I_OWNER_NUM (provided as a parameter). Place these values in the variables I_FIRST_NAME and I_LAST_NAME. Output the contents of I_OWNER_NUM, I_FIRST_NAME, and I_LAST_NAME. 2) Create the DISPLAY_PROPERTY_OWNER procedure which obtains the office location number, address, owner number, owner first name, and owner last name for the property whose property ID is currently stored in I_PROPERTY_ID (provided as a parameter). Place these values in the variables I_LOCATION_NUM, I_ADDRESS, I_OWNER_NUM, I_FIRST_NAME, and I_LAST_NAME, respectively. Output the contents of I_LOCATION_NUM, I_ADDRESS, I_OWNER_NUM, I_FIRST_NAME, and I_LAST_NAME.arrow_forwardPlease use C# for this. Thank you soo much!arrow_forward
- 2. Create a function that returns the Sales. Shippers companyname. Use the shipperid as the input parameter.arrow_forwardInput and run the VALID_DEPTID function to see how it works. CREATE OR REPLACE FUNCTION valid_deptID ( p_deptid IN departments. department_id%TYPE) RETURN BOOLEAN IS v_dummy PLS_INTEGER; BEGIN select 1 into v_dummy from departments where department_id = p_deptid; return TRUE; EXCEPTION WHEN NO_DATA_FOUND THEN RETURN FALSE; END valid_deptID;| Describe what the VALID_DEPTID function does.arrow_forwardSwapPoints Objective: To write two missing functions that manipulate objects, to complete a given program. I recommend you start early on this and all programming assignments. They are an important part of your grade, and they use material from the notes and exercises we did in the previous module. (They don't relate to this module's notes or exercise.) So your job is to write the two functions below, which are missing from the program: inputNewPlayerLocation: to input (x,y) coordinates from user (using Scanner), then return a Point object with those coordinates. swapPoints: to swap the coordinates of two Point objects. (Hint: To keep the main function's reference variables relevant, you can't swap Point objects entirely. You need to change the x and y coordinates inside the Point objects.)arrow_forward
- Ex2. Write down two functions: transfer and receive from a bank account The settings will be transferred to two users of the bank. Must be a user Presented as a struct and must have an account attribute. That is, the program should ask you to enter the bank account (string type) and the name of the person to whom you are transferring the amount, as well as the amount of the money. If the amount is more than $ 1000, the program must print a notification to enter a fee - 10% of the amount. After entering 10% of the amount, print on the screen that the amount has been transferred.arrow_forwardBelow is part of a Customer’s Order database. The primary keys are highlighted in bold. Customers (customer_id, name, email) Orders (order_id, customer_id, item, price)arrow_forwardYou have been asked to write the code that performs this validation for email and password. You decide to write a function named “valid_ address” and “valid_password” that accepts the e-mail address and password as an argument respectively and returns either true or false, to indicate whether they are valid or not.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr