Intro to c sharp chapter 7-9 multiple choice

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

When you create an array, you can optionally initialize it with a group of values called a(n) __________.

initialization list

A __________ is a data type you can create that contains one or more variables known as fields.

instance

Each object that is created from a class is called a(n) __________ of the class.

instance

The foreach loop is designed to work with a temporary, read-only variable that is known as the __________.

iteration variable

A __________ is similar to a two-dimensional array, but the rows can have different numbers of columns.

jagged array

The class's __________ are the statements that define the class's fields, properties, and methods.

member declarations

The __________ creates an object in memory and returns a reference to that object

new operator

A(n) __________ occurs when a loop iterates one time too many or one time too few

off-by-one error

When a method is __________, it means that multiple methods in the same class have the same name but use different types of parameters.

overloaded

Before you can use a structure to store data, you must create a(n) __________ of the structure in memory.

parallel relationship

A constructor that accepts arguments is known as a(n) __________.

parameterized constructor

A __________ is a constructor that accepts no arguments.

parameterless constructor

The __________ is the set of real-world objects, parties, and major events related to the problem.

problem domain

A(n) __________ is a special type of class member that allows an object to store and retrieve a piece of data.

property

A __________ can be read, but it cannot be modified.

read-only property

When you want to work with an object, you use a variable that holds a special value known as a(n) __________ to link the variable to the object.

reference

A(n) __________ is a type of assignment operation that copies a reference to an array and not the contents of the array.

reference copy

A variable that is used to reference an object is commonly called a(n) __________.

reference variable

Various techniques known as __________ have been developed to locate a specific item in a larger collection of data, such as an array.

search algorithms

The __________ uses a loop to step through an array, starting with the first element, searching for an item.

sequential search algorithm

A method's __________ consists of the method's name and the data type and argument kind (by value, ref, or out) of the method's parameters, from left to right.

signature

The __________ indicates the number of values that the array should be able to hold.

size declarator

When the value of an item is dependent on other data and that item is not updated when the other data is changed, what has the value become?

stale

The __________ file format is commonly used to export spreadsheet data to a text file.

structure

Each element in an array is assigned a unique number known as a(n) __________.

subscript

A string within a string is called a(n) __________.

substring

A class's responsibilities are __________.

things the class knows and actions the class performs

A series of words or other items of data contained in a string and separated by spaces or other characters are known as __________.

tokens

The __________ parameter of the set accessor is automatically created by the compiler, and its data type is the same as that of the property.

value

The memory that is allocated for a __________ variable is the actual location that will hold any value that is assigned to that variable.

value type

A special set of methods, known as __________, work in conjunction with a private field and allow code outside the class to get the property's value, and assign values to the property.

accessors

A(n) __________ is an object that can hold a group of values that are all of the same data type.

array

In C#, __________ are enclosed in single quotation marks.

character literals

You create a class by writing a(n) __________.

class declaration

The first line of a class declaration is known as the __________.

class header

The process of breaking a string into tokens is known as __________.

comma separated value, or CSV

A(n) __________ is a method that is automatically executed when an object is created.

constructor

If you write a class with no constructor whatsoever, the compiler will provide a(n) __________.

default constructor

The character that separates tokens is known as a __________.

delimiter

The storage locations in an array are known as __________.

elements

When the items in two data structures are related by their indexes, it is said that a __________ exists between the data structures.

enumerated data type

C# provides a special loop that, in many circumstances, simplifies array processing. It is known as the __________.

foreach loop

The __________ of a string object allow you to search for substrings

Contains, StartsWith, and EndsWith methods

When you create a(n) __________, you specify a set of symbolic values that belong to that data type.

Enumerators

__________ is a process that periodically runs, removing all unreferenced objects from memory.

Garbage collection

__________ are constants that represent integer values.

ImageList control

When you want to know the position of the substring, you can use one of the __________ of a string object.

IndexOf or LastIndexOf methods

__________ are spaces that appear at the beginning of a string.

Leading spaces

In C#, all arrays have a __________ that is set to the number of elements in the array.

Length property

The .NET Framework provides a class named __________, which can be used for storing and retrieving items.

List

The __________ displays a form on the screen, and it gives that form the focus.

ShowDialog method

The __________ of a string object can be used to retrieve a specific set of characters from a string.

Substring method

The char data type provides the __________ for converting the case of a character.

ToLower and ToUpper methods

__________ are spaces that appear at the end of a string.

Trailing spaces

The private field, which is known as the property's __________, holds any data that is assigned to the property.

backing field

The __________ is a clever algorithm that is much more efficient than the sequential search.

binary search

The process of matching a method call with the correct method is known as __________.

binding


Kaugnay na mga set ng pag-aaral

Chp 2. Financial Statements Taxes and Cash flow

View Set

03. EF Pre-Int Practical English 1: Hotel Problems

View Set

Nursing Concepts PrepU Practice Questions - Ch. 1

View Set

Modern Dental Assisting Chapter 31

View Set

PSY 105: Infant & Early Child Development CH 11-13 (Miele)

View Set

joints in the human and their functions

View Set