

Programming Fundamentals
Exam Preparation Guide

Course Introduction
Programming Fundamentals introduces students to the essential concepts and techniques of computer programming using a high-level language. The course covers foundational topics such as variables, data types, control structures (including conditionals and loops), functions, basic data structures (arrays and lists), and simple algorithmic problem-solving. Emphasis is placed on developing logical thinking, structured program design, debugging skills, and clear code documentation. Students gain hands-on experience through practical exercises and projects, preparing them for further studies in computer science and software development.
Recommended Textbook
Programming with Microsoft Visual Basic 2017 8th Edition by Diane Zak
Available Study Resources on Quizplus
14 Chapters
822 Verified Questions
822 Flashcards
Source URL: https://quizplus.com/study-set/3209 Page 2

Chapter 1: An Introduction to Visual Basic 2015
Available Study Resources on Quizplus for this Chatper
44 Verified Questions
44 Flashcards
Source URL: https://quizplus.com/quiz/63504
Sample Questions
Q1) A ____ is the general shape of the characters in the text.
A)property
B)splash
C)format
D)font
Answer: D
Q2) The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button)is referred to as a(n)____.
A)sub-program
B)event procedure
C)object function
D)subroutine
Answer: B
Q3) All objects in an object-oriented program are instantiated (created)from a ____.
A)object
B)method
C)class
D)source
Answer: C
To view all questions and flashcards with answers, click on the resource link above.
Page 3

Chapter 2: Designing Applications
Available Study Resources on Quizplus for this Chatper
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63505
Sample Questions
Q1) An instruction that is syntactically correct will also be logically correct.
A)True
B)False
Answer: False
Q2) Write a statement that adds the contents of the txtNum1 control to the contents of the txtNum2 control,and then multiplies the result by 5.The result is displayed in the lblResult control.
Answer: lblResult.Text = (Val(txtNum1.Text)+ Val(txtNum2.Text))* 5
Q3) The syntax of the Focus method is ____,where "object" is the name of the object to which you want the focus sent.
A)object.GetFocus()
B)object.SetFocus()
C)object.Focus()
D)object.FocusThis()
Answer: C
Q4) To test an application,you should use both valid and invalid test data.
A)True
B)False
Answer: True
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63506
Sample Questions
Q1) A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.
A)True
B)False
Answer: False
Q2) A procedure in an application needs to store student data.The student first name,student last name,student GPA,and whether or not the student is registered all need to be stored.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.
Answer: Dim strFirstName As String
Dim strLastName As String
Dim decGPA As Decimal
Dim blnRegistered As Boolean
Q3) Object and String variables are automatically initialized using ____.
A)spaces
B)the keyword Nothing (no data at all)
C)the word "Nothing"
D)0
Answer: B
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63507
Sample Questions
Q1) A variable that has ____ scope can be used anywhere within the procedure.
A)block
B)statement
C)method
D)procedure
Q2) A text box's ____ event occurs when the text box receives the focus.
A)Focus
B)It
C)Key
D)Enter
Q3) The message provided when a customer is not a current member of the Rental Rewards Program is "Enroll this customer in the Rental Rewards Program?".The clerk must enter a decision before the application can continue.Which of the message box buttons should be used?
A)OK
B)OKCancel
C)YesNo
D)Information
Q4) Write an If statement that allows only numbers and a decimal place to be accepted.
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
58 Verified Questions
58 Flashcards
Source URL: https://quizplus.com/quiz/63508
Sample Questions
Q1) In a Case selection structure,the expression Case Is 10 To 5 would be an incorrectly formed case statement.
A)True
B)False
Q2) In a Case selection structure,you use the ____ keyword when you know both the upper and lower bounds of the range.
A)From
B)Is
C)To
D)Range
Q3) 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
Q4) Define the term "algorithm." How is desk-checking used to verify algorithms?
Q5) 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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63509
Sample Questions
Q1) A unique number called a(n)____ identifies each item in a collection.
A)counter
B)index
C)accumulator
D)tracker
Q2) An application allows the user to enter a salary amount.The application should then calculate and display the possible bonuses based on that salary,using bonus rates of 3-6% in increments of .5%.
' displays bonus amounts using rates ' of 3% - 6% in increments of .5%
Dim dblSalary As Decimal
Dim decBonus As Decimal
TryParse(txtSalary.Text,decSalary)
lblBonus.Text = String.Empty
For decRate As Decimal = 0.03 To 0.06 Step 0.5
decBonus = decSalary + decRate
lblBonus.Text = lblBonus.Text & decRate.ToString("P1")& " " & decBonus.ToString("C2")& ControlChars.NewLine
Next decRate
Q3) What is the Refresh method? Write the syntax for this method.
To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Sub and Function Procedures
Available Study Resources on Quizplus for this Chatper
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63510
Sample Questions
Q1) Like a Sub procedure header,a Function procedure header includes the As dataType section.
A)True
B)False
Q2) Like the first item in a list box,the first item in a combo box has an index of ____.
A)0
B)1
C)2
D)3
Q3) A ____ is similar to a list box in that it allows the user to select from a list of choices.
A)text box
B)message box
C)combo box
D)dialog box
Q4) An event procedure is a Function procedure that is associated with a specific object and event.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 9

Chapter 8: String Manipulation
Available Study Resources on Quizplus for this Chatper
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63511
Sample
Questions
Q1) Each employee is assigned an employee code,such as F01234,which is stored in the strEmpCode variable.The first character is a letter for employment status (F for Full-time,P for Part-time).The next two characters are numbers representing the employee's department number.The last three characters are numbers representing a unique value for each individual employee.Which of the following statements assigns the employee's department to the strDept variable?
A)strDept = strEmpCode.Substring(0, 1)
B)strDept = strEmpCode.Substring(1)
C)strDept = strEmpCode.Substring(0, 2)
D)strDept = strEmpCode.Substring(1, 2)
Q2) Assume that a text box named PhoneNumberTextBox appears on a form and contains the phone number 414-555-5555.What value will display for the length of the phone number text box?
A)10
B)12
C)18
D)20
Q3) What is the difference between a menu item's access key and shortcut key?
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63512
Sample Questions
Q1) Storing data in an array decreases the efficiency of your code.
A)True
B)False
Q2) Write the statements to traverse the strCategory array and display each element's value in the lstCategory control.Use a For Each...Next statement.
Q3) Two or more arrays whose elements are related by their positions in the arrays are referred to as ____ arrays.
A)parallel
B)two-dimensional
C)accumulator
D)related
Q4) Before you can use an array,you first must declare it.
A)True
B)False
Q5) You do not need to specify the highest array subscript in the ____ statement.
A)Do...Loop
B)For...Next
C)For Each...Next
D)While...Wend
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63513
Sample Questions
Q1) Which of the following declares a StreamReader variable named newFile?
A)Dim inFile As IO.StreamReader
B)Dim newFile As IO.StreamReader
C)Dim newFile As IO.StreamWriter
D)Dim newFile As StreamReader
Q2) You should use the ____ method to close a sequential access file as soon as you are finished using it.
A)Exit
B)Close
C)End
D)Quit
Q3) In addition to getting data from the keyboard and sending data to the computer screen,an application can also get data from and send data to a file on a disk.
A)True
B)False
Q4) Most programmers use the Structure statement,rather than the Class statement,to create data types that contain procedures.
A)True
B)False
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63514
Sample Questions
Q1) In its simplest form,the Class statement can be used in place of the Structure statement.
A)True
B)False
Q2) Rather than reuse the Shoe class,you have decided to derive the Boot class from the Shoe class.Which of the following creates the derived Boot class?
A)Private Class Shoe Inherits Boot
B)Private Class Boot Inherits Shoe
C)Public Class Shoe Inherits Boot
D)Public Class Boot Inherits Shoe
Q3) 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
Q4) Constructors never return a value,so they are always Function procedures.
A)True
B)False
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63515
Sample Questions
Q1) You can add static text to a Web page using a ____.
A)Web application
B)browser
C)label control
D)format control
Q2) What two properties should you specify for the RequiredFieldValidator?
Q3) HTML tags tell the client's browser how to render the page on the computer screen.
A)True
B)False
Q4) The purpose of the ____ tool is to verify that an entry matches a specific pattern.
A)CompareValidator
B)RegularExpressionValidator
C)RequiredFieldValidator
D)RangeValidator
Q5) Radio button list controls and check boxes do not trigger an automatic postback. A)True
B)False
Q6) Describe what happens when a user clicks the Submit button on a 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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63516
Sample Questions
Q1) Which of the following statements will select all invoices of $200.00 or more and arrange the invoices in ascending order by Customer number?
A)Dim records =From customer In CustomerDataSet.tblCustomerWhere customer.InvoiceAmt > 200Order By invoice.CustomerNumSelect customer
B)Dim records =From customer In CustomerDataSet.tblCustomerWhere customer.InvoiceAmt > 200Order invoice.CustomerNum AscendingSelect customer
C)Dim records =From CustomerDataSet.tblCustomerWhere customer.InvoiceAmt > 200Order invoice.CustomerNumSelect customer
D)Dim records =From customer In CustomerDataSet.tblCustomerWhere customer.InvoiceAmt < 200Order By invoice.CustomerNumSelect customer
Q2) The field used to link a child table to a parent table is known as the ____ in the child table.
A)record
B)foreign key
C)cell
D)primary key
Q3) Write a LINQ statement to calculate the total value of the inventory.
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
60 Verified Questions
60 Flashcards
Source URL: https://quizplus.com/quiz/63517
Sample Questions
Q1) Write a SQL SELECT statement that selects the MemberID,LastName,JoinDate,and MemberType fields from all of the records.
Q2) You use the ____ clause,which contains a condition,to limit the records you want to view.
A)ORDER BY
B)WHERE
C)GROUP BY
D)UNION
Q3) An application using the dataset allows the user to provide an ItemNum to select a record to delete from the dataset.Which function must also be used in the code for the Delete button on the form to work properly?
A)INSERT
B)InsertRecordQuery
C)DELETE
D)DeleteRecordQuery
Q4) Write a SQL SELECT statement that selects only the records for the Senior members.Select all of the fields.
Q5) What is a parameter query and how is it used?
Q6) Write the statement to add a new record to the dataset.
To view all questions and flashcards with answers, click on the resource link above. Page 16