Skip to main content

Introduction to Programming with Visual Basic Practice Questions - 430 Verified Questions

Page 1


Introduction to Programming with Visual Basic Practice Questions

Course Introduction

This course offers a comprehensive introduction to programming using Visual Basic, focusing on fundamental concepts such as variables, data types, control structures, and object-oriented programming principles. Students will learn to design and develop simple Windows-based applications with graphical user interfaces, utilizing Visual Basic's integrated development environment. Hands-on exercises and projects reinforce problem-solving skills and algorithmic thinking, enabling students to approach software development systematically and effectively. By the end of the course, students will possess the foundational skills required to build basic applications and pursue further study in programming and software development.

Recommended Textbook

Starting Out With Visual Basic 2012 6th Edition by Tony Gaddis

Available Study Resources on Quizplus

12 Chapters

430 Verified Questions

430 Flashcards

Source URL: https://quizplus.com/study-set/3852 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/76827

Sample Questions

Q1) The part of a program that users see and work with is known as the __.

A) algorithm

B) properties

C) methods

D) user interface

Answer: D

Q2) A variable __.

A) performs various operations on data

B) is a set of programming statements to perform a specific task

C) is a storage location in memory represented by a name

D) is a key element of the graphical user interface

Answer: C

Q3) Pseudocode is a combination of programming language and machine code.

A)True

B)False

Answer: False

Q4) Control names may begin with a letter or a number.

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/76826

Sample Questions

Q1) You can run an application in all of the following ways except ___.

A) Click the Start Debugging button on the toolbar

B) Press the Ctrl-F4 keys

C) Press the F5 key

D) Click DEBUG on the menu bar, and then click Start Debugging

Answer: B

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

Q3) To lock all of the controls on a form during design time, ____.

A) left-click an empty spot on the form, then click Locked in the properties window

B) right-click an empty spot on the form, then select the Lock Controls option from the pop-up menu

C) click Window on the Menu Bar, then click Lock Controls d right-click the form, then click the lock controls icon on the toolbar

Answer: B

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/76825

Sample Questions

Q1) The operator performs string concatenation.

A) ampersand &)

B) dollar sign $)

C) percent symbol %)

D) pound symbol #)

Answer: A

Q2) Which of the following is False 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

Q3) Which of the following is not a valid Visual Basic data type?

A) Integer

B) Number

C) Decimal

D) Short

Answer: B

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

5

Chapter 4: Making Decisions

Available Study Resources on Quizplus for this Chatper

39 Verified Questions

39 Flashcards

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

Sample Questions

Q1) Which function accepts a string as its argument and returns True if the string contains only numeric digits?

A) IsNumber

B) IsNumeric

C) CStr

D) ToString

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

Q3) The If Then Else statement follows only one of the two paths.

A)True

B)False

Q4) If the Boolean expression A is True and B is False, the value of the logical expression A Or B is .

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/76823

Sample Questions

Q1) This method erases all the items in a ListBox.

A) Items.Delete

B) Items.Erase

C) Items.Clear

D) Items.Remove

Q2) What value is assigned to lblSum.Text by the following code ? Dim intTotal As Integer = 0

For intOuter = 1 To 3

For intInner = intOuter To 3

IntTotal += intOuter * intInner Next Next

LblSum.Text = intTotal.ToString)

A) 9

B) 16

C) 25

D) 36

To view all questions and flashcards with answers, click on the resource link above. Page 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/76822

Sample Questions

Q1) When a procedure finishes execution, .

A) control returns to the point where the procedure was called and continues with the next statement

B) the application terminates unless the procedure contains a Return statement

C) control transfers to the next procedure found in the code

D) the application waits for the user to trigger the next event

Q2) Which statement is not true regarding functions?

A) A function is a self-contained set of statements that can receive input values.

B) Visual Basic has many built-in functions such as CSngtxtInput.Text)

C) A function can only return a single value.

D) The same function can return several data types including integer, string, or double

Q3) Which of the following does not apply to procedures and functions?

A) they help to break up a large body of code into smaller chunks

B) they make it easier to maintain and modify code

C) the execution time is significantly reduced by calling procedures and functions

D) they permit the same sequence of code statements to be called from multiple places

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

8

Chapter 7: Multiple Forms, Modules, and Menus

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) A variable is accessible to statements outside the form if declared .

A) as private and class-level

B) as public

C) as public and class-level

D) with a Dim statement

Q2) Which of the following will display the getStudentDataForm form such that the programming statements that follow will not execute until the getStudentDataForm is closed?

A) getStudentDataForm.Open)

B) getStudentDataForm.Show)

C) getStudentDataForm.ShowDialog)

D) getStudentDataForm.OpenForm.Modal)

Q3) An instance of a form is created using a _statement with the New keyword.

A) Dim

B) Open

C) Instantiate

D) Create

Q4) Any form in a Windows Forms application can be designated as the startup form.

A)True

B)False

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/76820

Sample Questions

Q1) This property of a control allows it be positioned a specified distance from the outside edge of the form.

A) dock

B) anchor

C) attach

D) secure

Q2) Due to their similarities, it's easy to create a parallel relationship between an array and a .

A) TextBox

B) GroupBox

C) ComboBox

D) RadioButton

Q3) Which type of loop is designed specifically to use a subscript to access the elements of an array?

A) For Next

B) Do While

C) Do Until

D) For While

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

Chapter 9: Files, Printing, and Structures

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) This method places an item of data in a file without terminating the line.

A) WriteLine

B) ReadLine

C) Append

D) Write

Q2) Reports with columnar data should not use .

A) proportionally spaced fonts

B) the Courier New font

C) monospaced fonts

D) all of the above

Q3) When opening a file, use this method to determine whether a file exists before you attempt to open it:

A) ExistFilefilename)

B) IO.Existsfilename)

C) System.IO.File.Existsfilename)

D) System.File.Existsfilename)

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/76818

Sample Questions

Q1) A ____is an in-memory copy of data read from database tables.

A) data control

B) dataset

C) connection

D) data adapter

Q2) Which table adapter method reads data from the database into the dataset?

A) Fill

B) Read

C) Select

D) Retrieve

Q3) _allows individual controls such as text boxes and labels to be linked to and automatically display the contents of a data source.

A) Data binding

B) A table adapter

C) A data grid

D) A data relation

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/76817

Sample Questions

Q1) Which of the following is not a Web browser?

A) Safari

B) Firefox

C) Windows Explorer

D) Chrome

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

A) Toolbox

B) Web kit

C) Widget

D) WebParts

Q3) Web applications use the _control instead of the datasets used by desktop applications.

A) Gridview

B) Datasource

C) Table

D) MS Access

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/76816

Sample Questions

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

A) Object

B) Base

C) Window

D) Application

Q2) A constructor is a method named _found inside the class.

A) New

B) Constructor

C) Finalizer

D) the same as the class name

Q3) The class is the portion of the class that is visible to the application programmer.

A) form

B) design

C) control

D) interface

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
Introduction to Programming with Visual Basic Practice Questions - 430 Verified Questions by Quizplus - Issuu