Which is a valid variable name in visual basic

Assignment Help Visual Basic Programming
Reference no: EM131153036

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.

Reference no: EM131153036

Questions Cloud

How will information be useful for your career development : What do the results reveal about your values, interests, skills, goals, interaction style, etc.? How will this information be useful for your career development and management?
Write proposal in traffic administration for driver behavior : Write proposal in Traffic administration for driver behavior and its relationship to road accident in the United Arab Emirates.
What is rapid application development : Describe four things that a development team may still need to do at the end of an iteration - What is the difference between these three types of tests?
Examine the role that family plays in memory development : Explain how theory can influence the choices families make when promoting their child's cognitive development abilities for your chosen age group. Use specific examples from one theory of cognitive development that has been discussed thus far in t..
Which is a valid variable name in visual basic : Which of the following is a valid variable name in Visual Basic? Which of the following statements declares a variable named dblHeight with data type Double in Visual Basic?
Answer the following questions : Answer the following questions-  Your OM experience- . I have prior experience in operations management. Yes/No.
Develop a vulnerability assessment plan : For this assignment, you will need to develop a vulnerability assessment plan. The concepts needed to complete this assignment are found in your reading assignment and in the unit lesson.
What does the relevant literature in the field : Define the research questions for the identified problem or opportunity - Select the appropriate research methodologies and techniques to use for the research project
What is the basic purpose of instruments of trade policy : What is the basic purpose of instruments of trade policy? Identify and define four (4) instruments of trade policy and give an example of each of the four you have chosen to describe

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Develop calendar screens for windows

Develop calendar screens for Windows and imagine you need to present IT troubleshooting best practices to junior systems administrators at an IT department meeting to ensure departmental efficiency with solving issues.

  It has one button called exit, to quit the program.

Grades for the courses at the college are based on the sum of three assignments, and each assignment is worth a maximum of 100 points. The maximum points a student can get in a course is 300 points. To pass the course, a student needs 189 points o..

  Prepare a problem on lottery number generator

Create an interface and develop an application for a Pick 3 Lottery Game. The application needs to show 3 randomly generated numbers based on a range of numbers provided by the users.

  Include structured error handling on all forms.

Create a patron letter-writing feature that includes a functional RichTextBox control.

  Visual basic program to accept numeral values of any unit

Write VISUAL BASIC program to accept numeral values of any unit, sum up the total, compute the average, and then Output result with the proper unit.

  Create a program to calculate deductible travel expenses

create a program to calculate deductible travel expenses for tax purpose. All the inputs except the arrival date and the departure date should be entered into the program via text boxes. The arrival date and the departure date are entered via maske..

  Displays the largest and smallest integers

Develop pseudo-code for a computer program that prompts the user for five integers, accepts the integers, after performing necessary processing determines and displays the largest and smallest integers in the group.

  To use the watch window to evaluate expressions

To use breakpoints to pause program execution and allow you to examine the values of variables. To set, disable and remove breakpoints

  Assignment data storagenbspcomputer processes need to be

assignment data storagenbspcomputer processes need to be able to store data during the execution phase. the data may

  Application to analyze exam results using files

An application to analyze Exam Results using files and arrays and Investment application.

  Write a program that computes an average score for a class

When the user presses the OK button, the items contents should update in the ListView control.

  Write code in vba to determine the row number

Write code in VBA to determine the row number of the last row with data. Are there any precautions/edge cases to be aware of for that code

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd