Programming Fundamentals Study Guide Questions - 430 Verified Questions

Page 1


Programming Fundamentals

Study Guide Questions

Course Introduction

Programming Fundamentals introduces students to the essential concepts and techniques of computer programming. Through hands-on practice, students learn about variables, data types, control structures, functions, and basic algorithms. Emphasis is placed on developing problem-solving skills, writing clear and efficient code, and understanding the logical flow of programs. The course typically uses a high-level programming language, offering students a solid foundation for more advanced study in software development and computer science.

Recommended Textbook

Starting Out With Visual Basic 2012 6th Edition by Tony Gaddis

Available Study Resources on Quizplus

12 Chapters

430 Verified Questions

430 Flashcards

Source URL: https://quizplus.com/study-set/3852 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/76827

Sample Questions

Q1) Which is considered a valid step for developing a Visual Basic application?

A) Determine event handlers needed for each control.

B) Determine the controls needed.

C) Create a flowchart of the code.

D) all of the above

Answer: D

Q2) The purpose of an algorithm is to __.

A) analyze the nature of a problem

B) list a set of steps to solve a problem

C) understand what a programming language does

D) list the elements needed for the user interface

Answer: B

Q3) If you wish to display text which cannot be modified by the user, use the __.

A) TextBox control

B) Label control

C) Caption control

D) Name control

Answer: B

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

Sample Questions

Q1) IntelliSense is a feature of Visual Studio that __.

A) provides hints about the input data requested from the user

B) provides automatic code completion as you write programming statements

C) allows the user to easily modify properties for a control in design mode

D) is a feature that will help the programmer use proper naming conventions

Answer: B

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

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

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

Sample Questions

Q1) All of the following are advantages of using named constants except A) they can be used in the place of keywords.

B) it is easier to make a consistent change throughout a program. C) they help make the program more self documenting.

D) they're useful for common values such as pi.

Answer: A

Q2) A variable is a storage location on a computer's hard drive that holds information while the computer is off.

A)True

B)False

Answer: False

Q3) What will be assigned to the label when the following statements execute? Dim dblVal As Double = 11.75

LblResult.Text = dblVal.ToString"n3")

A) $11.75

B) 11.75

C) 11.750

D) 12

Answer: C

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

Sample Questions

Q1) Because only one radio button in a group can be selected at any given time, they are said to be ____.

A) mutually exclusive

B) dependent

C) selectively unique

D) interdependent

Q2) The If Then Else statement follows only one of the two paths.

A)True

B)False

Q3) What value is assigned to the variable strSnip when the following statements execute? Dim strSnip As String

Dim strFullString As String = "Washington"

StrSnip = strFullString.Substring1, 3)

A) "ton"

B) "ash"

C) "Was"

D) "h"

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

Sample Questions

Q1) What is the difference in the execution of the Do Until Loop first example) and the Do Loop Until second example)? ' First Example

SngPayAmount = 200

Do Until sngPayAmount > 150

SngPayAmount = sngPayAmount - 50

Loop

'Second Example

SngPayAmount = 200

Do

SngPayAmount = sngPayAmount - 50

Loop Until sngPayAmount > 150

A) Both loops are executed in an identical manner.

B) The first loop will never be executed while the second loop will execute once.

C) The first loop will execute one more time than the second loop.

D) The first loop will never be executed while the second is an infinite 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/76822

Sample Questions

Q1) Which statement is not true regarding functions?

A) A function is a self-contained set of statements that can receive input values.

B) Visual Basic has many built-in functions such as CSngtxtInput.Text)

C) A function can only return a single value.

D) The same function can return several data types including integer, string, or double

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.

Chapter 7: Multiple Forms, Modules, and Menus

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) Once you create a form, you do not have to re-create it to use it in another project.

A)True

B)False

Q2) How do you insert a separator bar into a menu?

A) Type a hyphen as a menu item object's Text property.

B) Type a space as a menu item object's Text property

C) Assign True to the Separator property

D) Right-click an existing item and select Bar from the pop-up menu

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

A)True

B)False

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

Sample Questions

Q1) In the array declaration below, what is the significance of the number 7? Dim strNames7) As String

A) It indicates the number of elements in the array.

B) It's the upper bound highest subscript value) of the array.

C) It's the value assigned to the array elements.

D) It's one greater than the upper bound of the array.

Q2) Which type of loop is designed specifically to use a subscript to access the elements of an array?

A) For Next

B) Do While

C) Do Until

D) For While

Q3) Which one of the following declares a List variable and creates a List object at the same time.

A) New lstNames As List Of String

B) lstNames As String Object

C) Dim lstNames As New String

D) Dim lstNames As New ListOf String)

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

Chapter 9: Files, Printing, and Structures

Available Study Resources on Quizplus for this Chatper

36 Verified Questions

36 Flashcards

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

Sample Questions

Q1) Which of the following declares a structure data type named Complex, which has two fields named Real and Imaginary, both of which are of type Double?

A) Declare Structure Complex Dim Real As Double

Dim Imaginary As Double

End Declare

B) Structure Complex Dim Real as Double

Dim Imaginary as Double

End Structure

C) Structure As Complex Dim Real As Double

Dim Imaginary As Double

End Structure

D) Dim Structure Complex Dim RealDouble)

Dim ImaginaryDouble)

End Structure

Q2) Which of the following writes a blank line to a text file?

A) outputFile.Write" ")

B) outputFile.WriteLine.Blank

C) outputFile.WriteLine)

D) outputFile.WriteLineBlank)

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

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

Q3) _is a tool provided by Visual Studio for creating and modifying SQL queries.

A) Server Explorer

B) SQL Explorer

C) Query Builder

D) SQL Toolbox

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

Sample Questions

Q1) A postback occurs when the server processes the page contents and .

A) does nothing when there are no changes to the page contents

B) sends an error when the requested page is not found

C) sends a different page that was requested by the user

D) resends a modified version of the same page currently displayed

Q2) The GridView control provides all the following features except .

A) it's designed to display single row at a time is displayed

B) you can sort on any column

C) you can select the order in which columns appear

D) you can format data within the columns

Q3) Internet Information Services IIS) .

A) implements a professional-quality Web server

B) contains minimal security and configuration features

C) requires little expertise to set up and maintain

D) all of the above

Q4) The following controls all have a Windows form counterpart except .

A) RadioButtonList

B) Button

C) TextBox

D) CheckBox

Page 13

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

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

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) If there exists a class named People and one wants to create a new class named Student based on the People class, what code segment below shows the correct way to do so?

A) Public Class Student Inherits People

B) Public Class Student Includes Class People

C) Public Class Student based on People

D) Public Class Student :People

Q3) The _property is used to get the number of items in a collection.

A) accumulator

B) enumerator

C) index

D) count

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.