Programming Fundamentals Exam Questions - 429 Verified Questions

Page 1


Programming Fundamentals

Exam Questions

Course Introduction

Programming Fundamentals is an introductory course designed to provide students with a solid foundation in programming concepts and problem-solving techniques. The course covers the basic principles of computer programming, including variables, data types, control structures, functions, and arrays. Students will learn how to design, write, and test simple programs using a high-level programming language. Emphasis is placed on developing logical thinking and algorithmic skills, enabling students to break down complex problems and implement efficient solutions. Upon completion, students will be equipped with the essential skills required for more advanced study 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 purpose of a compiler is to __________________.

A) Aid the programmer in commenting he/her code

B) Aid the programmer in developing GUIs.

C) Convert a program from a programming language to machine code

D) Assemble and package the documentation for an application

Answer: C

Q2) Control names may not contain spaces.

A)True

B)False

Answer: True

Q3) A control is an object that usually appears in a program's graphical user interface.

A)True

B)False

Answer: True

Q4) Application software manages the computer's hardware devices.

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

Sample Questions

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

A) Fixed3D

B) Sizable

C) FixedSingle

D) FixedDouble

Answer: D

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

Q3) Which of the following displays a message box with the text "Hello World"?

A) MessageBox.Show("Hello World")

B) MessageBox.Display("Hello World")

C) MessageBox.Text("Hello World")

D) MessageBox.Send("Hello World")

Answer: A

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

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 operator performs string concatenation.

A) ampersand (&)

B) dollar sign ($)

C) percent symbol (%)

D) pound symbol (#)

Answer: A

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

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

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

Sample Questions

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

Q2) It is possible to compare the return value of a function call with another value, using a relational operator.

A)True

B)False

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 logical operators (And, Or, Xor, Not) combine two or more Boolean expressions.

A)True

B)False

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

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

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) Which of the following examples correctly uses an input box to assign a value to an integer, and returns the integer to the calling program using a reference parameter?

A) Sub GetInput(ByVal intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer"))

End Sub

B) Sub GetInput(ByRef intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer"))

End Sub

C) Sub GetInput(ByRef intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer"))

Return intNumber

End Sub

D) Sub GetInput() Dim intNumber As Integer IntNumber = CInt(InputBox("Enter an Integer"))

End Sub

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

A) Dim

B) Open

C) Instantiate

D) Create

Q3) Standard modules are saved on disk as files that end with this extension.

A) .mod

B) .proj

C) .frm

D) .vb

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/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) Which of the following statements sorts an array named intValues?

A) Sort.Array(intValues)

B) Sort(intValues)

C) Sort.Array(intValues())

D) Array.Sort(intValues)

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) When the PrintDocument control's Print method is executed, it triggers the ______event.

A) Printer

B) PrintDoc

C) PagePrint

D) PrintPage

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) To serve as a visual reminder that the structure or class name is not a variable, structure names and class names should ___________.

A) Begin with uppercase letters

B) Begin with an underscore

C) End with a letter

D) all of the above

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

A) SQL

B) LINQ

C) OPENGL

D) DirectX

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

Sample Questions

Q1) Which is not a valid URL protocol?

A) ftp://

B) http://

C) https://

D) htm://

Q2) When the Web first became popular, _______was the only available tool for creating pages with text, graphics, buttons, and input forms.

A) JavaScript

B) HTML

C) PHP

D) XML

Q3) The following are true about a HyperLink control, except __________.

A) its Text property is shown to the user at runtime

B) it generates an event

C) it allows the user to navigate to another Web page

D) its Target property controls whether new page will appear in a separate window

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

Q2) An instance of a class is also called ______________.

A) a tangible entity

B) an object

C) a method

D) a property

Q3) A constructor is a method named ______found inside the class.

A) New

B) Constructor

C) Finalizer

D) the same as the class name

Q4) It's possible to access the items in a collection using __________.

A) an integer index of the item to be retrieved

B) the Item method to retrieve an item with a specific key value

C) a For Each loop

D) all of the above

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