

Programming Fundamentals
Mock Exam
Course Introduction
Programming Fundamentals provides an introduction to the basic concepts and principles of computer programming. The course covers essential topics such as variables, data types, control structures (including selection and iteration), functions, arrays, and an introduction to problem-solving techniques using algorithms. Through hands-on exercises and projects, students learn to design, write, test, and debug simple programs, fostering logical thinking and computational skills. This foundational course serves as a stepping stone for further study in computer science and software development.
Recommended Textbook
Starting Out With Visual Basic 7th Edition by Tony Gaddis
Available Study Resources on Quizplus
12 Chapters
429 Verified Questions
429 Flashcards
Source URL: https://quizplus.com/study-set/3925

Page 2

Chapter 1: Introduction to Programming and Visual Basic
Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/78277
Sample Questions
Q1) The purpose of a compiler is to __________________.
A) Aid the programmer in commenting he/her code
B) Aid the programmer in developing GUIs.
C) Convert a program from a programming language to machine code
D) Assemble and package the documentation for an application
Answer: C
Q2) Pseudocode is a combination of programming language and machine code.
A)True
B)False
Answer: False
Q3) Which of the following is an example of a binary number?
A) 324
B) 123
C) 101
D) 202
Answer: C
Q4) Application software manages the computer's hardware devices.
A)True
B)False
Answer: False
To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Creating Applications With Visual Basic
Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/78276
Sample Questions
Q1) The form's ______property can be set to True or False, depending on whether or not you want the minimize button to appear.
A) MinimizeBox
B) ShowMinimizeButton
C) HideButtonMinimize
D) FormBorderStyle
Answer: A
Q2) Which property determines the characters that appear in the title bar of Form1?
A) Form1.Name
B) Form1.Text
C) Form1.Caption
D) Form1.Title
Answer: B
Q3) Programs should use comments (remarks) to ____________________.
A) explain what the code does
B) save time when the program must be modified
C) save time when you have to debug the program
D) all of the above
Answer: D
To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Variables and Calculations
Available Study Resources on Quizplus for this Chatper
41 Verified Questions
41 Flashcards
Source URL: https://quizplus.com/quiz/78275
Sample Questions
Q1) What is the value of intE after the following statements execute?
<b>Dim intC As Integer
Dim intD As Integer
Dim intE As Integer
IntC = 20
IntD = 3
IntE = intC \ intD</b>
A) 7
B) 6
C) 6.666667
D) 0
Answer: B
Q2) Which of the following is not true in regard to naming variables?
A) Names may contain underscores.
B) Names may contain letters.
C) Names may contain digits.
D) Names may contain spaces.
Answer: D
To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Making Decisions
Available Study Resources on Quizplus for this Chatper
39 Verified Questions
39 Flashcards
Source URL: https://quizplus.com/quiz/78274
Sample Questions
Q1) What value will be assigned to strGrade when intScore equals 90?
<b> If intScore > 60 Then StrGrade = "D"
End If
If intScore > 70 Then StrGrade = "C"
End If
If intScore > 80 Then StrGrade = "B"
End If
If intScore > 90 Then StrGrade = "A"
End If</b>
A) A
B) B
C) C
D) D
Q2) The If Then Else statement follows only one of the two paths.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 6
Chapter 5: Lists and Loops
Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/78273
Sample Questions
Q1) What value is assigned to lblSum.Text by the following code ?
<b>Dim intTotal As Integer = 0
For intOuter = 1 To 3
For intInner = intOuter To 3
IntTotal += intOuter * intInner
Next
Next
LblSum.Text = intTotal.ToString()</b>
A) 9
B) 16
C) 25
D) 36
Q2) How can you cause scroll bars to appear in a <b>ListBox</b> at runtime?
A) Set the ScrollFlag property of the ListBox to True.
B) A scroll bar is automatically added when a ListBox contains more items than can be displayed.
C) Set the ScrollBars property of the ListBox to True.
D) Add a programming statement to call the ScrollBar method of the ListBox.
To view all questions and flashcards with answers, click on the resource link above.

7

Chapter 6: Procedures and Functions
Available Study Resources on Quizplus for this Chatper
31 Verified Questions
31 Flashcards
Source URL: https://quizplus.com/quiz/78272
Sample Questions
Q1) When a parameter is declared using the ______qualifier, the procedure has access to the original argument variable and may make changes to its value.
A) ByValue
B) ByAddress
C) ByRef
D) ByDefault
Q2) What is incorrect about the following function?
<b> Function sum(ByVal intX As Integer, ByVal intY As Integer) As Integer
Dim intAns As Integer
IntAns = intX + intY
End Function</b>
A) intAns should not be declared inside the Function.
B) the as Integer at the end of the Function heading should be eliminated.
C) the function does not return a value
D) parameters intA and intB should be declared as ByRef
Q3) When debugging a program in break mode, the Step Into command causes the currently highlighted line of code to execute.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 8

Chapter 7: Multiple Forms, Modules, and Menus
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/78271
Sample Questions
Q1) Any form in a Windows Forms application can be designated as the startup form.
A)True
B)False
Q2) The _______event occurs when a form is in the process of closing, but before it has closed.
A) FormClosing
B) FormClosed
C) CloseForm
D) Close
Q3) Standard modules are saved on disk as files that end with this extension.
A) .mod
B) .proj
C) .frm
D) .vb
Q4) Which of the following is not true about a form's Activated event?
A) It occurs when a form is initially displayed.
B) It occurs each time a form regains the focus.
C) It occurs each time the user clicks a form that does not have the focus.
D) It occurs before the Load event procedure is processed.
To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Arrays and More
Available Study Resources on Quizplus for this Chatper
34 Verified Questions
34 Flashcards
Source URL: https://quizplus.com/quiz/78270
Sample Questions
Q1) Which of the following code segments will copy the values of a 5 element array named intOldValues into another 5 element array named intNewValues?
A) intIndex = 1 Do While intIndex < =5
IntNewValues(intIndex) = intOldValues(intIndex)
IntIndex = intIndex + 1
Loop
B) intIndex = 0 Do While intIndex < 5
IntNewValues(intIndex) = intOldValues(intIndex)
IntIndex = intIndex + 1
Loop
C) For intIndex = 1 To 5 intNewValues(intIndex) = intOldValues(intIndex)
Next intIndex
D) For intIndex = 0 To 4 intOldValues(intIndex) = intNewValues(intIndex)
Next intIndex
Q2) The lowest possible subscript of an array is __________.
A) 0
B) 1
C) 1
D) There is no limit
To view all questions and flashcards with answers, click on the resource link above.
Chapter 9: Files, Printing, and Structure
Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/78269
Sample Questions
Q1) Reports with columnar data should not use __________.
A) proportionally spaced fonts
B) the Courier New font
C) monospaced fonts
D) all of the above
Q2) Visual Basic allows you to use a(n) statement to eliminate the need to prefix class names with their namespace names.
A) Include
B) With
C) Inherits
D) Imports
Q3) The ___method displays a dialog window when selecting a file that you want to open.
A) DisplayDialogControl
B) DisplayDialog
C) ShowDialog
D) ShowControl
To view all questions and flashcards with answers, click on the resource link above.

11
Chapter 10: Working With Databases
Available Study Resources on Quizplus for this Chatper
32 Verified Questions
32 Flashcards
Source URL: https://quizplus.com/quiz/78268
Sample Questions
Q1) A database _____________is organized into rows and columns.
A) grid
B) matrix
C) table
D) spreadsheet
Q2) A _____connects data bound controls to a dataset
A) data source
B) dataset
C) binding source
D) table adapter
Q3) The SelectedValue property of a data-bound ListBox returns the value in the column specified by the ____property.
A) ValueMember
B) ReturnColumn
C) ReturnField
D) DisplayMember
To view all questions and flashcards with answers, click on the resource link above.

Page 12
Chapter 11: Developing Web Applications
Available Study Resources on Quizplus for this Chatper
33 Verified Questions
33 Flashcards
Source URL: https://quizplus.com/quiz/78267
Sample Questions
Q1) When the Web first became popular, _______was the only available tool for creating pages with text, graphics, buttons, and input forms.
A) JavaScript
B) HTML
C) PHP
D) XML
Q2) Which of the following is true regarding ASP.NET?
A) ASP.NET is a client-side programming technology.
B) ASP.NET is Microsoft's version of HTML and provides the same capabilities as HTML.
C) ASP.NET provides many controls that are similar to those used in Windows forms.
D) ASP.NET is the first generation of Web programming technology introduced by Microsoft.
To view all questions and flashcards with answers, click on the resource link above.

13
Chapter 12: Classes, Collections, and Inheritance
Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/78266
Sample Questions
Q1) ______is a general model of something - it captures the general characteristics of an object.
A) A constructor
B) A collection
C) An instance
D) An abstraction
Q2) All of the following statements are true about the .NET garbage collection utility except __________.
A) The garbage collector is a utility program that removes objects from memory that are no longer needed.
B) As the amount of available memory decreases, the garbage collector removes unreferenced objects more often.
C) The garbage collector removes an object from memory immediately when the last reference to it has been removed.
D) The system uses an algorithm to determine when it should periodically remove unused objects.
To view all questions and flashcards with answers, click on the resource link above.

14