Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Setting the TabIndex of a control to 0 (zero) will _______. A. cause the control to appear to the right of the other controls B.

  1. Setting the TabIndex of a control to 0 (zero) will _______. A. cause the control to appear to the right of the other controls B. make the control Visible C. align the control to the left of the other controls D. set the focus on this control when the program begins running

42. Which design time property setting should be used on an object named UserInputTextBox in order to make the insertion point appear in the object when the form first appears? A. Focus property set to True B. TabStop property set to Focus C. TabIndex property set to True D. TabIndex property set to 0

43. Which of the following statements makes the visibility of the label match the setting in the check box? A. CheckBoxName.Enabled = LabelName.Visible B. LabelName.Checked = CheckBoxName.Visible C. LabelName.Visible = CheckBoxName.Checked D. CheckBoxName.Checked=LabelName.Visible

  1. The ______ symbol is used for concatenation. A. & (ampersand) B. @ (at) C. ' (apostrophe) D. _ (underscore)
  2. When you declare a variable or a named constant, Visual Basic reserves an area of memory and assigns it a name called a(n) _______. A. identifier B. identity C. declaration D. dimension

  1. Which of the following is NOT a valid rule for naming identifiers? A. Names may contain underscores. B. Names may contain letters. C. Names may contain digits. D. Names may contain spaces.
  2. Which of the following does not follow the conventions for naming identifiers? A. UnitsEnrolledDecimal B. ZipCodeString C. Amount.Due.Decimal D. COUNTRY_OF_BIRTH_String

49. Which of the following is NOT a rule for naming identifiers for constants? A. Include the data type at the end of the identifier. B. Everything in the identifier's name should be capitalized except the data type. C. Identifiers for constants should begin with a prefix of Const. D. Identifiers for constants should use an underscore between words.

50. Which of the following is a valid statement that can be used to declare a local variable that will store whole numbers? A. Dim IndexWhole as Whole B. Dim IndexString as String C. Dim IntegerIndex as Index D. Dim IndexInteger as Integer

  1. A _______ variable is declared inside a procedure. A. namespace B. module-level C. local D. block

52. Variables declared within a button's click-event are _____ variables. A. local B. module-level C. namespace D. private

  1. Using the order of precedence and the formula below, what is AnswerInteger if?: NumberOneInteger = 2, NumberTwoInteger = 12, NumberThreeInteger = 20, and NumberFourInteger = 6 AnswerInteger = NumberOneInteger * (NumberTwoInteger + NumberThreeInteger) - NumberFourInteger / NumberOneInteger A. 19 B. 41 C. 61 D. None of these

54. You can use the _______method to round decimal values to the desired number of decimal positions. A. ToDecimal B. ToSingle C. ToRound D. Round

  1. When comparing strings, which one of the following strings is less than the others, based on the ANSI code? A. ONETWOTHREE B. onetwothree C. OneTwoThree D. 1Two3

56. . Which of the following statements does NOT apply to the Case structure? A. It can be used instead of nested Ifs. B. It can be used for testing numeric and string values. C. It must begin with Select Case and it must end with End Case. D. Case Else is optional.

  1. _______ is an optional clause available for the Case Structure when no match is found in any of the Case statements. A. Case Else B. Default C. ElseIf D. Else Case
  2. Use the Case structure and convert the following If statement so that it checks the string as an uppercase value. If StateNameString = "California" Then AdjustedPriceDecimal = PriceDecimal+(PriceDecimal * TaxDecimal) Else AdjustedPriceDecimal = PriceDecimal End If

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions