Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3, Problem 17RQ
A static variable has the same _____________________ as a procedure-level variable but the same _____________________ as a class-level variable.
- a. lifetime, scope
- b. scope, lifetime
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
1. Variables defined with the new ES2015 keyword ______________ behave like let variables except they cannot be reassigned.
2. Most of the time, you want to pass a value back to the code that invoked a function for further processing before displaying it. To do this you will use a ____________statement.
3. In jQuery, there are two ways to canonically use the jQuery function to pass our function where the action is going to take place. The two named functions are jQuery and the ______________.
4. A function that is declared without any names identifier is an___________function.
5. To execute a function as soon as they are created, you will need to use an ___________ function expression.
6. To pass whatever values you like to a function and have it run using those values, you need to pass the function _____________ as defined in the function definition.
In C++ programming lanuage:
Normally a function does not have access to a variable defined in another function. However, by using a ________________variable as a parameter, a function may change a variable that is defined in another function.
A(n)_______________ procedure is a function that behaves like a class property.
Chapter 3 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 3 - Prob. 1MQ1Ch. 3 - Prob. 2MQ1Ch. 3 - Prob. 3MQ1Ch. 3 - Prob. 4MQ1Ch. 3 - Prob. 5MQ1Ch. 3 - Which of the following are valid names for...Ch. 3 - Prob. 1MQ2Ch. 3 - Prob. 2MQ2Ch. 3 - Write a Dim statement that declares a Boolean...Ch. 3 - Prob. 1MQ3
Ch. 3 - Prob. 2MQ3Ch. 3 - Prob. 3MQ3Ch. 3 - Write a TryParse method that stores the strSales...Ch. 3 - Prob. 1MQ4Ch. 3 - Prob. 2MQ4Ch. 3 - Prob. 3MQ4Ch. 3 - Prob. 4MQ4Ch. 3 - Prob. 5MQ4Ch. 3 - Prob. 1MQ5Ch. 3 - Prob. 2MQ5Ch. 3 - Prob. 3MQ5Ch. 3 - Prob. 4MQ5Ch. 3 - Prob. 1MQ6Ch. 3 - Prob. 2MQ6Ch. 3 - Prob. 3MQ6Ch. 3 - Prob. 4MQ6Ch. 3 - Prob. 5MQ6Ch. 3 - Prob. 1MQ7Ch. 3 - Prob. 2MQ7Ch. 3 - Prob. 3MQ7Ch. 3 - Prob. 4MQ7Ch. 3 - Prob. 1MQ8Ch. 3 - Prob. 2MQ8Ch. 3 - Prob. 3MQ8Ch. 3 - Prob. 4MQ8Ch. 3 - Prob. 1MQ9Ch. 3 - Prob. 2MQ9Ch. 3 - Prob. 3MQ9Ch. 3 - Prob. 1RQCh. 3 - Prob. 2RQCh. 3 - What is the result of the following expression: 96...Ch. 3 - Which of the following is an invalid name for a...Ch. 3 - The expression intNum * intNum * intNum is...Ch. 3 - What is the result of the following expression: 3...Ch. 3 - Prob. 7RQCh. 3 - Which of the following statements declares a...Ch. 3 - Which of the following can be used to clear the...Ch. 3 - Prob. 10RQCh. 3 - Which of the following declares a procedure-level...Ch. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - A static variable has the same...Ch. 3 - Prob. 18RQCh. 3 - Which of the following statements declares a...Ch. 3 - Most of the memory locations declared in an...Ch. 3 - Prob. 1ECh. 3 - Prob. 2ECh. 3 - Prob. 3ECh. 3 - Prob. 14E
Knowledge Booster
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
- Instructions: You will write a Python module named “your1stname_yourlastname_files.py” that will contain several functions to perform the following tasks in the prescribed order. Your program should have the statement “if __name__ == __main__” at the bottom, which will kick-start the execution of your module. Phase 0: Tell the user what the code is doing at runtime For every task, your Python code should display what it is about to do before starting, and inform the user when the task is done. This will also help you with the architecture of your code and debugging. Phase 1: Automated creation of directories and files 2. Create a directory named “your1stname_yourlastname_DIR” in the “Documents” directory of your computer. Inside the “your1stname_yourlastname_DIR” directory, automate the creation of directories and files according to the tree structure in Figure 1. You should find patterns and the file/folder names that would allow you to achieve this through a few loops. For…arrow_forwardFill-in-the-Blank _________ variables are defined outside all functions and are accessible to any function within their scope.arrow_forward8. A semaphore is a shared integer variable __________ i) that can not drop below zero ii) that can not be more than zero iii) that can not drop below one iv) that can not be more than onearrow_forward
- ______ functions have same name but different sets of parametersarrow_forwardCreate a new module named beautyid.py. Define a function named beautyidtag that accepts 4 parameters: face, hair, number, vitamins. The function should create a 10-digit identifier composed of the first 2 letters of the user input for the variable face, first 2 letters from the user input for the variable hair, the number from the variable number, the number of vitamins, and a random integer between 11 and 90. Identifiers must all be uppercase. Return the value of the 10-digit identifier back to the calling method when called. I have made another module called beautyinventory.py where the variables are stored. I'm going to import this module back into beautyinventory.pyarrow_forwardC++ Language Please fill in the blanks for the following statements: The file extension for the file that contains the class definition is ______________.arrow_forward
- 10 How do I write "Minesweeper" in C# with the following requirements ?1. This will be played in the console2. The game should be able to randomly generate 10 mines in a 10x10 grid3. The user will be able to enter a command that represents a coordinate to check a location for a mine4. The application will display a number from 0-8 depending on how many mines surround that location* If the user selects a mine, the game will respond "boom!" and the game will be lost* If every non-mine square has been revealed, the game is wonarrow_forwardc++ You are an IT Manager for a small company and must create a program to track your company’s personal computer inventory. Create a class that can be used for a Personal Computer. The class should have attributes for the: Manufacturer (e.g. Dell, Gateway, etc.),Form Factor (laptop/desktop),Serial NumberProcessor ( I3, I5, I7, AMD Ryzen 3, AMD Ryzen 5, etc.),RAM (4, 6, 8, 16, 32, or 64GB),Storage Type (UFS, SDD, HDD) andStorage Size (128GB, 256GB, 512GB, 1TB, 2TB).The constructor must accept the manufacturer, form factor, serial number, processor, RAM, storage type/size. Create accessor methods that allow these attributes to be retrieved individually. Create mutator methods that allow the RAM and the storage drive (type and size) to be changed. Incorporate exception handling to reject invalid values in the constructor and mutator methods. Create a toString() method formulate a string containing the manufacturer, form factor, serial number, processor, RAM, and storage type/size.…arrow_forwardCreate a function block he garage will accommodate 10 cars.1 The entrance has a momentary limit switch that changes states as a car enters thegarage. This will be simulated by a pushbuttonThe exit has a momentary limit switch that changes states as a car exits thegarage. This switch will be simulated by another pushbutton.The current number of cars in the garage will be indicated on the HMI’snumerical indicator.Also, indicate the number of cars that can still be accommodated. (ex.: if there are3 cars in the garage, indicate that the garage can still accommodate 7 more.)When the system has determined the garage is full a gate will lower, preventingmore cars from entering. A red pilot light will be used to indicate the gate islowered.Provide a message on the HMI stating that the “GARAGE IS FULL”.If the garage is empty indicate that the “GARAGE IS EMPTY” on the HMI andthe counter should be stuck at 0. To reset the system switch is toggled.arrow_forward
- Modify your program from week 5 so that the program utilizes object-oriented programming to create an application which allows the user to create, delete or modify orders. Your program should do the following in order: Define a class and class variables Create a function to set the order amount Set order amount Create a function to set order type Set order type Create a function to set the order number Set order number Create a function to get the order amount Return the order amount Create a function to get the order type Return the order type Create a function to get the order number Return the order number Modify the function to display the order menu Display a menu so that the user can select 1 of 6 options: Add Order Delete Order Edit Order Display Order Save Order Exit the Program Create a new function to save the order items added to the list in a text file. Repeatedly execute the menu selections unit the user enters 6 to exit the program.arrow_forwardFill-in-the-Blank The procedures, or functions, an object performs are called its _________________.arrow_forwardCreate a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTLINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License