click below
click below
Normal Size Small Size show me how
CS 115 - Quiz 1
| Question | Answer |
|---|---|
| All of the following are major hardware components of a typical computer system except Main Memory CPU Operating System Secondary Storage | x Operating System |
| You can think of ______ as the computer's work area -The CPU -Main memory -Secondary Storage -The Desktop | x Main memory |
| Application software refers to programs that ______ -Manage the computer's hardware devices -Controls the computers input/output -performs diagnostic tests on secondary storage -Make the computer useful to the user | x Make the computer useful to the user |
| The purpose of an algorithm is to __________ -Analyze the nature of the problem -list a set of steps to solve a problem -understand what a programming language does -list the elements needed for the user interface | list a set of steps to solve a problem |
| The CPU processes instructions written only in this language.(p. 6) -Java -pseudo code -machine language -Visual Basic | Machine language |
| ____________ were invented to make the process of encoding an algorithm in machine language easier.(p. 6) -Programming languages -Variables -Output devices -Graphical user interfaces | Programming languages |
| An object in Visual Basic ____________.(p. 9) -is also referred to as an event handler -is an attribute of a control -is an action performed by a method -contains data called properties | Contains data called properties |
| A word that has a specific meaning in a programming language is called ______________.(p. 7) -a keyword -an operator -a variable -a comment | A keyword |
| Which of the following is NOT an example of an event in Visual Basic? (p. 10) -clicking a button -dragging a control to a form from the tool box -changing contents of a textbox -clicking a control | Dragging a control to a form from the tool box |
| When creating a Visual Basic desktop application, the last thing you will do is ____________. (pp. 16, 20) -correct runtime errors -create the forms -write code for even procedures -correct syntax errors | Correct runtime errors |
| Programs should use comments (remarks) to __________________. (p. 8) -help the human reader of the program -make a program run more efficiently -make the code run faster -make the program smaller in size | help the human reader of the program |
| Flowcharts are used to _________________________. (p. 19) -determine the controls required for a program -describe the programs input and output -graphically depict the flow of a method -check for syntax errors | graphically depict the flow of a method |
| How would you display the Designer window if it is not visible in your project? -Press Shift+F9 on the keyboard -Click the Designer option on the VIEW menu -Press Ctrl+Alt+D on the keyboard -Click View Designer on the EDIT menu | Click the Designer option on the VIEW menu |
| The Auto Hide feature ____________________. (p. 29) a. enables the programmer to hide a control on a form b. permanently removes the toolbox from the Visual Basic environment | Contains buttons that execute frequently used commands |
| What is the purpose of the Toolbox? (p. 31) -To design user defined methods. -To select controls and place on an application’s form -To select event procedures associated with a control -To select methods to be placed on the form | To select controls and place on an application's form |
| How do you display a ToolTip? (p. 32) -To design user defined methods. -To select controls and place on an application’s form -To select event procedures associated with a control -To select methods to be placed on the form | To select event procedures associated with a control |
| A variable ___ -performs various operations on data -is a set of programming statements to perform a specific task -is a storage location in memory represented by a name -is a key element of the graphical user interface | is a storage location in memory represented by a name |
| Why is it necessary to run a program using test data for input? -To be sure that there are no syntax errors in the program. -To verify the application produces correct results. | To verify the application produces correct results |
| A TextBox control ________________. (p. 12) -is used to describe other controls on the form -can be used to display graphical images -has the same function as a label control -accepts text entered by the user | accepts text entered by the user |
| The part of a program that users see and work with is known as the ____________. (p. 8) -algorithm -properties -methods -user interface | User interface |
| In Visual Basic we work with objects, which have ________________. (p. 9) -programmer preference -projects and solutions -classes and actions -properties and methods | Properties and methods |
| Which is considered a valid step for developing a Visual Basic application? (p. 16) -Determine event handlers needed for each control. -Determine the controls needed. -Create a flowchart of the code. -all of the above | All of the above |
| The most common form of secondary storage is ________________. (p. 3) -a disk drive -the CPU -RAM -all of the above | A disk drive |
| A form is a ____________. -window in which other controls may be placed -box that displays text that cannot be changed by the user -piece of data that determines a characteristic of a control -control that displays a graphic image | window in which other controls may be placed |
| Any control ____________ should have a descriptive, programmer-defined name. (p. 14) -used in a form -whose name appears in a programming statement -that is a label -with a text property | whose name appears in a programming statement |
| If you wish to display text which cannot be modified by the user, use the ____________. (p. 12) -TextBox control -Label control -Caption control -Name control | Label Control |
| Which of the following is an example of a control? (p. 12) -Form -TextBox -Button -all of the above | All of the above |
| A programming statement must refer to a control by its __________ property. (p 14) -Text -Identifier -Name -Form | Name |
| Microsoft Visual Basic is an object-oriented programming language. (p 9) -True -False | True |
| Application software manages the computer’s hardware devices. (p 4) -True -False | False |
| A control is an object that usually appears in a program’s graphical user interface. (p 9) -True -False | True |
| Pseudocode is a combination of programming language and machine code. (p 19) -True -False | False |
| Properties determine the visual appearance of a control. (p 10) -True -False | True |
| Control names may begin with a letter or a number. (p 15) -True -False | False |
| Control names may not contain spaces. (p 15) -True -False | True |
| Which of the following is NOT a Visual Basic control? (p 12) -Form -TextBox -Algorithm -Label | Algorithm |
| Which of the following adheres to the naming conventions for a text box control? (p 15) -lblHoursWorked -txthoursworked -LBLhoursworked -txtHoursWorked | txtHoursWorked |
| The purpose of a compiler is to -Aid the programmer in commenting he/her code -Aid the programmer in developing GUIs. -Convert a program from a programming language to machine code | Aid the programmer in commenting he/her code |