Ask Visual Basic Expert

Question 1. Every variable has a _____, name, scope, and lifetime.
property
data type
dimension
parameter list

Question 2. The data type of a variable determines _____.
the identifier used to refer to the variable in the code
the part of the code in which the variable can be used
the time when the variable is created and destroyed
the category of data the variable can store

Question 3. A variable that can hold only a single Unicode character has a data type of _____.
String
Short
Single
Char

Question 4. To avoid rounding errors in financial calculations, the best data type to use for money amounts is _____.
Single
Double
Decimal
Long

Question 5. It is best to avoid the Object data type unless absolutely necessary because _____.
it is not supported by all versions of Visual Basic
your application may not work in future versions of Windows
it can cause an application to run more slowly
only numeric values can be stored in Object variables

Question 6. In Hungarian notation, variable names begin with a three-character prefix that indicates _____.
whether the variable is an input or an output
the initials of the programmer
the variable's scope
the variable's data type

Question 7. When a variable name is written in camel case, upper-case letters _____.
are not used
are used for the first letter of each word only
are used for all letters in the name
are used for only the prefix

Question 8. Which of the following is a valid variable name in Visual Basic?
decSales4Q2015
4Q2015Sales
Sales for Fourth Quarter 2015
dec.Sales.4Q.2015

Question 9. Which of the following statements declares a variable named dblHeight with data type Double in Visual Basic?
Dim dblHeight As Double
Dim Double As dblHeight
Double dblHeight
Declare dblHeight As Double

Question 10. If a variable with a data type of Boolean is declared without specifying an initial value, its initial value will be _____.
true
false
undefined
nothing

Question 11. A value can be stored in a variable while the application is running using a(n) _____ statement.
conditional
assignment
control
comment

Question 12. To convert text input to a number, most programmers prefer to use the TryParse method rather than the Val function because _____.
TryParse executes faster
TryParse allows the programmer to specify the intended data type
TryParse uses less memory
TryParse can convert a string that contains a dollar sign

Question 13. A memory location in an application that can be referred to by name, but whose value cannot be changed after it has been initialized, is a _____.
literal constant
named constant
static variable
class-level variable

Question 14. Which of the following statements tells Visual Basic to ensure that every named constant and variable is declared with a data type?
Option Infer On
Option Infer Off
Option Strict On
Option Explicit Off

Question 15. The operator to join or concatenate strings in Visual Basic is the _____.
percent (%)
ampersand (&)
backslash ()
pipe (|)

Question 16. A control's _____ event occurs when a change is made to the control's Text property.
Click
Enter
GotFocus
TextChanged

Question 17. What type of error is represented in the following Visual Basic statement?
Die strName As String
run time
functional
syntax
logic

Question 18. Which of the following would be most likely to cause a logic error in an application?
Misspelling the name of a text box when referring to it in code
Entering a statement to display a result before the statement that calculates the result
Misspelling the data type in a variable declaration
Attempting to divide by zero in a calculation

Question 19. Setting a(n) _____ allows the programmer to pause execution of the application at a specific line in the code.
trigger
interrupt
milestone
breakpoint

Question 20. The Visual Basic function that calculates the present value of a series of payments is
PV.
FV.
Pmt.
PresVal.

Visual Basic, Programming

  • Category:- Visual Basic
  • Reference No.:- M91908491
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Visual Basic

Please show how to do the belowvisual basic net application

Please show how to do the below: Visual Basic .NET Application - Coding Exercise 1 (Exercise 13, Zak, 2016, p. 347) For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable n ...

Assignment virtual storeuse the concepts and scenario from

Assignment: Virtual Store Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must stor ...

Assignment frans virtual fruit standfrans virtual fruit

Assignment: Fran's Virtual Fruit Stand Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Log ...

Pitch amp game design documentthe assignment is about

Pitch & Game Design Document The assignment is about educational driver for teenagers Assignment Brief: In groups you will: - present a pitch and produce a one sheet - provide a demonstration of your game - produce a hig ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As