Quiz
212 title
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (95)
1With Visual Basic you can write computer programs that run in the Microsoft Windows environment.
- ARichtig
- BFalsch
2Writing a program in Visual Basic is so easy that it is not necessary to do any planning.
- ARichtig
- BFalsch
3You are in run time when you design the user interface.
- ARichtig
- BFalsch
4You write Visual Basic code statements during design time.
- ARichtig
- BFalsch
5After you have added a label to a form you can change the words that are displayed inside the button by changing the Text property.
- ARichtig
- BFalsch
6In order to properly save changes that have been made to a Visual Basic project you should choose Save All from the File menu.
- ARichtig
- BFalsch
7The Visual Studio IDE will automatically create a new folder for each new project.
- ARichtig
- BFalsch
8If a project runs without a syntax error, you can be certain that the code has performed the project's task correctly.
- ARichtig
- BFalsch
9The default setting for the Checked property of a check box is True.
- ARichtig
- BFalsch
10If you have several radio buttons that were created by double-clicking, you can make them belong to a group box by dragging them on top of a GroupBox
- ARichtig
- BFalsch
11Setting the Cancel property of a button to True will allow the user to press Enter to select the
- ARichtig
- BFalsch
12The FormLocation property determines the position of the form on the user's screen when the project is run.
- ARichtig
- BFalsch
13The statement: itemTextBox.Focus(), will place the insertion point in the text box called itemTextBox.
- ARichtig
- BFalsch
14If you are declaring a variable that will be used in calculations, you may use the string data type.
- ARichtig
- BFalsch
15Constants can store string or numeric values.
- ARichtig
- BFalsch
16A variable named salesTotalDecimal that is declared in the calculateButton event can be used in any procedure of the form.
- ARichtig
- BFalsch
17Local variables can be used as counters and accumulators. (Ignore Static variables)
- ARichtig
- BFalsch
18Calculations may be performed with variables.
- ARichtig
- BFalsch
19The Parse method and exception handling can be used to eliminate the problems encountered when the user does not enter a value into a field.
- ARichtig
- BFalsch
20Message boxes can contain buttons.
- ARichtig
- BFalsch
21Message boxes can be used to notify the user if input data is not a reasonable value.
- ARichtig
- BFalsch
22It is best to declare constants in the procedure where the value will be used.
- ARichtig
- BFalsch
23In an If statement, when the condition is false, only the Else clause, if present, is executed.
- ARichtig
- BFalsch
24In an If...Then...Else statement, the Else clause is optional.
- ARichtig
- BFalsch
25The code: If numAInteger > numberBInteger OR numberBInteger > numberCInteger Then, evaluates True when numberAInteger=3, numberBInteger=5, and numberCInteger=2.
- ARichtig
- BFalsch
26If statements containing additional Ifs are said to be nested If statements.
- ARichtig
- BFalsch
27When a CheckBox is checked, the Checked property may be tested for a value of True.
- ARichtig
- BFalsch
28A CheckBox may be tested to determine if it is checked by using the following code:
If testChecked.Checked Then- ARichtig
- BFalsch
29"If redRadioButton.Checked Then" is valid code for checking if a radio button is selected.
- ARichtig
- BFalsch
30Usually the code written for a Case structure is simpler and easier to read than if the same code was written with nested Ifs.
- ARichtig
- BFalsch
31When a program executes a Call statement and the called procedure completes executing its code, program execution resumes on the statement following the call.
- ARichtig
- BFalsch
32It is not necessary to use the Call keyword when you want to call another event procedure. Simply list the object name, an underscore, the event, and the parentheses. If the procedure that you are calling requires arguments, place the arguments within the parentheses
- ARichtig
- BFalsch
33Once a Visual Basic event procedure is executing, there is no way of stopping execution before an error causes it to stop.
- ARichtig
- BFalsch
34To set a breakpoint, place the mouse pointer in the gray margin indicator area at the left edge of the Editor window and click
- ARichtig
- BFalsch
35A line of code which is marked as a breakpoint will have a large red dot in the left margin and the code will be highlighted in red.
- ARichtig
- BFalsch
36A radio button that is selected will have a checked property of Boolean True.
- ARichtig
- BFalsch
37When VB compares character strings, it begins with theleft-most character and proceeds one character at a time from left to right, unless the first character is a space.
- ARichtig
- BFalsch
38The Case structure provies a flexible and powerful solution to testing conditions and making decisions, but cannot be used if the data being tested contains a numerical range.
- ARichtig
- BFalsch
39When creating menus with the MenuStrip component, the Name property is used to hold the words that will appear on the screen in the menu bar.
- ARichtig
- BFalsch
40An enabled menu item appears in black text and is available for selection.
- ARichtig
- BFalsch
41Functions perform an action and return a value.
- ARichtig
- BFalsch
42A function procedure may perform an action, but it only returns a value if the program code requests
- ARichtig
- BFalsch
43It is possible to create procedures that are not associated with click events.
- ARichtig
- BFalsch
44When an argument is sent ByVal, a copy of the argument's value is sent to the procedure so that the procedure cannot alter the original value.
- ARichtig
- BFalsch
45The default for passing arguments to function procedures and sub procedures is ByRef.
- ARichtig
- BFalsch
46You must declare the name of a function as a module-level variable if you want to create a function.
- ARichtig
- BFalsch
47A function cannot have multiple arguments.
- ARichtig
- BFalsch
48Visual Basic.NET is a(n) _______.
a. procedural programming language c. event driven programming language
b. object oriented programming language d. sequential programming language- Aa. procedural programming language
- Bb. object oriented programming language
- Cc. event driven programming language
- Dd. sequential programming language
49In Visual Basic we work with objects, which have _______.
- Aa. programmer preference
- Bb. projects, solutions, and procedures
- Cc. classes, actions, and disciplines
- Dd. properties, methods, and events
50When you write a Visual Basic program, you follow a three-step process that should begin with _______.
a. Setting the properties c. Coding all of the remark statements
b. Writing the Basic code d. Defining the user interface- Aa. Setting the properties
- Bb. Writing the Basic code
- Cc. Coding all of the remark statements
- Dd. Defining the user interface
51Each Visual Basic project contains a text file that lists the files that are included in the project. This file is called _______.
- Aa. the project file
- Bb. the resource file
- Cc. the solution file
- Dd. the .vb file
52The Visual Studio environment contains many different windows. Which window will be the user interface when the project is running?
a. The Toolbox c. The Properties window
b. The Solution window d. The Form Designer window- Aa. The Toolbox
- Bb. The Solution window
- Cc. The Properties window
- Dd. The Form Designer window
53Remarks, or comments, that programmers add to their code in order to make the program more readable and understandable _______.
- Aa. are executable code
- Bb. are for program documentation only
- Cc. are not considered “executable”
- Dd. Both ANSs b and c are correct
54What is the code used to display the words “Visual Basic” in a label named titleLabel?
- Aa. titleLabel.Name = “Visual Basic”
- Bb. titleLabel.Name.Visual Basic
- Cc. titleLabel.Text = “Visual Basic”
- Dd. “Visual Basic” = titleLabel.Text
55The code that is used in a sub procedure to stop execution of a program is _______.
- Aa. Me.Exit
- Bb. Me.Close
- Cc. Me.End
- Dd. Me.EndSub
5656. Which of the following choices can not be used to start running a project?
- Aa. Press and hold the CTRL key and then press the S key
- Bb. Open the Debug menu and choose Start
- Cc. Press the Start button on the toolbar
- Dd. Press F5
57Visual Basic provides AutoCorrect, which is a handy way to fix _______.
- Aa. syntax errors
- Bb. logic errors
- Cc. arithmetic errors
- Dd. All types of errors
58If you want to make a PictureBox disappear from the form when the project runs, you must _______.
- Aa. set the SizeMode property to True
- Bb. set the Visible property to True
- Cc. set the SizeMode property to False
- Dd. set the Visible property to False
59To make a PictureBox control larger than the original size, you must set the _______ property to StretchImage.
- Aa. Image
- Bb. Stretch
- Cc. Graphic
- Dd. SizeMode
60Create keyboard access on an object by ______________ in the Text property.
- Aa. using ampersand (&)
- Bb. using at (@)
- Cc. using underscore ( _)
- Dd. capitalizing the first letter of the word
61Small labels that pop up when the user pauses the mouse pointer over a control on the form are created by _______.
- Aa. using the Focus method
- Bb. changing the object's Text property to True
- Cc. setting the object's ToolTip property
- Dd. setting the object's Value property to True
62 Which of the following statements will clear the contents of a text box named messageTextBox?
a. messageTextBox.Text = "" c. messageTextBox.Text = String.Empty
b. messageTextBox.Clear() d. All of the ANSs are correct- Aa. messageTextBox.Text = ""
- Bb. messageTextBox.Clear()
- Cc. messageTextBox.Text = String.Empty
- Dd. All of the ANSs are correct
63As a program runs, the insertion point can be moved from control to control. In order to reset the focus back in a text box named nameTextBox you should use the code _______.
- Aa. nameTextBox.Focus()
- Bb. nameTextBox = Focus()
- Cc. nameTextBox = Top()
- Dd. nameTextBox.First()
64If a radio button is currently selected, its _______ property will be True.
a. Checked c. Selected
b. Enabled d. Visible- Aa. Checked
- Bb. Enabled
- Cc. Selected
- Dd. Visible
65The code: nameTextBox.BackColor = Color.White, will _______.
- Aa. change the color of the border of the nameTextBox control to white
- Bb. cause the nameTextBox control to have a white background
- Cc. change the background color of the form to white
- Dd. change the text in the nameTextBox control to the color white
66Which of the following is a valid example of concatenation?
- Aa. messageLabel.Text = messageLabel.Text & “ “ & nameTextBox.Text
- Bb. weatherReportLabel.Text = Today's weather will be & weatherTextBox.Text
- Cc. cityAndStateLabel.Text = cityTextBox.Text AND stateTextBox.Text
- Dd. Good Morning, " & nameTextBox.Text = greetingLabel.Text
67Use a blank space followed by the ______ symbol for continuing long lines of code to the next line.
a. & (ampersand) c. ' (apostrophe)
b. @ (at) d. _ (underscore)- Aa. & (ampersand)
- Bb. @ (at)
- Cc. ' (apostrophe)
- Dd. _ (underscore)
68The data type that is used for decimal fractions is _______.
a. Decimal c. Integer
b. Short d. Fraction- Aa. Decimal
- Bb. Short
- Cc. Integer
- Dd. Fraction
69Which of the following is not a valid rule for naming identifiers?
- Aa. Names may contain underscores
- Bb. Names may contain letters
- Cc. Names may contain digits
- Dd. Names may contain spaces
70Which of the following is NOT a rule for naming identifiers?
- Aa. Identifiers for constants should use an underscore between words
- Bb. Identifiers should use periods to separate words
- Cc. Identifiers should list the data type at the end of the name
- Dd. Identifiers cannot contain embedded blanks
71Which of the following does not follow the conventions for naming identifiers?
- Aa. unitsEnrolledDecimal
- Bb. zipCodeString
- Cc. amount.Due.Decimal
- Dd. COUNTRY_OF_BIRTH_String
72Which of the following is not a rule for naming identifiers for constants?
- Aa. Include the data type at the end of the identifier
- Bb. Everything in the identifier's name should be capitalized except the data type
- Cc. Identifiers for constants should begin with a prefix of Const
- Dd. Identifiers for constants should use an underscore between words
73Intrinsic constants are _______.
c. placed in the Declarations section of a form- Aa. declared using the keyword Const
- Bb. declared using the keyword Dim
- Cc. placed in the Declarations section of a form
- Dd. built into Visual Studio
74Which of the following is a valid statement that can be used to declare a local variable that will store whole numbers?
- Aa. Dim indexWhole as Whole
- Bb. Dim indexString as String
- Cc. Dim Integer as Index
- Dd. Dim indexInteger as Integer
75Where should the statement: Const ACCOUNT_NUMBER_String As String = "A45", appear if you plan to use ACCOUNT_NUMBER_String in more than one procedure?
- Aa. The Declarations section of the form
- Bb. The Form_Load procedure
- Cc. The event procedure where ACCOUNT_NUMBER_String will be used
- Dd. The Namespace Constants file
76If a procedure contains a Dim statement and nameString is assigned as the identifier, nameString can be used _______.
- Aa. anywhere in the project
- Bb. only in the procedure where the Dim statement is shown
- Cc. anywhere in the project if the variable name is changed to NAME_String
- Dd. only once in the procedure
77A variable that is declared in the Declarations section of a form is a(n) _______.
- Aa. module-level variable
- Bb. local variable
- Cc. block variable
- Dd. general variable
78 Which of the following is not a valid method for parsing?
- Aa. Integer.Parse
- Bb. Decimal.Parse
- Cc. Parse.String
- Dd. All of the above are valid
79Using the order of precedence and the formula below, what is ANSInteger if:
numberOneInteger=2, numberTwoInteger=12, numberThreeInteger=20, and numberFourInteger=6
ANSInteger= numberOneInteger * (numberTwoInteger + numberThreeInteger) - numberFourInteger / numberOneInteger- Aa. 19
- Bb. 41
- Cc. 61
- Dd. None of the above
8080. Which of the following is a comparison operator?
a. And c. +
b. > d. &- Aa. And
- Bb. >
- Cc. +
- Dd. &
81What will display in messageLabel when the following statements are executed? Assume that countInteger=10.
messageString = “Visual Basic is fun”
IF countInteger <= 10 Then
messageLabel.Text = messageString.ToLower
ELSEIF countInteger > 20 Then
messageLabel.Text = messageString.ToUpper
ELSE
messageLabel.Text = messageString
END IF- Aa. VISUAL BASIC IS FUN
- Bb. Visual Basic Is Fun
- Cc. visual basic is fun
- Dd. syntax error
82Which of the following is not a logical operator?
- Aa. If
- Bb. Or
- Cc. And
- Dd. Not
83Which of the following is correct code for determining if a checkbox is checked?
- Aa. If senior.checkbox = True Then
- Bb. If seniorCheckBox.Checked = True Then
- Cc. If seniorCheckBox.Checked Then
- Dd. Both ANSs B and C are correct
84Which of the following statements does not apply to the Case structure?
- Aa. It can be used instead of nested Ifs
- Bb. It can be used for testing numeric and string values
- Cc. It must begin with Select Case and it must end with End Case
- Dd. Case Else is optional
8585. _______ is an optional clause available for the Case Structure when no match is found in any of the Case statements.
- Aa. Case Else
- Bb. Default
- Cc. ElseIf
- Dd. Else Case
86You can write a set of instructions in an event and then ________ the event from any other procedure.
- Aa. declare the variables in
- Bb. force a break in
- Cc. use Option Explicit in
- Dd. call
87A __________________ with multiple lines of output, can be created by concatenating two NewLine characters at the end of each line.
- Aa. Constant
- Bb. Pop Up
- Cc. Message Box
- Dd. Concatenation
88All of the following are true about the Case structure except:
- Aa. there is no limit to the number of statements it will test
- Bb. the test may be numeric or a constant
- Cc. the test may include a relational condition
- Dd. the test data must be changed using ToUpper or ToLower
89A very handy feature of VB.NET is the ability to:
- Aa. share an event procedure for several controls
- Bb. make changes on-the-fly
- Cc. use either a single or double quote for literals
- Dd. use an assembler or compiler
90All of the following are included as steps when viewing the contents of a variable during run time except:
d. Redirecting the Output to the printer.- Aa. Break the execution using a breakpoint
- Bb. If code does not appear in the editor, use the editor’s tab in the Document window
- Cc. Point to the variable or expression that one wishes to view
- Dd. Redirecting the Output to the printer.
9191. _____________________ command executes one line of code at a time.
- Aa. Step Over
- Bb. Step Out
- Cc. Step Into
- Dd. Step Toward
92What property of a menu must be set to True if you want an item to have a check mark next it when the project runs?
- Aa. Selected
- Bb. Enabled
- Cc. Visible
- Dd. Checked
93 Common Dialog Boxes _______.
- Aa. allow Visual Basic programs to translate the text on the screen into another language
- Bb. display the predefined Windows dialog boxes for print, open, save, fonts, and colors
- Cc. can only be used on forms with menus
- Dd. allow you to create message boxes that will pop up and prompt the user for text input
9494. Which of the following statements about context menus is not true?
- Aa. A program can have more than one context menu
- Bb. You can assign the same context menu to more than one control on the form
- Cc. A context menu can be assigned to a control by setting the control's ContextMenuStrip property
- Dd. The user can access a context menu on a button by right-clicking on the form
95Which of the following statements is NOT true?
a. Functions perform an action and then return a value to the point from which they were called
b. Function procedures and sub procedures can be supplied with arguments
c. Arguments sent to sub procedures and functions procedures can be sent ByVal or ByRef
- Aa. Functions perform an action and then return a value to the point from which they were called
- Bb. Function procedures and sub procedures can be supplied with arguments
- Cc. Arguments sent to sub procedures and functions procedures can be sent ByVal or ByRef
- DD. sub procedures and function procedures can return values to the point from which they were called
Informationen
- Beschreibung
- Quiz am 212 title, erstellt von steve bonbusal am 25/04/2017.
- Autor
- steve bonbusal
- Sprache
- English
- Aufrufe
- 2
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz