22.05.2017 Views

BIS 311 DeVry Final Exam

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>Final</strong> <strong>Exam</strong><br />

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

http://mindsblow.us/question_des/<strong>BIS</strong><strong>311</strong><strong>DeVry</strong><strong>Final</strong><strong>Exam</strong>/4379<br />

Or<br />

Contact us at:<br />

help@mindblows.us<br />

<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Final</strong> <strong>Exam</strong><br />

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

<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Final</strong> <strong>Exam</strong><br />

Question 1.1. (TCO 1) In the systems development life cycle, the goal of the design activity is to _____. (Points :<br />

5)<br />

o<br />

o<br />

o<br />

o<br />

determine exactly what a new or modified information system should do<br />

create a set of detailed plans or blueprints for the system<br />

build the application<br />

ensure that the application works as desired<br />

Question 2.2. (TCO 2) To plan the code for a procedure, _____ uses standardized symbols to show the steps the<br />

procedure must follow to reach its goal. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

pseudocode<br />

a TOE chart<br />

a class diagram<br />

a flowchart<br />

Question 3.3. (TCO 3) Computer memory locations where programmers can temporarily store and change data<br />

while an application is running are _____. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

classes<br />

literals<br />

constants<br />

variables<br />

Question 4.4. (TCO 3) In Visual Basic, which of the following correctly declares a named constant with the name<br />

strCOURSE that contains the string value “<strong>BIS</strong><strong>311</strong>”? (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

ConststrCOURSE As String = “<strong>BIS</strong><strong>311</strong>”<br />

String Constant strCOURSE = “<strong>BIS</strong><strong>311</strong>”<br />

Dim strCOURSE As “<strong>BIS</strong><strong>311</strong>”<br />

Const String “<strong>BIS</strong><strong>311</strong>” As strCOURSE


Question 5.5. (TCO 5) A _____ structure is used in an application when a decision needs to be made, followed by<br />

an action derived from that decision. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

selection<br />

sequence<br />

repetition<br />

interrogative<br />

Question 6.6. (TCO 5) If intQty contains 60, what will be the value of intPrice after executing the following code?<br />

Select Case intQty<br />

Case 1 To 50<br />

intPrice = 10<br />

Case 51 To 100<br />

intPrice = 8<br />

Case > 100<br />

intPrice = 6<br />

Case Else<br />

intPrice = 0<br />

End Select (Points : 5)<br />

o 10<br />

o 8<br />

o 6<br />

o 0<br />

Question 7.7. (TCO 6) The loop below is classified as a(n) _____ loop.<br />

Dim intNum As Integer = 2<br />

Do<br />

MsgBox(intNum.ToString() )<br />

intNum *= intNum<br />

Loop While intNum< 1000 (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

infinite<br />

pretest<br />

posttest<br />

counter-controlled<br />

Question 8.8. (TCO 6) Which element of the following array contains the value “Red”?<br />

Dim strColors() As String = {“Red”, “Green”, “Blue”, “Yellow”} (Points : 5)<br />

o<br />

o<br />

strColors(4)<br />

strColors(3)


o<br />

o<br />

strColors(1)<br />

strColors(0)<br />

Question 9.9. (TCO 7) The _____ of an independent Sub procedure usually begins with the Private keyword.<br />

(Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

Call statement<br />

argument list<br />

procedure footer<br />

procedure header<br />

Question 10.10. (TCO 7) In the following function, what should go in the blank in the function header?<br />

Private Function GetRatio(dblNumerator As Double, dblDenominator As Double) _____<br />

Dim dblRatio As Double<br />

dblRatio = dblNumerator/dblDenominator<br />

Return dblRatio<br />

End Function (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

ByVal<br />

ByRef<br />

As Integer<br />

As Double<br />

Question 11.11. (TCO 2) An application for a shipping company needs to keep track of the length, width, height,<br />

and weight of packages. Using object-oriented programming methods, in this application, the weight of a package<br />

would be represented by a(n) _____. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

object<br />

attribute<br />

method<br />

class<br />

Question 12.12. (TCO 4) Consider the following class definition:<br />

Public Class Box<br />

Public Length As Double<br />

Public Width As Double<br />

Public Height As Double<br />

Public Function GetVolume() As Double<br />

Return Length * Width * Height<br />

End Function<br />

End Class<br />

If crate is an instance of Box, which of the following statements assigns a value to a property? (Points : 5)<br />

o crate.Length = 42<br />

o dblVolume = crate.GetVolume()<br />

o crate.GetVolume(42)<br />

o Call crate.Length(42)


Question 13.13. (TCO 8) A programmer makes a connection between a Visual Basic application and a database<br />

using the _____. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

Database Integration tool<br />

data box control<br />

Data Source Configuration Wizard<br />

Dataset Designer<br />

Question 14.14. (TCO 9) The components of a two-tier architecture are _____. (Points : 5)<br />

o<br />

o<br />

o<br />

o<br />

the primary and the secondary<br />

the client and the server<br />

the master and the subordinate<br />

the alpha and the beta<br />

Question 1. 1. (TCOs 1, 2, and 3) You have been asked to develop an application with the following business<br />

requirements: The user will enter an original price. When the user clicks a Calculate Sale Price button, the application<br />

will calculate a sale price by multiplying the original price by 80%. The application will display the sale price to the user.<br />

1. Develop a TOE chart for this application. You do not need to put it in table form, but list what would go in the<br />

Task column, what would go in the Object column, and what would go in the Event column for each row of the<br />

chart. Your chart should have at least three rows: one for input, one for processing, and one for output.<br />

2. Write pseudocode for the button-click event procedure in this application.<br />

3. Identify two variables and one constant that you would declare for this application. For each, provide a variable<br />

or constant name that follows the syntax rules of Visual Basic and the Hungarian naming convention, and an<br />

appropriate Visual Basic data type. (Points : 30)<br />

Question 2. 2. (TCO 5) Consider the following Visual Basic code snippet:<br />

If intScore>= 100 Then<br />

lblMessage.Text = “Great job!”<br />

Else<br />

lblMessage.Text = “Better luck next time”<br />

End If<br />

a. What type of control structure is this? Be as specific as possible, and justify your answer.<br />

b. Describe step by step how this code will be executed and what will be displayed to the user for each of the<br />

following values of intScore: 99, 100, and 101.<br />

c. Rewrite this code snippet so that it still produces the same results, but changing the condition in the first line<br />

from intScore>= 100 to intScore< 100. (Points : 30)<br />

Question 3. 3. (TCO 6) Consider the following code snippet:<br />

Dim intTotal As Integer = 0<br />

For intNum As Integer = 1 To 5<br />

intTotal += intNum<br />

Next intNum<br />

MessageBox.Show(intTotal.ToString() )


a. What type of control structure is this? Be as specific as possible, and explain your answer.<br />

b. Identify the counter variable and the accumulator variable in this loop. Explain your answer.<br />

c. Describe step by step how this code will be executed and what value will be displayed in a message box to<br />

the user. (Points : 30)<br />

Question 1. 1. (TCO 7) (a) Explain the difference between passing by value and passing by reference when passing<br />

variables to a Sub procedure or function.<br />

a. (b) Describe a specific example of using a Sub procedure when you would pass a variable by value.<br />

b. Describe a specific example of using a Sub procedure when you would pass a variable by reference. (Points<br />

: 30)<br />

Question 2. 2. (TCOs 2 and 4) You have been asked to develop an application to keep track of employees’<br />

scheduled vacations and ensure that all vacations are approved by the manager and that each employee does not<br />

exceed his or her maximum annual vacation time. Maximum annual vacation time is determined by the number of years<br />

the employee has worked for the firm. You are using object-oriented programming (OOP) to develop this application.<br />

a. Describe at least two classes that you could use in this application and what each class would represent in<br />

the real world.<br />

b. Describe at least two properties of each class you identified in part (a) and identify the data type you would<br />

use for each property.<br />

c. Describe at least one method of each class you identified in part (a), giving for each the method name and<br />

the action performed by the method. (Points : 30)<br />

Question 3. 3. (TCOs 8, 9, and 10) (a) Explain the roles of primary and foreign keys in a relational database.<br />

(b) In a two-tier architecture with a thin client and fat server, describe the functions performed by the client and by the<br />

server in processing a request by a user for information from a database.<br />

(c) In a Visual Basic application that retrieves data from a database, describe the role of a TableAdapter object. (Points<br />

: 30)

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

Saved successfully!

Ooh no, something went wrong!