Skip to main content

Programming Fundamentals Pre-Test Questions - 429 Verified Questions

Page 1


Programming Fundamentals

Pre-Test Questions

Course Introduction

Programming Fundamentals introduces students to the essential concepts and techniques of computer programming. Through hands-on exercises and real-world examples, students learn foundational topics such as variables, data types, control structures (selection and iteration), functions, arrays, and basic input/output operations.

Emphasizing problem-solving skills and logical thinking, the course builds proficiency in writing, debugging, and understanding simple programs using a high-level programming language. By the end of the course, students will have a solid groundwork for further study in computer science and the confidence to approach more advanced programming challenges.

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) Control names may begin with a letter or a number.

A)True

B)False

Answer: False

Q2) Which of the following is an example of a control?

A) Form

B) TextBox

C) Button

D) all of the above

Answer: D

Q3) How would you display the Designer window if it is not visible in your project?

A) Press Shift+F9 on the keyboard

B) Click the <i>Designer</i> option in the View menu

C) Press Ctrl+Alt+D on the keyboard

D) Click <i>View Designer</i> in the Edit menu

Answer: B

Q4) Properties determine the visual appearance of a control.

A)True

B)False

Answer: True

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) When Visual Studio displays a new project, a blank form is shown in the ______window.

A) Properties

B) ToolBox

C) Project

D) Designer

Answer: D

Q2) In the statement Me.Close(), the keyword Me refers to __________.

A) the current form

B) the programmer

C) the Close method

D) the Close button

Answer: A

Q3) A Visual Studio project may be saved in all of the following ways except _____________.

A) Click File on the Visual Studio menu bar, and then click Save All

B) Press Ctrl+Shift+S on the keyboard

C) Click the Save Project button on the standard toolbar

D) Click the Save All button on the standard toolbar

Answer: C

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) Which will be displayed in the label lblResult following execution of the code below?

<b>Dim dblGrossPay as Double DblGrossPay = 3500

LblResult.Text = dblGrossPay.ToString("c")</b>

A) 3500.00

B) 3500

C) $3500.00

D) $3,500.00

Answer: D

Q2) Only controls capable of receiving some sort of input, such as _________________, may have the focus.

A) labels

B) text boxes

C) buttons

D) text boxes and buttons

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) To convert a copy of a string to all uppercase letters, use the method of the String object.

A) ToUpper

B) ConvertToUpper

C) ToString

D) ToUpperCase

Q2) If the Boolean expression A is True and B is False, the value of the logical expression A And B is __________.

A)True

B)False

C) 1

D) 0

Q3) Because only one radio button in a group can be selected at any given time, they are said to be _________.

A) mutually exclusive

B) dependent

C) selectively unique

D) interdependent

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

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 is the difference in the execution of the <b>Do Until Loop</b> (first example) and the Do Loop Until (second example)? '

First Example:

<b>SngPayAmount = 200 Do Until sngPayAmount > 150

SngPayAmount = sngPayAmount - 50 Loop</b>

'Second Example:

<b>SngPayAmount = 200

Do

SngPayAmount = sngPayAmount - 50 Loop Until sngPayAmount > 150</b>

A) Both loops are executed in an identical manner.

B) The first loop will never be executed while the second loop will execute once.

C) The first loop will execute one more time than the second loop.

D) The first loop will never be executed while the second is an infinite loop.

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

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) In the context of Visual Basic procedures and functions, what is an argument?

A) A value received by a procedure from the caller

B) A value passed to a procedure by the caller.

C) A local variable that retains its value between procedure calls.

D) A disagreement between the procedure and the statement that calls it.

Q2) Which of the following can be returned by a function?

A) String values

B) Integer values

C) Boolean values

D) All of the above

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

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) A form's ______event is triggered when the user switches to the form from another form or another application.

A) form load

B) activated

C) got focus

D) click

Q2) When a ______form is displayed, no other form in the application can receive the focus until the form is closed.

A) hidden

B) modeless

C) modal

D) show

Q3) All of the following are true about the Hide method of a form except:

A) Using the Hide method removes the form from memory.

B) The Hide method makes the form invisible.

C) Once you have called the Hide method, the form can be redisplayed with the ShowDialog method.

D) Once you have called the Hide method, the form can be redisplayed with the Show method.

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 sets all elements of the array strStudentNames to the value NONE?

A) Dim intCount as Integer For intCount = 1 to (strStudentNames.Length - 1)

StrStudentNames(intCount) = "NONE"

Next intCount

B) Dim intCount as Integer For intCount = 0 to (strStudentNames.Length - 1)

StrStudentNames(intCount) = "NONE"

Next intCount

C) Dim intCount as Integer For intCount = 0 to (strStudentNames.Length)

StrStudentNames(intCount) = "NONE"

Next intCount

D) Dim intCount as Integer For intCount = 1 to (strStudentNames.Length)

StrStudentNames(intCount) = "NONE"

Next intCount

Q2) Which of the following statements defines a two-dimensional Integer array named intTwoDArray with 6 rows and 4 columns?

A) Dim intTwoDArray(5, 3) As Integer

B) Dim intTwoDArray(3, 5) As Integer

C) Dim intTwoDArray(6, 4) As Integer

D) Dim intTwoDArray(4, 6) As Integer

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

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) All of the following steps must be taken when a file is used by an application except ______.

A) the file must be opened. If the file does not exist, the file will be created.

B) the file must have a fully qualified path when opening the file.

C) data is either written to the file or read from the file.

D) when the application is finished using the file, the file is closed.

Q2) The color of text printed by an

A) FontName

B) Style

C) Brushes

D) HPos

E)Graphics.DrawString statement is determined by the __________ argument.

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) You use to provide multiple selection conditions in an SQL statement.

A) relational operators

B) compound expressions

C) arithmetic operators

D) the & operator

Q2) Which of the following SQL WHERE clauses will select all students whose last name begins with "S"?

A) Where LastName Like "S%"

B) Where LastName Like "S"

C) Where LastName = "S%"

D) Where LastName = "S*"

Q3) A ____component passes data from one or more database tables to your program.

A) DataTransfer

B) DataSet

C) Connection

D) TableAdapter

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

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) Which of the following is not true about the ASP.NET development platform?

A) Visual Basic code can be stored in a separate file from a web page's text and HTML.

B) It allows you to transfer much of your Visual Basic knowledge to Web applications.

C) It allows the use of object-oriented program code.

D) Visual Basic is the only programming language that may be used.

Q2) When you are designing Web forms, the ______window contains Web-related controls.

A) Toolbox

B) Web kit

C) Widget

D) WebParts

Q3) Which method allows the user to navigate to another Web page?

A) Redirect.Response

B) Hyperlink.Redirect

C) Response.Redirect

D) Redirect.Hyperlink

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

Page 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) This key word is used to refer to properties and methods found in the base class.

A) Base

B) Me.Base

C) MyBase

D) Base.Class

Q2) Every class you create in Visual Basic is automatically derived from this built-in class.

A) Object

B) Base

C) Window

D) Application

Q3) When creating a ToString method to return a string representation of the data stored in an object, you must __________.

A) override the ToString method, which is inherited from the built-in Object class

B) add a Protected ToString method to the class

C) do nothing as the ToString method automatically performs this for each class

D) a ToString method is a reserved word that cannot be added to a class

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

Turn static files into dynamic content formats.

Create a flipbook