Skip to main content

Beginning Programming Pre-Test Questions - 429 Verified Questions

Page 1


Beginning Programming

Pre-Test Questions

Course Introduction

Beginning Programming introduces students to the fundamental concepts of computer programming using a high-level programming language. The course covers basic principles such as variables, data types, operators, control structures (conditionals and loops), functions, and simple data structures like arrays or lists. Emphasis is placed on problem-solving techniques, algorithm development, and writing clear, well-documented code. Through hands-on exercises, students gain practical experience in designing, coding, testing, and debugging simple programs, laying a strong foundation for more advanced programming courses. No prior programming experience is required.

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) A form is a ____________.

A) window in which other controls may be placed

B) box that displays text that cannot be changed by the user

C) piece of data that determines a characteristic of a control

D) control that displays a graphic image

Answer: A

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

A)True

B)False

Answer: False

Q3) An object in Visual Basic ____________.

A) is also referred to as an event handler

B) is an attribute of a control

C) is an action performed by a method

D) contains data called properties

Answer: D

Q4) Control names may not contain spaces.

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

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

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) The statement to declare strName as a variable that can hold character data is _______________.

A) Dim strName As Text

B) Dim strName As Single

C) Dim strName As Word

D) Dim strName As String

Answer: D

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

Q3) Variables declared within a button's Click event handler are ________variables.

A) local

B) String

C) global

D) private

Answer: A

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 is assigned to the variable strSnip when the following statements execute?

<b>Dim strSnip As String

Dim strFullString As String = "Washington" StrSnip = strFullString.Substring(1, 3)</b>

A) "ton"

B) "ash"

C) "Was"

D) "h"

Q2) The logical operators (And, Or, Xor, Not) combine two or more Boolean expressions.

A)True

B)False

Q3) Which statement assigns the string strAddress to label lblAddress while removing only trailing spaces?

A) lblAddress.Text = TrimStart(strAddress)

B) strAddress.TrimEnd = lblAddress.Text

C) lblAddress.Text = strAddress.Trim()

D) lblAddress.Text = strAddress.TrimEnd()

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

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) To get the number of items stored in a ListBox, use the ______property.

A) Count

B) Items

C) Items.Count

D) Number

Q2) The first item in a ListBox has an index of __________.

A) -1

B) 0

C) 1

D) Items.Count

Q3) A ToolTip is a _________that allows the programmer to create a small popup message that displays when the user places the mouse over a control.

A) method

B) property

C) function

D) control

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/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) If you do not provide an access specifier for a procedure, it will be designated ______by default.

A) Private

B) Protected

C) Friend

D) Public

Q4) Although you can omit the ByVal keyword in a parameter variable declaration, it is still a good idea to use it.

A)True

B)False

Page 8

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

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

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

Q3) What property must be set on a menu item to have the user activate that option by pressing Ctrl + C on the keyboard?

A) ShortcutKeys

B) QuickKey

C) HotKey

D) ShowShortCut

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

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) What is the error in the following code, and when will it be caught? Dim intValues(5) As Integer

Dim intIndex As Integer

For intIndex = 0 To 10

IntValues(intIndex) = 10

Next intIndex

A) The For...Next loop values for intIndex should range from 1 to 10. The error will occur at run time.

B) The loop should close with Next instead of Next intIndex. The error will occur at compile time.

C) An IndexOutOfRangeException will be thrown

D) The For...Next loop values for intIndex should range from 1 to 5. The error will occur at compile time.

Q2) The following statements apply to a Timer control, except _____________.

A) it can be used to trigger tick events at regular intervals

B) the smallest possible interval between tick events is a microsecond

C) the timer can be disabled so it generates no tick events

D) it responds to Tick events only at run time

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) Which of the following writes a blank line to a text file?

A) outputFile.Write(" ")

B) outputFile.WriteLine.Blank

C) outputFile.WriteLine()

D) outputFile.WriteLine(Blank)

Q2) The StreamReader.Read method will _______________________.

A) read the file until an end of line character is reached.

B) read the next character from a file

C) read the contents of the file from the current read position to end of file

D) read the next word from a file

Q3) An Open dialog box displays the current folder unless the ______property specifies a different path.

A) InitialFolder

B) DefaultDirectory

C) InitialDirectory

D) DisplayFolder

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

Q2) Each database ____is also known as a row in a database table.

A) record

B) table

C) column

D) field

Q3) A is a column (or columns) that uniquely identifies each row of data in a database.

A) selector

B) main key

C) identifier

D) primary key

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 form default.aspx is added to a project, another file named ______is also created.

A) default.asp

B) default.aspx.vb

C) default.config

D) default.vb

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. 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) A constructor is a method named ______found inside the class.

A) New

B) Constructor

C) Finalizer

D) the same as the class name

Q2) A ______is automatically called when an instance of the class is created.

A) Load method

B) constructor

C) instantiator

D) Initializer method

Q3) Client programs can query ______to get values, but they cannot modify them.

A) Read-Only properties

B) Get/Set properties

C) Private methods

D) Public properties

Q4) Object oriented analysis starts with __________.

A) declaring the member variables

B) finding the classes

C) describing attributes and operations

D) defining the property procedures

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
Beginning Programming Pre-Test Questions - 429 Verified Questions by Quizplus - Issuu