Introduction to Programming Exam Review - 429 Verified Questions

Page 1


Introduction to Programming Exam Review

Course Introduction

Introduction to Programming is designed to provide students with the foundational concepts and skills necessary to understand and create computer programs. The course covers the basic principles of programming including variables, data types, control structures (such as loops and conditionals), functions, and simple data structures. Students will learn problem-solving strategies, code organization, and the fundamentals of software development while working with a contemporary programming language. By the end of the course, learners will be able to write, test, and debug simple programs and will gain a solid foundation for further studies in computer science or related fields.

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) What is the purpose of the Toolbox window?

A) To create user defined methods.

B) To select controls and place them on a form

C) To select event procedures associated with a control

D) To select methods and place them on a form

Answer: B

Q2) Which of the following adheres to the naming conventions for a text box control?

A) lblHoursWorked

B) txthoursworked

C) LBLhoursworked

D) txtHoursWorked

Answer: D

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

A) Form

B) TextBox

C) Button

D) all of the above

Answer: D

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

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) If a Label control's AutoSize property equals False and the label is not wide enough for the text assigned to the control, ________.

A) the text will be only partially displayed

B) none of the text will be displayed

C) the extra text is wrapped onto the next line or lines

D) the label will expand to fit the text

Answer: C

Q2) A Label control's ______property allows a label to change size to fit the text in its text property.

A) Autosize

B) Size

C) TextAlign

D) Grow

Answer: A

Q3) Which of the following is not a valid value for the FormBorderStyle property?

A) Fixed3D

B) Sizable

C) FixedSingle

D) FixedDouble

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 dblOutcome after the following section of code executes?

<b> Dim dblA as Double

Dim dblB as Double

Dim dblC as Double

Dim dblOutcome as Double

DblA = 45

DblB = 30

DblC = 3 * dblA / dblB

DblOutcome = 2 * (dblC + 15)</b>

A) 39

B) 24

C) 0

D) 80

Answer: A

Q2) A form's Load event takes place when the user first clicks on the form at run time.

A)True

B)False

Answer: False

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) A flag is a ______variable that signals when some condition exists in the program.

A) local

B) Boolean

C) class-level

D) standard

Q3) The expression <b>Integer.TryParse("12.5", intNbr)</b> performs the following:

A) Returns True

B) Returns False

C) Places the value 12.5 in the variable intNbr

D) Returns True and places the value 12.5 in the variable intNbr

Q4) 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) The <b>InputBox</b> function always returns a ______value.

A) Single

B) Double

C) Text

D) String

Q2) Which type of loop uses a pretest to initialize a counter variable and then increment the counter variable at the end of each iteration?

A) The Do Until Loop

B) The Count Until Loop

C) The Do While Loop

D) The For Next Loop

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

A) -1

B) 0

C) 1

D) Items.Count

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) A procedure may not be accessed by procedures from another class or form if the ______access specifier is used.

A) Private

B) Public

C) Static

D) Scope

Q2) Which one of the following declarations uses Pascal casing for the procedure name?

A) Sub MyProcedure()

End Sub

B) Sub myprocedure()

End Sub

C) Sub my_procedure()

End Sub

D) Sub myProcedure()

End Sub

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

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) An instance of a form is created using a ______statement with the New keyword.

A) Dim

B) Open

C) Instantiate

D) Create

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

A) using the Show method allows other forms to receive the focus

B) the Show method allows a calling program to continue to process statements

C) the displayed form must be closed before you can access other forms

D) the Show method displays a modeless form

Q4) A menu item may be executed by a user in each of the following ways except

A) by pressing access keys such as Alt + F

B) by pressing shortcut keys such as Ctrl + S

C) by clicking on the item

D) by hovering the mouse over the item

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) What task is accomplished by the following code? Dim intFirstArray(2) As Integer

Dim intSecondArray(2) As Integer

IntFirstArray(0) = 10

IntFirstArray(1) = 19

IntFirstArray(2) = 26

IntSecondArray = intFirstArray

A) Two distinct arrays are created in memory with the same values.

B) intFirstArray and intSecondArray reference the same array in memory

C) This code will generate a run-time error. You cannot assign the name of one array to another.

D) intFirstArray is initialized with values but intSecondArray contains no values

Q2) Which of the following provides the index of the highest numbered element of the array strNames?

A) strNames.Length - 1

B) strNames.Length

C) strNames.Length + 1

D) None of the above

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

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) A file is like a stream of data that must be read from its beginning to its end.

A) direct access

B) binary format

C) sequential access

D) direct format

Q2) To left justify the columns in the String.Format method, use preceding the column width.

A) a + sign

B) an & symbol

C) a - sign

D) a # symbol

Q3) When a file is selected from an Open dialog box, the path and file name are stored in the control's ______property?

A) Filename

B) PathName

C) File

D) Item

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 complete set of data for a single student that includes the following information is called a __________.

<b>Student ID, First Name, Last Name, Major, Class</b>

A) Table

B) Column

C) Row

D) Field

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

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

A) record

B) table

C) column

D) field

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) Which of the following is true about the HTML Designer?

A) it requires the user know how to write HTML code

B) it's a tool that simplifies the design of Web pages and Web forms

C) it's an add-on to Visual Studio for an additional cost

D) it's not possible to visually edit Web pages using this tool

Q2) All of the following are browsers your Web pages should be tested with except

A) Chrome

B) WebPro

C) Safari

D) Firefox

Q3) Web applications use a ______control which is similar to the <b>DataGridView</b> used by desktop applications.

A) GridView

B) DataSource

C) Table

D) DetailsView

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 function that is a member of a class is called ______.

A) a module

B) a method

C) a component

D) an element

Q2) The ___access specifier permits class members to be accessed only by statements inside the class.

A) Public

B) Protected

C) Private

D) Friend

Q3) The hiding of data and procedures inside a class is achieved through a process called ________.

A) data enclosing

B) encapsulation

C) modularization

D) components

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