Skip to main content

Introduction to .NET Programming Question Bank - 802 Verified Questions

Page 1


Introduction to .NET Programming Question Bank

Course Introduction

Introduction to .NET Programming offers students a comprehensive foundation in developing applications using the Microsoft .NET framework. The course covers core concepts such as the Common Language Runtime (CLR), the .NET class libraries, and language interoperability, with a particular focus on C#. Students will learn how to build desktop and web applications, manage data using ADO.NET, and utilize tools such as Visual Studio. Through hands-on projects, learners gain practical experience in object-oriented programming, debugging, and deploying .NET applications, preparing them for further study and real-world software development in the .NET ecosystem.

Recommended Textbook

Programming with Microsoft Visual Basic 2012 6th Edition by Diane Zak

Available Study Resources on Quizplus

14 Chapters

802 Verified Questions

802 Flashcards

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

Chapter 1: An Introduction to Visual Basic 2012

Available Study Resources on Quizplus for this Chatper

59 Verified Questions

59 Flashcards

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

Sample Questions

Q1) What is the Properties window? Describe how it is used in Visual Studio 2012. Answer: The Properties window lists the properties,or attributes,of an object.Each object used in an application has a set of attributes that determine its appearance and behavior.The attributes are called properties,and each property has a default value assigned to it.The Properties window details the name of each property and the related value that can be applied to an attribute of an object.

Q2) To start an application using the menu bar,you click ____ and then click Start Debugging.

A) DEBUG

B) PROJECT

C) VIEW

D) BUILD

Answer: A

Q3) The title bar on a form cannot be removed from splash screen applications.

A)True

B)False

Answer: False

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

Chapter 2: Designing Applications

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) The following statements should clear each control:

lblEmpNumber.Txt = String.Empty

lblFirstName = String.""

lblLastName.Text = Empty.String

Answer: lblEmpNumber.Text = String.Empty

lblFirstName.Text = String.Empty

lblLastName.Text = String.Empty

Q2) The programming process begins with a meeting between the programmer and the client.Which of the following activities would be the last activity in the programming process?

A) Build the user interface.

B) Code the application.

C) Test and debug.

D) Assemble the documentation.

Answer: D

Q3) Write a statement that adds the contents of the txtNum1 control to the contents of the txtNum2 control,and then multiplies the result by 5.The result is displayed in the lblResult control.

Answer: lblResult.Text = (Val(txtNum1.Text)+ Val(txtNum2.Text))* 5

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

Page 4

Chapter 3: Using Variables and Constants

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) The pet's temperature is recorded at every visit,and it may contain a decimal place.What data type is best for storing this data?

A) String

B) Integer

C) Decimal

D) Double

Answer: D

Q2) Spaces are allowed in variable names.

A)True

B)False

Answer: False

Q3) A memory variable that is a Double data type requires ____ bytes of storage.

A) 2

B) 4

C) 6

D) 8

Answer: D

Q4) What is a static variable? How is it different from a class-level variable?

Answer: 11ea7cc1_5d3e_2f40_928c_3bfbf4b3c39d_TB6958_00

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

Chapter 4: The Selection Structure

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3.Which operation is performed second?

A) ^

B) /

C) *

D) +

Q2) If the intInventory variable contains the value 28,the condition If intInventory <= 25 Then will evaluate to ____.

A) Yes

B) No

C) True

D) False

Q3) The Not operator would make a True statement False,but would not make a False statement True.

A)True

B)False

Q4) The diamond symbol is used in a flowchart for a calculation task.

A)True

B)False

Q5) What is a group box and how is it used?

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

Chapter 5: More on the Selection Structure

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

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

Sample Questions

Q1) In a Case selection structure,you use the ____ keyword when you know both the upper and lower bounds of the range.

A) From

B) Is

C) To

D) Range

Q2) A selection structure that can choose from several alternatives is called a(n)____ selection structure.

A) dynamic

B) complex

C) secondary

D) extended

Q3) In a nested selection structure,the ____ decision is always made by the outer selection structure.

A) primary

B) secondary

C) binary

D) linear

Q4) Define the term "algorithm." How is desk-checking used to verify algorithms?

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

Chapter 6: The Repetition Structure

Available Study Resources on Quizplus for this Chatper

59 Verified Questions

59 Flashcards

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

Sample Questions

Q1) Which of the following loop structures always executes at least once?

A) pretest

B) posttest

C) top-driven

D) selection

Q2) Explain the difference between using the keywords While and Until within a Do...Loop statement.

Q3) The strCode variable contains an uppercase letter.Write two different Do...Loop clauses that process the loop instructions as long as the value in the strCode variable is either A or B.Use the Until keyword in the first clause,and use the While keyword in the second clause.

Q4) A counter is always incremented by a constant value.

A)True

B)False

Q5) Like the condition in a selection structure,the condition in a loop must evaluate to either True or False.

A)True B)False

Q6) What is a list box? Provide two of the Windows standards for its use on a form.

Q7) Explain the difference between a looping condition and a loop exit condition.

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

Chapter 7: Sub and Function Procedures

Available Study Resources on Quizplus for this Chatper

56 Verified Questions

56 Flashcards

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

Sample Questions

Q1) A ____ is similar to a list box in that it allows the user to select from a list of choices.

A) text box

B) message box

C) combo box

D) dialog box

Q2) When using ____,you capitalize the first letter in the procedure name and the first letter of each subsequent word in the name.

A) sentence case

B) camel case

C) object case

D) Pascal case

Q3) An independent Sub procedure is a procedure that is independent of any object and event.

A)True

B)False

Q4) Math.Round(3.234,2)returns the number 3.24.

A)True

B)False

Q5) What is the difference between a Sub procedure and a Function procedure?

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

Chapter 8: String Manipulation

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) To remove characters from the left of,the right of,or within a string variable,you should use the ____ function.

A) Mid

B) Delete

C) Trim

D) Remove

Q2) The ____ method returns an integer that represents the location of the subString within the string.

A) Insert

B) IndexOf

C) Contains

D) Substring

Q3) You should assign shortcut keys to every menu item.

A)True

B)False

Q4) Neither the Trim method nor the Remove method removes any characters from the original string.

A)True

B)False

Q5) What is the difference between a menu item's access key and shortcut key?

Page 10

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

Chapter 9: Arrays

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) A(n)____ is a group of variables that have the same name and data type,and are related in some way.

A) subscript

B) string

C) array

D) run time error

Q2) When a run time error occurs,the computer displays an error message and the application ends abruptly.

A)True

B)False

Q3) You have decided the Daily "Chef's Specials" need to be stored in a two-dimensional array rather than two parallel one-dimensional arrays.Which of the following statements will declare the array as a procedure-level array named strDailySpecial? The number of rows is based on the number of days in the week,and Sunday remains the first element for the days of the week.

A) Dim strDailySpecial(6,1)As String

B) Dim strDailySpecial(7,2)As String

C) Dim strDailySpecial(1,6)As String

D) Dim strDailySpecial(2,7)As String

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

Page 11

Chapter 10: Structures and Sequential Access Files

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) Files that are read by the computer are called ____ files.

A) storage

B) serial

C) input

D) report

Q2) Which of the following declares a StreamReader variable named newFile?

A) Dim inFile As IO.StreamReader

B) Dim newFile As IO.StreamReader

C) Dim newFile As IO.StreamWriter

D) Dim newFile As StreamReader

Q3) Write a Structure statement that defines a structure named Vehicle.The structure contains three member variables named strMake,strModel,and intYear.Then write the Private statement that declares a Vehicle variable named truck.

Q4) What is the difference between an input file and an output file?

Q5) In Visual Basic,you use a(n)____ to read data from a sequential access file.

A) StreamWriter object

B) OpenText method

C) ReadLine method

D) StreamReader object

Q6) What is the difference between a structure and a structure variable?

Page 12

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

Chapter 11: Classes and Objects

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) Write the statements to create the default constructor for the Furniture class statement in the previous problem.Then write the Dim statement to use the default constructor to instantiate a Furniture object,assigning the object to a variable named sofa.

Q2) The code in the ____ allows an application to assign a value to the Private variable associated with the property.

A) Get block

B) default constructor

C) Set block

D) Property procedure

Q3) A method name combined with its optional parameterList is called the method's ____.

A) signature

B) event

C) attribute

D) behavior

Q4) Write the code for an auto-implemented property named TaxableIncome.The property's data type is Decimal.Then list the two hidden items it creates.

Q5) What is an auto-implemented property and what does it automatically create?

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

Chapter 12: Web Applications

Available Study Resources on Quizplus for this Chatper

55 Verified Questions

55 Flashcards

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

Sample Questions

Q1) The ____ tag in a Web page is similar to the ControlChars.NewLine constant in a Windows form.

A) &lt;div&gt;

B) &lt;h1&gt;

C) &lt;p&gt;

D) &lt;br /&gt;

Q2) ASP stands for ____.

A) advanced script page

B) active server page

C) active storage page

D) active solution page

Q3) The date the user selects for the prescription to be filled is stored in the Calendar control's ____ property.

A) ShortDate

B) Date

C) LongDate

D) SelectedDate

Q4) Describe the difference between the Design view and the Source view of a Web page in the IDE.

Q5) What is the difference between a static Web page and a dynamic Web page?

Page 14

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

Chapter 13: Working With Access Databases and Linq

Available Study Resources on Quizplus for this Chatper

57 Verified Questions

57 Flashcards

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

Sample Questions

Q1) Each column in a table represents a record and each row represents a field.

A)True

B)False

Q2) Connecting an object to a control is called ____.

A) linking

B) Order By clause

C) LINQ

D) binding

Q3) A ____ is a copy of the data (database fields and records)that can be accessed by an application.

A) position property

B) child table

C) dataset

D) bound control

Q4) A label,text box,or button can be added to the BindingNavigator control by accessing the control's task box and clicking ____.

A) AddNewItem

B) Properties

C) Insert Standard Items

D) Edit Items

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

Chapter 14: Access Databases and SQL

Available Study Resources on Quizplus for this Chatper

58 Verified Questions

58 Flashcards

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

Sample Questions

Q1) You use the REMOVE statement to delete records.

A)True

B)False

Q2) An application using the dataset allows the user to provide an ItemNum to select a record to delete from the dataset.Which function must also be used in the code for the Delete button on the form to work properly?

A) INSERT

B) InsertRecordQuery

C) DELETE

D) DeleteRecordQuery

Q3) The statement SELECT YearWon FROM tblMovies WHERE Title = 'Chicago' selects the Chicago field from the YearWon record.

A)True

B)False

Q4) Write a SQL SELECT statement that allows the user to select the members with a fee greater than or equal to the fee amount provided by the user.The query should select the MemberID,LastName,FirstName,and Fee fields.

Q5) What is SQL and how is it used?

Q6) What is a parameter query and how is it used?

Page 16

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

Turn static files into dynamic content formats.

Create a flipbook
Introduction to .NET Programming Question Bank - 802 Verified Questions by Quizplus - Issuu