23.05.2017 Views

BIS 311 DeVry Week 2 Quiz

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Question 6.6. (TCO 3) In Hungarian notation, variable names begin with a three-character prefix that indicates<br />

_____. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

whether the variable is an input or an output<br />

the initials of the programmer<br />

the variable’s scope<br />

the variable’s data type<br />

Question 7.7. (TCO 3) When a variable name is written in camel case, upper-case letters _____. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

are not used<br />

are used for the first letter of each word only<br />

are used for all letters in the name<br />

are used for only the prefix<br />

Question 8.8. (TCO 3) Which of the following is a valid variable name in Visual Basic? (Points : 1)<br />

o decSales4Q2015<br />

o 4Q2015Sales<br />

o Sales for Fourth Quarter 2015<br />

o dec.Sales.4Q.2015<br />

Question 9.9. (TCO 3) Which of the following statements declares a variable named dblHeight with data type<br />

Double in Visual Basic? (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

Dim dblHeight As Double<br />

Dim Double As dblHeight<br />

Double dblHeight<br />

Declare dblHeight As Double<br />

Question 10.10. (TCO 3) If a variable with a data type of Boolean is declared without specifying an initial value, its<br />

initial value will be _____. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

true<br />

false<br />

undefined<br />

nothing<br />

Question 11.11. (TCO 3) A value can be stored in a variable while the application is running using a(n) _____<br />

statement. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

conditional<br />

assignment<br />

control<br />

comment<br />

Question 12.12. (TCO 3) To convert text input to a number, most programmers prefer to use the TryParse method<br />

rather than the Val function because _____. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

TryParse executes faster<br />

TryParse allows the programmer to specify the intended data type<br />

TryParse uses less memory<br />

TryParse can convert a string that contains a dollar sign<br />

Question 13.13. (TCO 3) A memory location in an application that can be referred to by name, but whose value<br />

cannot be changed after it has been initialized, is a _____. (Points : 1)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!