|
This week's quiz will test your MS-Access skills. 1. Custom controls are added to Access via which menu? A. File B. Tools C. Controls D. Help 2. Which of the following properties specifies that a control should appear as a dotted line? A. BorderColor B. BorderStyle C. BorderWidth D. Class 3. Which of the following statements create a new object variable for an Excel application? Choose all that apply. A. Set appExcel =
CreateObject("Excel") 4. What is the shortcut key to display the Object Browser? A. Shift+F2 B. F2 C. Shift+F5 D. F5 5. Microsoft Excel is currently running. The following code executes from Microsoft Access: Dim appXL As Object What will happen when this code executes? A. A new workbook will be added in the current
instance of Microsoft Excel 6. Microsoft Word is using Access as an OLE server to print a report. An object reference was created for the Access application. What method must be applied before using the DoCmd.OpenReport method? A. The Open method B. The OpenDatabase method C. The GetObject method D. The OpenCurrentDatabase method 7. The following code is behind a form named Customers: Private Sub HaltUpdateMsg() From where can you call this procedure? A. From code in referencing library 8. A control on a report is bound to a field with no format. What should you do to make that control display in all capital letters? A. On the report, set the control's Format
property to > 9. You want to move the cursor to a specified control Customer-State on the active form. What line of code should you use? A. Me!CustomerState.SetFocus 10.Which statement changes the value of the active combo box, (cboProduct) - on a form that is currently active - to the number 1? A. Screen.ActiveControl = 1 11. You need to search through data on a local table to return the total number of customers who live in a certain state. Which type of Recordset would yield the fastest possible results? A. Dynaset-type Recordset 12. A Recordset with the LockEdits property set to True is about to be updated. Which of the following statements are true? A. Optimistic locking is in effect. 13. Which of the following lines cannot have breakpoints on them? Choose all that apply. A. Dim X as Integer B. X = Y+Z C. "This is a comment" D. MsgBox "This is a message" 14. Which symbol can be used to separate multiple lines of code in the Debug window? A. : B. ; C. , D. / 15. Which of the following lines, when typed in the Debug window, displays the value of X? A. Print X B. ShowValue X C. ?X D. X 16. What precaution should a programmer take before issuing a call to a Windows DLL procedure that returns a Null-terminated string? A. Make sure the string is initialized as empty 17. Which of the following statements is not true? A. Permission information about objects, such as
tables and forms, is stored in the user database. 18. Which of the following tasks is possible in Access? A. Deleting the Admin user 19. What is the default recordset for SQL pass-through query? A. Snapshot-type B. Dynaset-type C. Table-type D. There is no default 20. Your code links to a table to your database by using ODBC at runtime. If this fails, you want to retrieve error messages from the ODBC driver. Where can you retrieve the error information from? A. The properties of the Err object in Visual
Basic for Applications |