Software Development with C# Chapter Exam Questions - 1094 Verified Questions

Page 1


Software Development with C#

Chapter Exam Questions

Course Introduction

This course introduces the fundamental concepts and practices of software development using the C# programming language. Students will learn the essential syntax, data structures, and object-oriented principles that form the foundation of C#. Through hands-on projects and labs, the course covers application design, debugging, exception handling, file I/O, and the use of libraries and frameworks common to the C# ecosystem. Emphasis is placed on cultivating problem-solving abilities, effective coding techniques, and best practices in structured software development, preparing students to build robust and maintainable desktop, web, or mobile applications.

Recommended Textbook

Starting out with Visual C# 2012 3rd Edition by Tony Gaddis

Available Study Resources on Quizplus 11 Chapters

1094 Verified Questions

1094 Flashcards

Source URL: https://quizplus.com/study-set/1362

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

Sample Questions

Q1) A(n) _____________ is a program that both translates and executes the instructions in a high-level language program.

A) compiler

B) interpreter

C) assembler

D) lexical analyzer

Answer: B

Q2) In most computer systems, bits are tiny electrical components that can hold either a positive or a negative charge.

A)True

B)False

Answer: True

Q3) An object must be created in memory before it can be used in a program.

A)True

B)False

Answer: True

Q4) In Visual Studio, a window cannot float if its Auto Hide feature is turned on.

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

Sample Questions

Q1) Once a control has been added to a form, it cannot be deleted.

A)True

B)False

Answer: False

Q2) The standard notation for referring to a control's property in code is:

A) ControlName.PropertyName

B) ControlName->PropertyName

C) ControlName::PropertyName

D) ControlName<PropertyName/> Answer: A

Q3) Label controls have a ____________ property that allows you to display a border around the control's text.

A) Border

B) FrameStyle

C) Frame

D) BorderStyle Answer: D

Q4) A Label control's BorderStyle property is set to FixedSingle by default. Answer: NOT ANSWERED

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

Chapter 3: Processing Data

Available Study Resources on Quizplus for this Chatper

174 Verified Questions

174 Flashcards

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

Sample Questions

Q1) The same rules for identifiers that apply to control names also apply to variable names.

A)True

B)False

Answer: True

Q2) A variable of the ____________ data type can hold any string of characters, such as a person's name, address, password, and so on.

A) int

B) double

C) string

D) decimal

Answer: C

Q3) A(n) ____________ specifies how a class member can be accessed by code outside the class.

A) variable name

B) access modifier

C) namespace

D) class name

Answer: B

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

77 Verified Questions

77 Flashcards

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

Sample Questions

Q1) The ____________ is a multiple-alternative decision structure, which allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.

A) switch statement

B) if statement

C) try-catch statement

D) else statement

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

A) logic

B) if-else

C) branching

D) else-if

Q3) If you are writing an if statement that has only one conditionally executed statement, you must enclose the conditionally executed statement in curly braces.

A)True

B)False

Q4) Variables of the int data type are commonly used as flags.

A)True

B)False

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

109 Verified Questions

109 Flashcards

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

Sample Questions

Q1) In a count-controlled loop, you can only decrement the counter variable.

A)True

B)False

Q2) To create file objects, you will need to write the using System.IO directive at the top of your programs.

A)True

B)False

Q3) When you write a simple statement to increment or decrement a variable, it doesn't matter if you use prefix mode or postfix mode.

A)True

B)False

Q4) A semicolon is required at the very end of a do-while loop.

A)True

B)False

Q5) When the WriteLine method writes data to a file, it writes a null character immediately following the data.

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

61 Verified Questions

61 Flashcards

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

Sample Questions

Q1) When a ____________ is provided for a parameter, it becomes possible to call the method without explicitly passing an argument into the parameter.

A) named argument

B) Boolean value

C) default argument

D) bitwise operator

Q2) In C#, you declare a reference parameter by writing the ____________ keyword before the parameter variable's data type.

A) const

B) ref

C) out

D) private

Q3) A value-returning statement must have a(n) ____________ statement.

A) return

B) assignment

C) logical

D) void

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

Sample Questions

Q1) The first element in an array is assigned the subscript 1, the second element is assigned the subscript 2, and so forth.

A)True

B)False

Q2) An array's____________ indicates the number of values that the array should be able to hold.

A) reference variable

B) size declarator

C) element

D) subscript

Q3) You can store a mixture of data types in an array.

A)True

B)False

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

A) += operator

B) & operator

C) Insert property

D) Add method

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

Page 9

Chapter 8: More About Processing Data

Available Study Resources on Quizplus for this Chatper

87 Verified Questions

87 Flashcards

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

Sample Questions

Q1) The ____________ method returns the lowercase equivalent of a character.

A) char.IsLower

B) char.ToLower

C) this.Lowercase

D) this.char.Convert

Q2) The ____________ methods return an int value indicating the position of the substring being searched for in the string object.

A) IndexOf and LastIndexOf

B) Insert and Remove

C) ToUpper and ToLower

D) Substring and Trim

Q3) In code, you can determine the number of images that are stored in an ImageList control by getting the value of the control's ____________ property.

A) Image.List.Max

B) Size.Get

C) Images.Count

D) GetLastImage

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

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

Sample Questions

Q1) A special set of methods, known as ____________ work in conjunction with a private field.

A) valuators

B) accessors

C) getters and setters

D) transport methods

Q2) The ____________ is automatically created by the compiler, and its data type is the same as that of the property.

A) this variable

B) data parameter

C) copy variable

D) value parameter

Q3) If you wish to remove a form from a project but you do not want to delete its file from the disk, first right-click on the form's entry in the Solution Explorer window, and on the pop-up menu, click ____________.

A) Hide Form Only

B) Remove From Project

C) Archive Form Data

D) Exclude From Project

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

Sample Questions

Q1) A(n) ____________ is a property that appears in a base class but expects to be overridden in a derived class.

A) base property

B) abstract property

C) derived property

D) public property

Q2) To override the property in the ____________ you write the override keyword in the property declaration.

A) parameterized constructor

B) base class

C) field declaration

D) derived class

Q3) If you want to create an abstract read-only property, leave out the set accessor.

A)True

B)False

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

A)True

B)False

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

Sample Questions

Q1) The row that is designated as the primary key must hold a unique value for each column.

A)True

B)False

Q2) ____________ is automatically installed on your system when you install Visual Studio or Visual Studio Express.

A) Oracle

B) DB2

C) MySQL

D) Microsoft SQL Server Express Edition

Q3) In SQL, you use the ____________ to retrieve the rows in a table.

A) Fetch statement

B) Get expression

C) Select statement

D) Row keyword

Q4) Rather than retrieving or manipulating the data directly, applications can send instructions to the DBMS, and the DBMS carries out those instructions and sends the results back to the application.

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
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.