Exam 3: Using Variables and Constants
Exam 1: An Introduction to Visual Basic 201560 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure59 Questions
Exam 5: More on the Selection Structure60 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and Sql60 Questions
Select questions type
What is a static variable? How is it different from a class-level variable?
(Essay)
4.9/5
(36)
You cannot associate a procedure with more than one object or event.
(True/False)
5.0/5
(31)
Which of the following can store a number containing a decimal place?
(Multiple Choice)
4.9/5
(40)
Which of the following statements declares a class-level variable?
(Multiple Choice)
4.9/5
(30)
A form's CancelButton property specifies the button whose Click event procedure is processed when the user presses the ____ key.
(Multiple Choice)
4.8/5
(35)
An application translates English words into French words and displays the results as a message in a Label control. The strEnglish variable contains the string "apple". The strFrench variable contains the string "pomme". Write an assignment statement to display the string "The French word for apple is pomme." in the lblMessage control.
(Essay)
4.7/5
(32)
An application allows a user to enter an item price and a quantity to be used in a calculation. The item price may contain a decimal place, and the quantity will always be a whole number. Write the appropriate Dim statements to declare the variables. Write the related statements needed to convert the strings entered by the user into numeric data types.
(Essay)
4.8/5
(28)
Explain the scope and lifetime of variables. How are a variable's scope and lifetime determined? List the three scopes available for a variable.
(Essay)
4.7/5
(29)
Write a statement to display an input dialog box that shows "Car Make:" as the prompt, "Car" in the title bar, and an empty input area. When the user closes the dialog box, the assignment statement assigns the function's return value to the strCar variable.
(Essay)
4.8/5
(34)
Specifying the number of decimal places and the special characters to display in a number is called ____.
(Multiple Choice)
4.8/5
(41)
A default button is identified by setting the form's ____ property.
(Multiple Choice)
4.9/5
(26)
A procedure in an application needs to store tax rate data. The county of residence and the tax rate need to be stored. Write the appropriate Dim statements to declare the variables. Write an assignment statement that assigns .08 to the tax rate variable.
(Essay)
4.9/5
(36)
Object and String variables are automatically initialized using ____.
(Multiple Choice)
4.8/5
(44)
Case-Based Critical Thinking Questions Case 1 - PetPals
You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.
The account number for each pet must be available to be used by all procedures in the form. You should make sure the account number is declared using the ____ keyword.
(Multiple Choice)
4.7/5
(34)
A procedure in an application needs to store student data. The student first name, student last name, student GPA, and whether or not the student is registered all need to be stored. Write the appropriate Dim statements to declare the variables. Make sure to use appropriate naming conventions.
(Essay)
4.8/5
(40)
A procedure in an application needs to store data used to calculate the total price of purchasing tires. The price of the tires will contain a decimal place. The number of tires will always be a whole number. Write the appropriate Dim statements to declare the variables. Make sure to use appropriate naming conventions.
(Essay)
4.7/5
(37)
The decRate variable contains the number .03. Write the assignment statement to display the value as 3% in the lblRate control.
(Essay)
4.8/5
(36)
What are the Convert class methods and why are they sometimes used instead of conversion functions?
(Essay)
4.7/5
(43)
When using the Visual Basic 2015 InputBox function, which of the following is the Windows standard?
(Multiple Choice)
4.9/5
(36)
Showing 41 - 60 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)