Skip to main content

Programming Fundamentals Test Bank - 795 Verified Questions

Page 1


Programming Fundamentals

Test Bank

Course Introduction

Programming Fundamentals introduces students to the essential concepts and techniques of computer programming. This course covers foundational topics such as variables, data types, operators, control structures (including loops and conditionals), functions, and basic data structures. Students will develop logical thinking and problem-solving skills through hands-on exercises and real-world examples, typically using a high-level programming language such as Python or Java. By the end of the course, learners will be able to design, write, test, and debug simple programs, preparing them for more advanced studies in software development.

Recommended Textbook

Programming in Visual Basic 2010 1st Edition by Julia Case Bradley

Available Study Resources on Quizplus 14 Chapters

795 Verified Questions

795 Flashcards

Source URL: https://quizplus.com/study-set/2524 Page 2

Chapter 1: Introduction to Visual Basic 2010

Available Study Resources on Quizplus for this Chatper

54 Verified Questions

54 Flashcards

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

Sample Questions

Q1) What is the code used to display the words "Visual Basic" in a label named TitleLabel?

A)TitleLabel.Name = "Visual Basic"

B)TitleLabel.Name.Visual Basic

C)TitleLabel.Text = "Visual Basic"

D)"Visual Basic" = TitleLabel.Text

Answer: C

Q2) Where does the text recommend that you code the programmer's name and remarks defining the purpose of a project?

A)In Visual Basic Help

B)In the event procedure for exiting the project

C)In the Declarations section at the top of the file

D)In the form's title bar

Answer: C

Q3) With Visual Basic,you can write computer programs that run in the Microsoft Windows environment.

A)True

B)False

Answer: True

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

3

Chapter 2: User Interface Design

Available Study Resources on Quizplus for this Chatper

74 Verified Questions

74 Flashcards

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

Sample Questions

Q1) You can make labels,text boxes,and picture boxes appear to be three-dimensional by setting the BorderStyle property to Fixed3D.

A)True

B)False

Answer: True

Q2) In order to make a picture appear in a PictureBox control,you must set the ____ property.

A)Image

B)Picture

C)Graphic

D)Icon

Answer: A

Q3) If you would like to change the font property of five controls on your form so that they are all the same,you cannot change them as a group,you must change them individually.

A)True

B)False

Answer: False

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

4

Chapter 3: Variables, Constants, and Calculations

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) Which of the following does not follow the conventions for naming identifiers?

A)UnitsEnrolledDecimal

B)ZipCodeString

C)Amount.Due.Decimal

D)COUNTRY_OF_BIRTH_String

Answer: C

Q2) Which of the following is the correct code that will display the value in TotalSalesDecimal with a percent sign and 2 decimals?

A)TotalSalesDecimal(2)

B)TotalSalesPercent(2)

C)TotalSalesDecimal.ToString("P2")

D)TotalSalesDecimal.ToString(%2)

Answer: C

Q3) The reserved Visual Basic word,Dim,is short for dimension,which means _______.

A)declaration

B)size

C)storage location

D)identifier

Answer: B

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

5

Chapter 4: Decisions and Conditions

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) It's a good idea to always use the ToUpper or ToLower method on the Text property of text boxes,whenever comparing string values.

A)True

B)False

Q2) A CheckBox may be tested to determine if it is checked by using the following code: If TestChecked.Checked Then

A)True

B)False

Q3) Which of the following is NOT a logical operator?

A)If B)Or C)And D)Not

Q4) The code: If NumberAInteger > NumberBInteger AND NumberBInteger > NumberCInteger Then,evaluates True when NumberAInteger = 3,NumberBInteger = 5,and NumberCInteger = 2.

A)True

B)False

Q5) What are the six comparison operators? Give an example using each one.

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

Chapter 5: Menus, Common Dialog Boxes, Sub Procedures, and

Function

Available Study Resources on Quizplus for this Chatper

38 Verified Questions

38 Flashcards

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

Sample Questions

Q1) A function procedure may perform an action,but it only returns a value if the program code requests a value to be returned.

A)True

B)False

Q2) Which of the following is the correct way to assign a font to a label using common dialog boxes after the statement FontDialog1.ShowDialog()has been executed?

A)EmployeeLabel.Font = FontDialog1.Font

B)FontDialog1.Font = EmployeeLabel.Font

C)EmployeeLabel.Font FontDialog1.Font

D)FontDialog1.FontName = EmployeeLabel.FontName

Q3) It is possible to create procedures that are not associated with click events. A)True

B)False

Q4) You can pass arguments to sub procedures and function procedures.

A)True

B)False

Q5) Right-clicking on an object will usually pop up a context menu.

A)True

B)False

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

Chapter 6: Multiform Projects

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) Give an example of when you might want to hide a form instead of closing it.Explain why hiding would be better than closing the form.

Q2) In a project with multiple forms,the _____________ form is the first form loaded into the computer's memory and displayed on the desktop.

A)default

B)startup

C)about

D)splash screen

Q3) Use the _______ to display a form as modeless.

A)Show method

B)ShowDialog method

C)Modeless method

D)Mode method

Q4) Where may Static statements appear?

A)In a local procedure

B)In a block of code

C)In the Declarations section of a form

D)Answers A and B are both correct.

Q5) Write the statement that will display a form named,SummaryForm,as modal.

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

Chapter 7: Lists, loops, and Printing

Available Study Resources on Quizplus for this Chatper

76 Verified Questions

76 Flashcards

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

Sample Questions

Q1) The _______ method is used to send a line of text to the graphics page.

A)DrawString

B)WriteLine

C)String

D)Print

Q2) List boxes have a Text property,but it can only be accessed at run time.

A)True

B)False

Q3) How many times will the statements inside this For/Next loop be executed? For IndexInteger = 1 to 10 'Statements in loop

Next IndexInteger

A)2

B)4

C)5

D)10

Q4) Use the code: NamesListBox.SelectedIndex = -1,to deselect all items in a list.

A)True

B)False

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

Chapter 8: Arrays and Collections

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) A table lookup can be used to look up array elements indirectly.

A)True

B)False

Q2) Array elements may be used for counters and accumulators.

A)True

B)False

Q3) Dimension a variable that can be used for a seating chart that will hold student names in a classroom that has 5 tables,each with 7 chairs.

Q4) An array is a series of values,all referenced by the same variable name.

A)True

B)False

Q5) The following code is valid for creating a structure named Student: Structure Student

Dim StudentIDString As String

Dim FirstNameString As String

Dim LastNameString As String

Dim GPADecimal As Decimal

End Structure

A)True

B)False

10

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

Chapter 9: Web Applications

Available Study Resources on Quizplus for this Chatper

66 Verified Questions

66 Flashcards

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

Sample Questions

Q1) You can add HTML controls and ASP.NET server controls to a Web page.

A)True

B)False

Q2) HTML controls operate only on the client and pass text to the server and back as static text.

A)True

B)False

Q3) A Web Form displays as a document in a(n)_______.

A)browser

B)intranet

C)Web client

D)Web server

Q4) Web Forms in Visual Basic use ASP.NET.

A)True

B)False

Q5) The Visual Studio Web server is installed automatically when you install Visual Web Developer or Visual Studio.

A)True

B)False

Q6) What are the functions of the server and client in a Web application?

Page 11

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

Chapter 10: Database Applications

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) Which of the following windows can be used to add a new data source?

A)Solution Explorer

B)Properties

C)Data Connector

D)Data Sources

Q2) A SQL Server Express file has a(n)_______ file extension.

A).adb

B).mdb

C).mdf

D).net

Q3) You can use a DataGridView control on a Windows form to display the fields from a database table.

A)True

B)False

Q4) You can display the Data Sources window and then use it to add a new data source to the project.

A)True

B)False

Q5) Describe each of the following objects: BindingSource,TableAdapter,and Dataset.

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

Chapter 11: Data Files

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

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

Sample Questions

Q1) Use the StreamReader's Peek method to determine if there is more data in a file.

A)True

B)False

Q2)

My.Computer.FileSystem.WriteAllText(FileName,StringToWrite,AppendBoolean)______.

A)creates a database file

B)creates a text file

C)is used to read data from a file

D)is used to add data to a database

Q3) When instantiating a StreamWriter object,the name of the file on the disk _______.

A)must be in uppercase characters

B)appears immediately after the word As

C)must be enclosed in quotes

D)All of these

Q4) When reading data in a data file,the data will be read _______.

A)in alphabetical order

B)in the order in which it was written

C)in key field order

D)in random order

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

Chapter 12: OOP: Creating Object-Oriented Programs

Available Study Resources on Quizplus for this Chatper

51 Verified Questions

51 Flashcards

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

Sample Questions

Q1) Inheritance is the ability to create a new class from an existing class.

A)True

B)False

Q2) The middle tier,the Business tier,can be stored in a location other than where the Presentation tier is stored.

A)True

B)False

Q3) When you create a method with the same name and the same argument list as a method in the base class,the new method is said to override the base-class method.

A)True

B)False

Q4) The Set accessor method in a Property procedure retrieves the value of a property from a class.

A)True

B)False

Q5) Write the code to create a shared member that will accumulate the total of all sales.

Q6) Give an explanation of each of the following OOP features: Encapsulation,Inheritance,and Polymorphism.

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

Chapter 13: Graphics, Animation, Sound, and

Drag-And-Drop

Available Study Resources on Quizplus for this Chatper

62 Verified Questions

62 Flashcards

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

Sample Questions

Q1) A graphic is being placed on a button control on the form.Which object's starting point is used for the graphic?

A)The form

B)The button

C)A GroupBox

D)A PictureBox

Q2) Pictures can be loaded,moved,and resized at run time.

A)True

B)False

Q3) In the coordinate system,the X is the horizontal position and the Y is the vertical position.

A)True

B)False

Q4) In the VB graphics environment (GDI+),the programmer does not have to be concerned about the physical characteristics of the output device.

A)True

B)False

Q5) Write the code to draw a rectangle on a form.

Q6) Explain the use of the X and Y coordinates in the drawing methods.

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

Chapter 14: Additional Topics in Visual Basic

Available Study Resources on Quizplus for this Chatper

60 Verified Questions

60 Flashcards

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

Sample Questions

Q1) Arranging the layout of child windows is controlled by writing code in a Window Menu on the parent form.

A)True

B)False

Q2) MDI is an acronym that stands for _______.

A)Multiple Device Interface

B)Multiple Document Interface

C)Many Document Interlink

D)Match Document Interlink

Q3) WPF applications are similar to Web applications in that they are created as two files,one for the user interface and one for the programming logic.

A)True

B)False

Q4) If a form that you need to design requires a toolbar and a status bar,which controls are needed to build the form?

A)Image control and the ToolBar control

B)ToolStrip control and StatusStrip control

C)Toolbar control and StatusBar control

D)Toolbar control and Resources control

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

Turn static files into dynamic content formats.

Create a flipbook
Programming Fundamentals Test Bank - 795 Verified Questions by Quizplus - Issuu