Skip to main content

Beginning Programming Concepts Practice Questions - 1111 Verified Questions

Page 1


Beginning Programming Concepts

Practice Questions

Course Introduction

Beginning Programming Concepts introduces students to the foundational principles of computer programming. This course covers essential topics such as algorithms, data types, variables, control structures (including conditionals and loops), functions, and basic input/output operations. Emphasis is placed on problem-solving techniques and logical thinking, enabling students to design, write, and debug simple programs. Through hands-on exercises and projects, students gain practical experience with a beginner-friendly programming language, preparing them for more advanced studies in computer science and software development.

Recommended Textbook

Starting out with Visual C# 4th Edition by Tony Gaddis

Available Study Resources on Quizplus

11 Chapters

1111 Verified Questions

1111 Flashcards

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

Chapter 1: Introduction to Computers and Programming

Available Study Resources on Quizplus for this Chatper

161 Verified Questions

161 Flashcards

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

Sample Questions

Q1) Once you clearly understand what a program is supposed to do, you can

A) test the program and correct logic errors

B) correct syntax errors

C) design the program's user interface

D) design the program's logic

Answer: C

Q2) Words having a predefined meaning in a high-level language are known as ____________ or reserved words.

A) mnemonics

B) pseudonyms

C) keywords

D) semantics

Answer: C

Q3) Each keyword in a high-level language has a specific meaning and cannot be used for any other purpose.

A)True

B)False

Answer: True

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

Page 3

Chapter 2: Introduction to Visual C#

Available Study Resources on Quizplus for this Chatper

131 Verified Questions

131 Flashcards

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

Sample Questions

Q1) A(n) ____________ is a logical container in a program that holds methods (as well as other program elements).

A) event

B) namespace

C) queue

D) class

Answer: D

Q2) The Visual Studio ____________ window shows a scrollable list of controls that you can add to a form.

A) Collection

B) Bank

C) Toolbox

D) Shelf

Answer: C

Q3) The file named ____________ contains code associated with a form named Form1.

A) Form1.cs

B) MainForm.cs

C) Control.cs

D) Window.cs

Answer: A

Page 4

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

Chapter 3: Processing Data

Available Study Resources on Quizplus for this Chatper

176 Verified Questions

176 Flashcards

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

Sample Questions

Q1) A math expression involving a double and a(n) ____________ is not allowed unless a cast operator is used to convert one of the operands.

A) int

B) double

C) decimal

D) All of these

Answer: C

Q2) The ____________ operator produces a string that is the combination of the two strings used as its operands.

A) +

B) =

C) *

D) &

Answer: A

Q3) You assign an access key to a control through its Text property by placing an ampersand (&) before the letter you want to assign as an access key.

A)True

B)False

Answer: True

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

78 Verified Questions

78 Flashcards

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

Sample Questions

Q1) When the user selects an item in a ListBox, the item is stored in the ListBox's ____________ property.

A) Checked

B) SelectedValue

C) DataSelection

D) SelectedItem

Q2) The == operator cannot be used to compare string expressions.

A)True

B)False

Q3) A(n) ____________ statement has two parts: an if clause and an else clause.

A) logic

B) if-else

C) Boolean

D) else-if

Q4) When the user selects an item in a ListBox, the item's index is stored in the Listbox's ____________ property.

A) DataValue

B) SelectedIndex

C) Index

D) ValueIndex

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

Chapter 5: Loops, Files, and Random Numbers

Available Study Resources on Quizplus for this Chatper

112 Verified Questions

112 Flashcards

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

Sample Questions

Q1) ListBox controls have an ____________ method that erases all the items in the Items property.

A) Items.Erase

B) Items.Remove

C) Items.Clear

D) Items.Reset

Q2) In general, there are three types of files: text, binary, and bitmap.

A)True

B)False

Q3) If you are writing a while loop that has only one statement in its body, you do not have enclose the statement inside curly braces.

A)True

B)False

Q4) The NextDouble method in the Random class generates a value as high as 1.0 X 108.

A)True

B)False

Q5) The SaveFileDialog control displays Save As in the dialog window's title bar.

A)True

B)False

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

Chapter 6: Modularizing Your Code with Methods

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) When you call a method that has an output parameter, you do not need to assign an initial value to the argument variable.

A)True

B)False

Q2) ____________ are useful for returning more than one value from a method.

A) Reference parameters

B) Named arguments

C) Default arguments

D) Parameter lists

Q3) When using the debugger, which command lets you follow a method call into the statements in the method's source code?

A) step out

B) step over

C) step into

D) step trace

Q4) You can write methods that return any data type.

A)True

B)False

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

Page 8

Chapter 7: Arrays and Lists

Available Study Resources on Quizplus for this Chatper

99 Verified Questions

99 Flashcards

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

Sample Questions

Q1) You can create an array to hold any single type of value.

A)True

B)False

Q2) To add items to an existing List object, use the ____________.

A) += operator

B) & operator

C) Insert property

D) Add method

Q3) To access an item that is stored in a particular row and column in a jagged array, you enclose the row and column subscripts in their own pairs of brackets..

A)True

B)False

Q4) When a(n) ____________ variable is declared, the compiler sets aside, or allocates, a chunk of memory big enough to hold the variable's data.

A) reference type

B) uninitialized

C) value type

D) dynamic type

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

9

Chapter 8: More About Processing Data

Available Study Resources on Quizplus for this Chatper

90 Verified Questions

90 Flashcards

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

Sample Questions

Q1) ____________ are spaces that appear at the beginning of a string.

A) Leading spaces

B) Empty spaces

C) Indentations

D) Tabbed spaces

Q2) You can convert an enumerator to its underlying integer type by using a(n) ____________.

A) binary operator

B) cast operator

C) reference variable

D) assignment statement

Q3) Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate } Flavor iceCreamFlavor = Flavor.Strawberry; MessageBox.Show(iceCreamFlavor + " is my favorite!"); Which one of the following strings will be displayed in the message box?

A) Flavor.Strawberry is my favorite!

B) iceCreamFlavor is my favorite!

C) Strawberry is my favorite!

D) iceCreamFlavor + is my favorite!

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

Page 10

Chapter 9: Classes and Multiform Projects

Available Study Resources on Quizplus for this Chatper

89 Verified Questions

89 Flashcards

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

Sample Questions

Q1) A ____________ can be read, but it cannot be modified.

A) private field

B) public field

C) read-only property

D) hidden property

Q2) When adding a new class file to a Visual C# project, be sure that the filename ends with the ____________ extension.

A) .cls

B) .resx

C) .src

D) .cs

Q3) When you create an array of a class type, each element of the array is a ____________ variable.

A) reference

B) global

C) numeric

D) Boolean

Q4) A form can be both modal and modeless.

A)True

B)False

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

Chapter 10: Inheritance and Polymorphism

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

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

Sample Questions

Q1) New fields, properties, and methods cannot be added to a derived class unless these elements already existed in the base class.

A)True

B)False

Q2) When program code instatiates a derived class object, the base class constructor executes first, followed by the derived class constructor.

A)True

B)False

Q3) Only methods in a derived class can directly access the base class's private members.

A)True

B)False

Q4) To allow a property to be overridden, you must include the virtual keyword in the property's declaration in the _________ class.

A) constructor

B) derived

C) base

D) virtual

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

Page 12

Chapter 11: Databases

Available Study Resources on Quizplus for this Chatper

69 Verified Questions

69 Flashcards

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

Sample Questions

Q1) When you place a data-bound control on a form, keep in mind that Visual Studio does not automatically generate the code needed for the control to display any data from the database table.

A)True

B)False

Q2) A ____________ is a file, ending with the .xsd extension, which describes the contents of a dataset.

A) schema definition file

B) extensible schema data file

C) extended source file

D) data exclusion file

Q3) The application handles the mechanical details reading of, writing of, and searching for data in a database.

A)True

B)False

Q4) SQL provides several functions for performing calculations.

A)True

B)False

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

Turn static files into dynamic content formats.

Create a flipbook