ism3232 true and false final exam review

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

A Boolean method returns either yes or no.

false

A class is an object.

false

A class that is not intended to be instantiated, but used only as a base class, is called a concrete class.

false

An enum declaration can only appear inside the application's namespace.

false

An output parameter works like a by value parameter.

false

By default, a control's Modifiers property is set to Public.

false

Class declarations must be written inside the project namespace.

false

Class fields are almost always declared public in order to make their values easily accessible to code outside of the class.

false

Individual variables are well suited for storing and processing lists of data.

false

Objects that are instances of a class are always passed by value.

false

One way to find the classes needed for an object-oriented program is to identify all the verbs in a description of the problem domain.

false

Properties in a base class cannot be overridden in the same way that methods can be overridden.

false

Structure objects can be passed into a method only by reference.

false

The base class inherits fields, properties, and methods from the derived class.

false

The contents of variables and the values of expressions cannot be passed as arguments.

false

The fields contained in a structure must be of the same data type.

false

The integer values that you assign to enumerators do not have to be unique.

false

The objects of a class can be stored in an array, but not in a List.

false

When you call a string object's Split method, the method divides the string into two substrings and returns them as an array of strings.

false

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

false

You do not have to write the data type for each parameter variable that is declared in a parameter list if they are all of the same data type.

false

You use the == operator to compare two array reference variables and determine whether the arrays are equal.

false

A base class reference variable can reference an object of any class that is derived from the base class.

true

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

true

A statement that tries to use the new operator to instantiate an abstract class will not compile.

true

A value-returning method must contain a return statement.

true

Arrays are reference type objects.

true

Before you can use the structure to store data, you must create an instance of the structure in memory.

true

C# allows you to access the individual characters in a string using subscript notation.

true

Constructors can accept arguments in the same way as other methods.

true

Dividing a large problem into several smaller problems that are easily solved is sometimes called divide and conquer.

true

Every form in a Visual C# project has a class.

true

If a method belongs to a class, then you must write a method's definition inside the class.

true

If you need to make a property read only, you simply do not write a set accessor for the property.

true

If you try to pass a property to a ref or an out parameter, an error will occur.

true

ImageList controls are designed to store small images such as icons or thumbnails.

true

In a Pascal case name, the first character is always uppercase.

true

It is a common practice to make all a class's fields private and to provide access to those fields through methods.

true

It is legal to write a class without any constructors.

true

Objects that are instances of a class can be stored in an array.

true

Polymorphism allows a class variable of the base class type to reference objects of either the base class or the derived class types.

true

Reference variables can be used only to reference objects.

true

The get accessor can be thought of as a method that returns the class property's value.

true

The same rules for naming variables apply to naming classes.

true

The subscript of the last element will always be one less than the array's Length property.

true

When an abstract property appears in a class, it must be overridden in any class that is derived from the class.

true

When you are working with a value type, you are using a variable that holds a piece of data.

true

When you create a List object, you do not have to know the number of items that you intend to store in it.

true

When you create a numeric array in C#, its elements are set to the value 0 by default.

true

You can compare enumerators and enum variables with relational operators.

true

You cannot perform comparison operations directly on structure objects.

true

You cannot store a string in a variable of the char data type.

true


Kaugnay na mga set ng pag-aaral

Astronomy Ch. 2 TEST: The Copernican Revolution

View Set

Hull-Spence, Rescorla-Wagner & Attention theories (L3,5&6)

View Set