22.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.

<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 2 <strong>Quiz</strong><br />

Downloading is very simple, you can download this Course here:<br />

https://www.mindsblow.com/product/bis-<strong>311</strong>-devry-week-2-quiz/<br />

Or<br />

Contact us at:<br />

SUPPORT@MINDSBLOW.COM<br />

<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 2 <strong>Quiz</strong><br />

<strong>BIS</strong><strong>311</strong><br />

<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 2 <strong>Quiz</strong><br />

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

o<br />

o<br />

o<br />

o<br />

property<br />

data type<br />

dimension<br />

parameter list<br />

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

o<br />

o<br />

o<br />

o<br />

the identifier used to refer to the variable in the code<br />

the part of the code in which the variable can be used<br />

the time when the variable is created and destroyed<br />

the category of data the variable can store<br />

Question 3.3. (TCO 3) A variable that can hold only a single Unicode character has a data type of _____. (Points<br />

: 1)<br />

o<br />

o<br />

o<br />

o<br />

String<br />

Short<br />

Single<br />

Char<br />

Question 4.4. (TCO 3) To avoid rounding errors in financial calculations, the best data type to use for money<br />

amounts is _____. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

Single<br />

Double<br />

Decimal<br />

Long<br />

Question 5.5. (TCO 3) It is best to avoid the Object data type unless absolutely necessary because _____. (Points<br />

: 1)<br />

o<br />

o<br />

o<br />

o<br />

it is not supported by all versions of Visual Basic<br />

your application may not work in future versions of Windows<br />

it can cause an application to run more slowly<br />

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<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)


o<br />

o<br />

o<br />

o<br />

literal constant<br />

named constant<br />

static variable<br />

class-level variable<br />

Question 14.14. (TCO 3) Which of the following statements tells Visual Basic to ensure that every named constant<br />

and variable is declared with a data type? (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

Option Infer On<br />

Option Infer Off<br />

Option Strict On<br />

Option Explicit Off<br />

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

o percent (%)<br />

o ampersand (&)<br />

o backslash ()<br />

o pipe (|)<br />

Question 16.16. (TCO 3) A control’s _____ event occurs when a change is made to the control’s Text property.<br />

(Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

Click<br />

Enter<br />

GotFocus<br />

TextChanged<br />

Question 17.17. (TCO 3) What type of error is represented in the following Visual Basic statement? Die strName<br />

As String (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

run time<br />

functional<br />

syntax<br />

logic<br />

Question 18.18. (TCO 3) Which of the following would be most likely to cause a logic error in an application?<br />

(Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

Misspelling the name of a text box when referring to it in code<br />

Entering a statement to display a result before the statement that calculates the result<br />

Misspelling the data type in a variable declaration<br />

Attempting to divide by zero in a calculation<br />

Question 19.19. (TCO 3) Setting a(n) _____ allows the programmer to pause execution of the application at a<br />

specific line in the code. (Points : 1)<br />

o<br />

o<br />

o<br />

o<br />

trigger<br />

interrupt<br />

milestone<br />

breakpoint<br />

Question 20.20. (TCO 3) The Visual Basic function that calculates the present value of a series of payments is<br />

(Points : 1)<br />

o<br />

PV.


o<br />

o<br />

o<br />

FV.<br />

Pmt.<br />

PresVal.

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

Saved successfully!

Ooh no, something went wrong!