Business Application Programming Exam Answer Key - 802 Verified Questions

Page 1


Business Application Programming

Exam Answer Key

Course Introduction

Business Application Programming introduces students to the principles and practices of developing software solutions tailored to address business needs. The course covers fundamental programming concepts, business logic implementation, and the use of popular programming languages and frameworks relevant to the industry. Students learn to analyze business processes, design effective user interfaces, and create applications that streamline operations, manage data, and support decision-making. Emphasis is placed on hands-on projects, teamwork, and problem-solving skills, preparing students to build practical, efficient, and scalable applications for real-world business environments.

Recommended Textbook

Programming with Microsoft Visual Basic 2012 6th Edition by Diane Zak

Available Study Resources on Quizplus

14 Chapters

802 Verified Questions

802 Flashcards

Source URL: https://quizplus.com/study-set/3279

Page 2

Chapter 1: An Introduction to Visual Basic 2012

Available Study Resources on Quizplus for this Chatper

59 Verified Questions

59 Flashcards

Source URL: https://quizplus.com/quiz/65089

Sample Questions

Q1) What does it mean when an asterisk (*)sometimes appears on the Windows Form Designer window? When it appears,what should you do to remove it?

Answer: The asterisk indicates that a change was made to the form since the last time it was saved.It is a good idea to save the current solution often so that you will not lose a lot of your work if the computer loses power.You should click Save All to save all files in the solution,and this will remove the asterisk that appears on the designer window's tab.

Q2) A ____ is the general shape of the characters in the text.

A) property

B) splash

C) format

D) font

Answer: D

Q3) Which of the following is an example of an appropriate name for a control?

A) BtnMessage

B) btnExit

C) labelmessage

D) housepicturebox

Answer: B

To view all questions and flashcards with answers, click on the resource link above.

Chapter 2: Designing Applications

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

Source URL: https://quizplus.com/quiz/65090

Sample Questions

Q1) The ____ property of a control is used to specify the position of the text within the control.

A) AlignText

B) Alignment

C) Justify

D) TextAlign

Answer: D

Q2) The ____ function can be used to improve the appearance of the numbers displayed on a screen.

A) Arrange

B) Change

C) Display

D) Format

Answer: D

Q3) Write a statement that clears the contents of the Text property of the txtLastName control.

Answer: txtLastName.Text = String.Empty

To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Using Variables and Constants

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/65091

Sample Questions

Q1) Date variables are automatically set to which value when created?

A) 1/1/1980 12:00:00 AM

B) 1/1/2000 12:00:00 AM

C) 1/1/0001 12:00:00 AM

D) 1/1/0000 12:00:00 AM

Answer: C

Q2) The veterinarian wants to document and display the name of the technician who performs the initial evaluation of the pet.You decide to use an InputBox function to prompt the user to enter this data first.The InputBox function should be coded in the

A) Save button's Click event procedure

B) form's Load event procedure

C) Print button's Click event procedure

D) Exit button's Click event procedure

Answer: B

Q3) A variable declared in the Declaration section of a form is called a procedure-level variable.

A)True

B)False

Answer: False

To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: The Selection Structure

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

Source URL: https://quizplus.com/quiz/65092

Sample Questions

Q1) Use the ____ flowchart symbol to represent the condition in both the selection and repetition structures.

A) oval

B) rectangle

C) parallelogram

D) diamond

Q2) The ____ operator is evaluated first in the following expression: 9 * 2 - 8 > 5 + 2 / 2.

A) -

B) +

C) >

D) *

Q3) The Backspace key is represented by the ____ constant.

A) ControlChars.Back

B) ControlChars.BackSpace

C) ControlChars.Backspace

D) ControlChars.Backspc

Q4) Write an If clause that will determine if the strColor variable contains either the string "red" or the string "blue".

Q5) List the three most commonly used icons for display in a message box.

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: More on the Selection Structure

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

Source URL: https://quizplus.com/quiz/65093

Sample Questions

Q1) The maximum number of radio buttons that can be selected from a group is ____.

A) one

B) three

C) five

D) seven

Q2) You enter the label for a radio button using sentence capitalization in the radio button's ____ property.

A) Text

B) Label

C) Face

D) Heading

Q3) When the programmer wants to limit the user to one choice during input of mutually exclusive options,the ____ control should be used.

A) TextBox

B) CheckBox

C) RadioButton

D) Label

Q4) What is a nested selection structure? How do primary and secondary decisions relate to a nested selection structure?

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: The Repetition Structure

Available Study Resources on Quizplus for this Chatper

59 Verified Questions

59 Flashcards

Source URL: https://quizplus.com/quiz/65094

Sample Questions

Q1) Explain the difference between using the keywords While and Until within a Do...Loop statement.

Q2) You can delay program execution using the ____ method.

A) Delay

B) Rest

C) Sleep

D) Break

Q3) In a pretest loop,the evaluation of the condition occurs after the instructions within the loop are processed.

A)True

B)False

Q4) Write a pretest loop that adds together integers from 1 to 50.Use the intNumber variable (which contains the number 1)to keep track of the integers.Store the result in the intResult variable (which contains the number 0).Use the Do...Loop statement and the While keyword.

Q5) Explain the difference between a looping condition and a loop exit condition.

Q6) Write a counter-controlled loop that adds 5,10,15,20,25,and 30 to the lstMinutes control.

Q7) What is a list box? Provide two of the Windows standards for its use on a form.

Page 8

To view all questions and flashcards with answers, click on the resource link above.

Chapter 7: Sub and Function Procedures

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

Source URL: https://quizplus.com/quiz/65095

Sample Questions

Q1) Write the code for a Sub procedure named InitializeVariables.The Sub procedure will assign the number 0 to the intTotalCars,intTotalTrucks,intTotalSUVs.Then write the code to call the procedure.

Q2) How do the parameterList of a procedure header and the argumentList of a Call statement relate to each other?

Q3) A combo box's ____ property contains the value that appears in the text portion of the control.

A) Add

B) Sorted

C) Text

D) list

Q4) When will the TextChanged event occur for a combo box? Which style allows the user to edit the text of the combo box?

Q5) If the digits argument is omitted,the Math.Round function returns a(n)____.

A) zero

B) exception

C) error

D) integer

Q6) What is the difference between a Sub procedure and a Function procedure?

Page 9

To view all questions and flashcards with answers, click on the resource link above.

Chapter 8: String Manipulation

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

Source URL: https://quizplus.com/quiz/65096

Sample Questions

Q1) Write a Visual Basic statement that removes the last four digits of the credit card number and assigns it to the strCCLastFour variable. strCCNum = "4456778996352852"

Q2) In order to remove both dashes from the SSN,you should first ____.

A) use the Length property to see how many characters are in the variable

B) use the index value to loop to examine each character in the variable,character by character

C) use the Contains method to see if any dashes are anywhere within the variable D) use the Insert method to insert dashes

Q3) The strCityState variable contains the string "AtlantaGA".Write the Visual Basic statements that assign the string "Atlanta" from the strCityState variable to the strCity variable,and assign the string "GA" to the strState variable.

Q4) The strPhone variable contains a 10-digit phone number.If the string stored in the strPhone variable begins with the "336" area code,display the phone number in the lblPhone control's Text property.Use the StartsWith method.

Q5) Menu title captions should be one word only and entered using uppercase letters. A)True B)False

To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Arrays

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

Source URL: https://quizplus.com/quiz/65097

Sample Questions

Q1) An array is defined as follows: Dim numbers(3)As Integer How many elements does the array have?

A) one

B) two

C) three

D) four

Q2) You have decided the Daily "Chef's Specials" need to be stored in a two-dimensional array rather than two parallel one-dimensional arrays.Which of the following statements will declare the array as a procedure-level array named strDailySpecial? The number of rows is based on the number of days in the week,and Sunday remains the first element for the days of the week.

A) Dim strDailySpecial(6,1)As String

B) Dim strDailySpecial(7,2)As String

C) Dim strDailySpecial(1,6)As String

D) Dim strDailySpecial(2,7)As String

Q3) If the array's data type is Integer,each element in the array is initialized using the keyword Nothing.

A)True

B)False

Q4) Explain the difference between a simple variable and an array.

To view all questions and flashcards with answers, click on the resource link above. Page 11

Chapter 10: Structures and Sequential Access Files

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/65098

Sample Questions

Q1) You can use the ____ to open a sequential access file for append.

A) CreateText method

B) StreamReader object

C) StreamWriter object

D) AppendText method

Q2) Write an If clause that determines whether the sequential access file named contacts.txt exists.If the file exists,open the file.If the file does not exist,display the message "File not found" in a message box.The application is named "View Contacts".

Q3) You should ____ the pictureFrame.txt file as soon as you have finished using it.

A) Save

B) Read

C) Close

D) Peek

Q4) You reserve memory locations by declaring a structure variable.

A)True

B)False

Q5) Write the code to declare a variable named inFile that can be used to read data from a sequential access file.Then write the statement to open a sequential access file named samples.txt for input.

To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 11: Classes and Objects

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/65099

Sample Questions

Q1) A(n)____ is a class method whose sole purpose is to initialize the class's Private variables.

A) signature

B) constructor

C) Get block

D) event

Q2) Which of the following clauses allows a derived class named Truck to have the same attributes and behaviors as its base class,which is named Automobile?

A) Inherit Truck

B) Inherits Truck

C) Inherit Automobile

D) Inherits Automobile

Q3) When two or more methods have the same name but different parameters,the methods are referred to as ____.

A) default methods

B) parameterized methods

C) overloaded methods

D) Property procedures

Q4) What is an auto-implemented property and what does it automatically create?

To view all questions and flashcards with answers, click on the resource link above. Page 13

Chapter 12: Web Applications

Available Study Resources on Quizplus for this Chatper

55 Verified Questions

55 Flashcards

Source URL: https://quizplus.com/quiz/65100

Sample Questions

Q1) Write the statements to create three columns on a Web page based on the following information: The first column is named LogoColumn and it occupies 25% of the page.The second column is named MainText and it occupies 50% of the page.It has a background color of blue.The third column is named LinkColumn and it occupies 25% of the page.

Q2) A(n)____ Web page contains controls with which the user can interact.

A) HTML

B) static

C) ASP

D) dynamic

Q3) A drop-down list control has been added to a Web page.Add the following four majors as list items to the control: Information Systems,Accounting,Management,and Marketing.

Q4) A ____ is interactive;it can accept information from the user and also retrieve information for the user.

A) static Web page

B) toolbar

C) dynamic Web page

D) <div> tag

Q5) What is the difference between a static Web page and a dynamic Web page?

To view all questions and flashcards with answers, click on the resource link above. Page 14

Chapter 13: Working With Access Databases and Linq

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

Source URL: https://quizplus.com/quiz/65101

Sample Questions

Q1) Write a LINQ statement to select all bicycles with a price greater than $450.Arrange the bicycles in descending order by price.

Q2) You can use a(n)____ to specify both the records to select in a dataset and the order in which to arrange the records.

A) condition

B) parameter

C) query

D) aggregate operator

Q3) You are responsible for connecting the Access database that contains the tblCustomer table to an application.You must first use the Data Source Configuration Wizard to ____.

A) test to see if the database is connected to the application

B) add a new data source

C) preview the contents of the dataset

D) bind the controls to the dataset

Q4) The computer can retrieve data stored in a relational format both quickly and easily,but the data must be displayed in a specific order.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 14: Access Databases and SQL

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

Source URL: https://quizplus.com/quiz/65102

Sample Questions

Q1) ____ is a set of statements that allows you to access and manipulate the data stored in many database management systems on computers of all sizes,from large mainframes to small microcomputers.

A) TQL

B) LINQ

C) C#

D) SQL

Q2) Which of the following is not true regarding the Query Builder?

A) The table and its related fields are displayed in the Diagram pane.

B) You cannot view the results of the query in the Query Builder once it is executed.

C) You can manually type the SELECT statement instead of using the Query Builder.

D) You must click the Execute Query button for the query to run.

Q3) You save a query that contains the SELECT statement by associating the query with one or more methods.

A)True

B)False

Q4) What is a parameter query and how is it used?

Q5) What is SQL and how is it used?

To view all questions and flashcards with answers, click on the resource link above. Page 16

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.