Programming Fundamentals Final Test Solutions - 429 Verified Questions

Page 1


Programming Fundamentals

Final Test Solutions

Course Introduction

Programming Fundamentals introduces students to the essential concepts and skills required for computer programming. The course covers fundamental topics such as variables, data types, control structures (including conditional statements and loops), functions, arrays, and basic debugging techniques. Students will learn problem-solving strategies, algorithm development, and how to translate logical solutions into code using a high-level programming language. Practical exercises and projects reinforce theoretical knowledge, enabling students to build a solid foundation for more advanced studies 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 part of a program that users see and interact with is known as the

A) algorithm

B) properties

C) methods

D) user interface

Answer: D

Q2) Control names may not contain spaces.

A)True

B)False

Answer: True

Q3) Which of the following is an example of a binary number?

A) 324

B) 123

C) 101

D) 202

Answer: C

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 ______property appears in parentheses so it will appear at the top of the alphabetical Property list.

A) Name

B) Text

C) Visible

D) all of the above

Answer: A

Q2) Assume you have a Button control named <b>btnDisplayList</b>. Which is the default name for an event procedure that will be executed when the user clicks on the control?

A) Click_btnDisplayList

B) btnDisplayList_Click

C) btnDisplayList_ClickEvent

D) btnDisplayList_ClickButton

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

Sample Questions

Q1) When included in the Text property of a button, the && symbols placed side by side will display as a single & character.

A)True

B)False

Answer: True

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

A) Integer

B) Number

C) Decimal

D) Short Answer: B

Q3) When you assign a value of one data type to a variable of another data type, Visual Basic attempts to perform _____type conversion.

A) string

B) explicit

C) implicit

D) numeric Answer: C

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

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) It is possible to compare the return value of a function call with another value, using a relational operator.

A)True

B)False

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

Q3) A flag is a ______variable that signals when some condition exists in the program.

A) local

B) Boolean

C) class-level

D) standard

Q4) The expression <b>Single.TryParse("12.5", sngNbr)</b> performs the following:

A) Returns True

B) Returns False

C) Places the value 12.5 in the variable sngNbr

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

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) Which of the following statements correctly displays an input box?

A) strUserInput = Input("Enter your First Name")

B) strUserInput = Input("Enter your First Name", "Name")

C) strUserInput = InputBox(Enter your First Name, Enter Name)

D) strUserInput = InputBox("Enter your First Name", "Enter Name")

Q2) A difference between a <b>ListBox</b> and a drop-down <b>ComboBox</b> is

A) a ListBox takes up less room on the form

B) a ComboBox allows the user to enter text other than what is already in the List

C) a ListBox allows the user to enter text other than what is already in the List

D) there is no difference

Q3) A ________is a loop inside another loop.

A) internal loop

B) nested loop

C) fixed loop

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

Q2) Which debugging command executes a function call without stepping through function's statements?

A) Step Into

B) Step Over

C) Step Out

D) Step All

Q3) Which statement is true in regard to passing an argument by value to a procedure?

A) A copy of the argument is passed to the procedure.

B) A reference to the argument is passed to the procedure.

C) The procedure has access to the original argument and can make changes to it.

D) A procedure's parameter list need not agree with the arguments provided to the procedure.

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

35 Verified Questions

35 Flashcards

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

Sample Questions

Q1) In order to add a menu to a form, you must place a ______on the form.

A) MenuCommand control

B) MenuItem control

C) MenuOption control

D) MenuStrip control

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

A)True

B)False

Q3) Which of the following statements disables the Copy menu item named mnuCopy?

A) mnuCopy.Disabled = True

B) mnuCopy.Enabled = False

C) mnuCopy.Active = False

D) mnuCopy.Disable

Q4) Which of the following is not true about a form's class declaration?

A) It contains a detailed description of a form.

B) It's similar to a blueprint for a house.

C) It creates an instance of the form.

D) It contains the form's event handlers.

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

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) Parallel arrays have all of the following characteristics, except __________.

A) They can access related elements with a common subscript.

B) They share a reference to the same array.

C) They hold related data of different types.

D) They are two or more arrays that hold related data.

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) This predefined constant moves the print position forward to the next even multiple of 8 columns.

A) ControlChars.CrLf

B) Tab

C) vbTab

D) Space

Q2) This method is used to add more data to the end of an existing file.

A) System.IO.File.OpenText

B) System.IO.File.AppendText

C) System.IO.File.CreateText

D) System.IO.File.OpenNew

Q3) The method writes data to a file, followed by a newline character immediately after the data.

A) PrintLine

B) WriteLine

C) WriteNewLine

D) Write

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 you to query many types of data from virtually any source.

A) SQL

B) LINQ

C) OPENGL

D) DirectX

Q2) In Visual Studio, choose the ________template when creating a database file.

A) Service-based Database

B) Local Database

C) DataSet

D) XML Schema

Q3) You use to provide multiple selection conditions in an SQL statement.

A) relational operators

B) compound expressions

C) arithmetic operators

D) the & operator

Q4) A database _____________is organized into rows and columns.

A) grid

B) matrix

C) table

D) spreadsheet

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) When an <b>ASP.NET</b> application is created, it contains only one file named __________.

A) Default.aspx

B) Index.aspx

C) Default.htm

D) Web.config

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

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) Which method is used to create a new item in a collection?

A) Store

B) Insert

C) Add

D) Create

Q2) Which of the following describes the primary reason that one would override a property or method?

A) the property or method in the base class was declared as Private and can't be used

B) the property or method in the base class has an error

C) the property or method in the base class is not appropriate for the derived class

D) the property or method does not exist in the base class

Q3) Which of the following statements will remove an object referred to by the object variable NewStudent?

A) NewStudent = String.Empty

B) NewStudent = Nothing

C) NewStudent.Delete

D) Remove.NewStudent

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
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.