2023 Question Question 1 1 TCO 3 Every variable has a name scope and lifetime Points 1 property | Assignment Collections

Computer Science 2023 Sevry BIS311 Week 2 Quiz

2023 Question Question 1 1 TCO 3 Every variable has a name scope and lifetime Points 1 property | Assignment Collections

Question

Question 1.1. (TCO 3) Every variable has a _____, name, scope, and lifetime. (Points : 1)

property

data type

dimension

parameter list

Question 2.2. (TCO 3) The data type of a variable determines _____. (Points : 1)

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.3. (TCO 3) A variable that can hold only a single Unicode character has a data type of _____. (Points : 1)

String

Short

Single

Char

Question 4.4. (TCO 3) To avoid rounding errors in financial calculations, the best data type to use for money amounts is _____. (Points : 1)

Single

Double

Decimal

Long

Question 5.5. (TCO 3) It is best to avoid the Object data type unless absolutely necessary because _____. (Points : 1)

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.6. (TCO 3) In Hungarian notation, variable names begin with a three-character prefix that indicates _____. (Points : 1)

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.7. (TCO 3) When a variable name is written in camel case, upper-case letters _____. (Points : 1)

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.8. (TCO 3) Which of the following is a valid variable name in Visual Basic? (Points : 1)

decSales4Q2015

4Q2015Sales

Sales for Fourth Quarter 2015

dec.Sales.4Q.2015

Question 9.9. (TCO 3) Which of the following statements declares a variable named dblHeight with data type Double in Visual Basic? (Points : 1)

Dim dblHeight As Double

Dim Double As dblHeight

Double dblHeight

Declare dblHeight As Double

Question 10.10. (TCO 3) If a variable with a data type of Boolean is declared without specifying an initial value, its initial value will be _____. (Points : 1)

true

false

undefined

nothing

Question 11.11. (TCO 3) A value can be stored in a variable while the application is running using a(n) _____ statement. (Points : 1)

conditional

assignment

control

comment

Question 12.12. (TCO 3) To convert text input to a number, most programmers prefer to use the TryParse method rather than the Val function because _____. (Points : 1)

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.13. (TCO 3) 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 _____. (Points : 1)

literal constant

named constant

static variable

class-level variable

Question 14.14. (TCO 3) Which of the following statements tells Visual Basic to ensure that every named constant and variable is declared with a data type? (Points : 1)

Option Infer On

Option Infer Off

Option Strict On

Option Explicit Off

Question 15.15. (TCO 3) The operator to join or concatenate strings in Visual Basic is the _____. (Points : 1)

percent (%)

ampersand (&)

backslash ()

pipe (|)

Question 16.16. (TCO 3) A control’s _____ event occurs when a change is made to the control’s Text property. (Points : 1)

Click

Enter

GotFocus

TextChanged

Question 17.17. (TCO 3) What type of error is represented in the following Visual Basic statement?

Die strName As String (Points : 1)

run time

functional

syntax

logic

Question 18.18. (TCO 3) Which of the following would be most likely to cause a logic error in an application? (Points : 1)

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.19. (TCO 3) Setting a(n) _____ allows the programmer to pause execution of the application at a specific line in the code. (Points : 1)

trigger

interrupt

milestone

breakpoint

Question 20.20. (TCO 3) The Visual Basic function that calculates the present value of a series of payments is (Points : 1)

PV.

FV.

Pmt.

PresVal.

 

 

 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational