Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer 50 Lessons    Comments List
Pinned    Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Quiz
Richard Rost 
          
12 months ago
ACCESS DEVELOPER 50 QUIZ

LESSON 1

Q1. What is one of the main limitations of user-defined types compared to class modules in Access?
A. User-defined types cannot store string data
B. User-defined types cannot be used in public modules
C. User-defined types cannot validate or protect their data fields
D. User-defined types cannot be used in multiple forms

Q2. When might class modules be especially helpful for a developer?
A. When a database needs only a single table
B. When working in a team and wanting to enforce structure and data protection
C. When using only query-driven forms
D. When avoiding object-oriented design

Q3. What does encapsulation refer to in the context of class modules?
A. Hiding form controls from the user
B. Preventing direct manipulation of internal data and forcing use of defined methods
C. Combining multiple forms into one project
D. Creating public variables in forms

Q4. Why did the ToggleActiveState function initially fail to update the isactive property as expected?
A. Because the function returned the wrong data type
B. Because user-defined types do not allow Boolean values
C. Because the changed value was not returned from the function
D. Because the customer type was not defined as global

Q5. What is the significance of variable scope discussed in the lesson?
A. It only matters when creating tables
B. It determines whether a variable keeps its value between procedure calls or events
C. It affects how forms are displayed in Access
D. It allows VBA to create sub-databases

Q6. Where should variables be declared if you want them to retain their values between button clicks on a form?
A. Inside the button click subroutine
B. As temporary variables in queries
C. As form-level (module-level) variables or global variables
D. Only as constants

Q7. Which of the following is NOT something user-defined types in VBA can provide?
A. Grouping multiple related variables into a single data structure
B. Validation for data assigned to properties
C. Declaration of public types for use across modules
D. Passing complex information to functions in one parameter

Q8. What is a key reason the instructor says class modules are not always needed in Access development?
A. Access does not support object-oriented programming
B. Most Access databases are simple and do not require the advanced data protection offered by classes
C. Class modules are required for all queries in Access
D. Forms cannot interact with class modules

Q9. What kind of learning technique does the instructor emphasize while reviewing user-defined types?
A. Intensive memorization
B. Space repetition, revisiting topics over time for reinforcement
C. Avoiding review of previously covered topics
D. Relying solely on written documentation

Q10. What is one thing class modules can do that user-defined types cannot, according to the lesson?
A. Allow the creation of public functions
B. Prevent direct modification of fields by enforcing behavior rules
C. Store string values
D. Be used for form events

Answers: 1-C; 2-B; 3-B; 4-C; 5-B; 6-C; 7-B; 8-B; 9-B; 10-B

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

---

LESSON 2

Q1. What is the primary difference between a class module and a user-defined type, as discussed in the lesson?
A. A class module can store data only, while a user-defined type can store data and methods.
B. A class module allows you to add behavior and methods in addition to storing data, while a user-defined type only holds data.
C. A user-defined type can be used in forms, whereas class modules cannot.
D. A user-defined type allows access restrictions, while a class module does not.

Q2. How are public variables defined within a class module in the example?
A. By declaring them as Private within the class module
B. By writing them as Global outside the class module
C. By using the Public keyword followed by the variable name inside the class module
D. By initializing them in a subroutine

Q3. What must you use to create a new instance of a class in VBA, as shown in this lesson?
A. Dim and Load keywords
B. Initialize and New keywords
C. Dim and Set with the New keyword
D. Declare and Run keywords

Q4. Which statement about object instantiation with class modules in VBA is correct?
A. You can use class variables without instantiating them
B. You must use Set and New to assign an object reference
C. Instantiation is optional for class modules
D. The Set keyword cannot be used with class modules

Q5. According to the lesson, why is it a good practice to set object variables to Nothing after use in Access VBA?
A. To improve code readability
B. To avoid syntax errors
C. To prevent memory leaks
D. To enable multi-threading

Q6. What is the role of the Me keyword inside a class module in VBA?
A. It refers to the current form where the code is running
B. It refers to the variable passed to the function
C. It refers to the current instance of the class
D. It is used to call external modules

Q7. How can methods such as CreateCustomer be beneficial within a class module?
A. They allow for global access to variables
B. They centralize logic for creating or modifying a class object, making updates easier
C. They are required to store any data in the class
D. They allow users to bypass encapsulation

Q8. How does encapsulation improve your use of class modules over user-defined types?
A. It makes your code execute faster
B. It prevents anyone, including yourself, from accessing any variable
C. It restricts access to internal data, requiring changes to go through controlled methods
D. It allows methods to be called from anywhere, even if access is restricted

Q9. What is one limitation of user-defined types compared to class modules explained in the lesson?
A. User-defined types do not allow the use of encapsulation
B. User-defined types can only be used in forms
C. User-defined types cannot be declared as Public
D. User-defined types can store methods but not data

Q10. If you need to change the logic for how a customer is initialized, where would you update it using the methods discussed in the lesson?
A. In every form or module where customers are created
B. Directly in each variable assignment in the code
C. Only in the CreateCustomer method within the class module
D. In the database table schema

Answers: 1-B; 2-C; 3-C; 4-B; 5-C; 6-C; 7-B; 8-C; 9-A; 10-C

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

---

LESSON 3

Q1. What is the main purpose of encapsulation in a class?
A. To hide internal data and require access through controlled gateways
B. To allow all code in the project to modify variables directly
C. To reduce the size of your codebase
D. To ensure all variables are public by default

Q2. Why is it problematic to have class variables as public?
A. Public variables prevent the use of methods
B. Anyone can change the variables from anywhere in the project
C. It makes the code faster
D. It guarantees all data validation is enforced

Q3. What are the 'gateways' called that control access to private class data?
A. Methods
B. Events
C. Properties
D. Modules

Q4. What does making variables private in a class module accomplish?
A. The variables are deleted when the class is closed
B. Only the class itself can read or modify them
C. No code can ever access them again
D. They automatically have default values

Q5. What naming convention did the instructor use for class-level variables to minimize confusion?
A. Prefixing them with a lowercase c
B. Suffixing them with an uppercase V
C. Using all uppercase letters
D. Prefixing with a lowercase i

Q6. Why might you choose to have different names for property procedures and their underlying class variables?
A. To save typing time
B. To avoid naming conflicts and clarify their roles
C. Because the compiler requires it
D. To make debugging harder

Q7. What is the purpose of a Property Get procedure in a class?
A. To assign values to variables
B. To delete private data
C. To provide controlled read access to private variables
D. To raise errors on invalid input

Q8. How do Property Let procedures contribute to encapsulation?
A. They let you copy properties between classes easily
B. They provide controlled write access and allow for validation
C. They automatically encrypt your data
D. They are used to log every variable change

Q9. What is an example of data validation demonstrated in the lesson?
A. Ensuring last name is uppercase
B. Checking that the first name has a minimum length of three characters
C. Setting isActive to false by default
D. Converting numbers to strings

Q10. What happens if you try to assign an invalid value (such as a too-short first name) using a Property Let?
A. The assignment is accepted with a warning
B. The assignment is ignored, and a validation error is triggered
C. The program crashes
D. The variable is set to null

Q11. Why is it useful to use property methods instead of allowing direct access to class variables?
A. It adds extra lines to your code for better readability
B. It ensures that all data access and modifications can be controlled and validated
C. It requires less documentation
D. It makes the code less reusable

Q12. When the instructor refers to me.FirstName in the Property Let, what is actually happening?
A. The class variable is set directly
B. The value is ignored
C. The Property Let procedure is called, allowing for validation
D. The code creates a new property

Q13. How can encapsulation help when you are working in a development team?
A. It speeds up user interface design
B. It allows different developers to use their own variable names
C. It prevents accidental or unauthorized changes to internal class data by other developers
D. It lets everyone edit the data directly for convenience

Q14. What kind of properties will be discussed in the next lesson, as mentioned at the end?
A. Static and shared properties
B. Calculated and read-only properties
C. Final and constant properties
D. Indexed and sorted properties

Answers: 1-A; 2-B; 3-C; 4-B; 5-A; 6-B; 7-C; 8-B; 9-B; 10-B; 11-B; 12-C; 13-C; 14-B

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

---

LESSON 4

Q1. What is a calculated property in a class module?
A. A property that retrieves and returns computed data based on other properties, without storing a value itself
B. A property that stores data permanently in the class
C. A private variable that is not accessible from outside the class
D. A value that must be set by the user each time the class is used

Q2. How do you typically implement a read-only calculated property in VBA?
A. By using Public Property Get and Public Property Let procedures
B. By using only a Public Property Get procedure that calculates and returns a value
C. By using only a Public Property Let
D. By defining a Function outside the class

Q3. Which of the following is an example of a calculated property mentioned in the lesson?
A. Customer since
B. Years active
C. Customer ID
D. Email address

Q4. What VBA function was demonstrated to calculate the number of years a customer has been active?
A. DateAdd
B. DatePart
C. DateDiff
D. Now

Q5. Why can you not use Property Let for a calculated property like years active?
A. Because property lets can only be used with private variables
B. Because calculated properties are always integers
C. Because calculated properties are read-only and are meant to return data, not set it
D. Because it would make the property private

Q6. If a customer does not have a value for customer since (is null), what should the calculated years active property typically return, based on the lesson's suggestion?
A. -1
B. Null
C. 0
D. An error

Q7. What is an advantage of using a calculated property such as full name in a class?
A. You can perform concatenation everywhere in your application
B. You only have to create the logic in one place, and it becomes part of the class
C. It allows users to directly update first and last names at once
D. It stores the full name permanently in the database

Q8. In the status calculated property, what values might it return based on the lesson's example?
A. Only "Active" or "Inactive"
B. Inactive, New Customer, or Active [number] years
C. Only "Active [number] years"
D. Gold, Silver, Bronze

Q9. Within a calculated property inside a class, how can you access another property of the same class?
A. You must use the full object reference
B. You cannot access other properties from inside a calculated property
C. You can refer to the property directly by its name
D. Only by using global variables

Q10. If a calculated property is only a one-line calculation, what did the presenter recommend about formatting?
A. Use excessive spacing for clarity
B. No need for extra spacing; keep it concise for readability
C. Put it outside the class for better performance
D. Always make it a multi-line statement

Q11. According to the lesson, when should you consider separating logic into more readable multi-line code within your class module?
A. Only when you have more than two calculated properties
B. When the property calculation becomes more complex or involves multiple conditions
C. Never; single-line code is always better
D. When dealing with numeric values

Q12. What limitation with date formats in VBA was discussed?
A. VBA only accepts ISO date formats
B. VBA allows users to set custom date formats application-wide
C. VBA does not reliably accept ISO date format and may default to regional or US formats despite settings
D. VBA always uses the system's short date regardless of context

Q13. What is a key reason to use calculated properties for information like age or years active, as noted in the video?
A. Because they let you avoid using If statements in your code
B. Because recalculating in every part of your application is inefficient and unnecessary
C. Because calculated properties automatically create charts
D. Because only calculated properties can access the database

Q14. What is true about a calculated property that provides the number of years active for a customer?
A. It always provides the exact number of years, months, and days
B. It gives the number of whole years, but not fractional years or an exact age
C. It requires manual updating when the date changes
D. It is only available in modules, not class modules

Q15. Which of the following best describes a calculated property in the context of programming classes, as emphasized by the presenter?
A. A property with only a setter, not a getter
B. A property that stores historical data in a database
C. A property that acts much like a function, computing its value on the fly given the current state of the class
D. A property that must always be public

Answers: 1-A; 2-B; 3-B; 4-C; 5-C; 6-C; 7-B; 8-B; 9-C; 10-B; 11-B; 12-C; 13-B; 14-B; 15-C

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

---

LESSON 5

Q1. What is the primary advantage of adding methods to a class, as described in this lesson?
A. Methods allow the class to perform actions and enforce rules on its data
B. Methods help to organize data into tables automatically
C. Methods make property names more descriptive
D. Methods remove the need for any properties in a class

Q2. According to the lesson, why is using a method like deactivate preferable to directly setting the is active property?
A. It prevents users from updating any property in the class
B. It allows business logic and rules to be enforced when changing the state
C. It makes the code run faster
D. It reduces the number of properties in the class

Q3. What is an example of business logic that can be enforced within a class method?
A. Formatting all output as uppercase text
B. Preventing deactivation of customers who have been active less than a year
C. Automatically sorting customer names alphabetically
D. Allowing only one property to be updated at a time

Q4. What is the benefit of keeping logic like the deactivation rules inside the class instead of in forms or other parts of the application?
A. It ensures all rules are enforced consistently in one place
B. It allows for faster data retrieval
C. It automatically creates reports without extra code
D. It makes the class accessible only to administrators

Q5. What is a private helper function in the context of a class module?
A. A function that can only be accessed by code within the same class
B. A function that is accessible from anywhere in the database
C. A function that creates new class objects
D. A function that only formats numbers rather than dates

Q6. Why would you use a private helper function for something like date formatting in your class?
A. To prevent code duplication and keep formatting logic in one place
B. To allow other modules to access your custom format easily
C. To automate the creation of new properties
D. To speed up the performance of all queries in the database

Q7. If a customer is already inactive and the deactivate method is called, what should the method do according to the lesson?
A. Inform that the customer is already inactive and take no further action
B. Reactivate the customer immediately
C. Delete the customer record from the database
D. Ignore the request and proceed to deactivate again

Q8. What is the main concept illustrated by exposing a deactivated date as a property in the class?
A. Encapsulation, combining state data and behavior in the object
B. Inheritance, allowing the class to inherit another class's methods
C. Polymorphism, letting the class act like unrelated types
D. Serialization, saving the entire object to a file

Q9. What is one key benefit of moving logic for actions like cancellation or date formatting into the class module?
A. The logic only has to be written once, making code easier to test and maintain
B. The logic can be bypassed by users in different parts of the application
C. The logic automatically creates new database tables when needed
D. The logic must be updated in every form where it is used

Q10. How does adding methods and logic to classes move your application design beyond simply storing and retrieving data?
A. It enables the creation of objects that can manage their own behavior based on business rules
B. It eliminates the need for storing any data at all
C. It limits access to all data to only a single user
D. It prevents any changes from being made to the stored data

Answers: 1-A; 2-B; 3-B; 4-A; 5-A; 6-A; 7-A; 8-A; 9-A; 10-A

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

---

LESSON 6

Q1. What is the main purpose of using a customer class in the example described?
A. To store and display the properties of a single customer using class functions and logic
B. To replace all use of tables with classes
C. To manage multiple databases at once
D. To speed up SQL queries on customer data

Q2. Why is it recommended to create a new instance of the customer class inside the record set loop?
A. So each customer record has its own separate object representation
B. To share the same object across all customers
C. To reduce memory usage
D. To allow class functions to execute only once

Q3. What happens if you try to assign a value to a class property that only has a Property Get but not a Property Let?
A. You will receive an error because the property is read-only
B. The value will be set as expected
C. It will overwrite a different property
D. The code will be ignored and no value will be set

Q4. Which of the following correctly describes what Property Let does in the class?
A. It allows values to be assigned to a property from outside the class
B. It automatically displays the property value
C. It makes the property read-only
D. It deletes the property from the class

Q5. Why might it be important to handle null values when assigning fields from the record set to class properties?
A. To avoid run-time errors caused by trying to assign null to a property
B. To prevent SQL injection
C. To ensure all properties are always set to true
D. To reduce the number of database records

Q6. What is the recommended practice after setting an object variable like the customer class or a record set?
A. Set the variable to Nothing after use to release memory and resources
B. Delete the object from the database
C. Create a backup of the object
D. Store the object in a global variable

Q7. If you want information about a customer's name and status, where should this logic ideally be handled according to the lesson?
A. Inside the class using class functions and properties
B. In the user interface code
C. In a separate utility module
D. At the database table level with triggers

Q8. What is one benefit of using classes to encapsulate customer-related data and logic?
A. It centralizes and standardizes how customer information is handled throughout the application
B. It makes queries run faster without optimization
C. It allows anonymous access to all customer data
D. It eliminates the need for record sets

Q9. When is it appropriate to add a Property Let for a class property?
A. When you want to allow the property value to be changed from outside the class
B. Only when the property is a string
C. Only if the property value will never change
D. When the database is read-only

Q10. According to the lesson, what should you do before sharing properties of the class for external use?
A. Decide if you want to expose the property for reading, writing, or both by implementing Property Get and/or Property Let
B. Delete the property from the class
C. Set all properties to read-only
D. Encrypt the property value

Answers: 1-A; 2-A; 3-A; 4-A; 5-A; 6-A; 7-A; 8-A; 9-A; 10-A

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 50 Lessons.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 9:41:59 AM. PLT: 0s