Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

CSharp C#

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question or Statement
Answer - Mixed
Extra Notes
You can overload an operator for a built-in data type.   False   You cannot overload an operator for a built-in data type. For example, you cannot change the meaning of + between two ints. - - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
A method can return, at most, one value to a method that calls it.   True   A method can return, at most, one value to a method that calls it. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
If you don’t write a constructor for a class object, C# writes one for you.   True   If you don’t write a constructor for a class object, C# writes one for you. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Unlike simple parameters, you cannot use out or ref when passing an array to a method.   False   As with simple parameters, you use out or ref when passing an array to a method. You will declare the array in the calling method, but use the new operator to allocate memory for it in the called method. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
An implicit, or invisible, reference is passed to every instance method and property accessor. The implicitly passed reference is the ____ reference.   this   The difference lies in an implicit, or invisible, reference that is passed to every instance method and property accessor. The implicitly passed reference is the this reference. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
____ involves using one term to indicate diverse meanings.   Overloading   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
A class client is also known as a class ____.   user   A program or class that instantiates objects of another prewritten class is a class client or class user. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Only ____ parameters can be given default values.   value   Only value parameters can be given default values; ref, out, and array parameters cannot have default values. Any optional parameters in a parameter list must appear to the right of the mandatory parameters.- Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
When you don’t know how many arguments you might eventually send to a method, you can declare a(n) ____.   parameter array   A parameter array is a local array declared within the method header using the keyword params. Such a method accepts any number of arguments that are all the same type. - Microsoft Visual C# 2012 Intro to OOP 5e - paraphrased  
🗑
____ describe(s) a situation in which the compiler cannot determine which method to use.   Ambiguous method   When you overload a method, you run the risk of creating ambiguous methods—a situation in which the compiler cannot determine which method to use. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
A(n) ____ constructor is one that takes no arguments.   parameterless   In other words, it is a default constructor. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Programmers say that a value parameter is used for “____” parameter passing.   in   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Betterness rules are similar to ____ conversion rules.   implicit data type   Implicit conversion is the conversion that occurs when a type is automatically changed to another upon assignment. See Data Type Conversions Are Better in This Order - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Object attributes often are called ____ to help distinguish them from other variables you might use.   fields   The data components of a class that differ for each object are stored in instance variables. Instance variables also are called fields to help distinguish them from other variables you might use. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
A(n) ____ parameter is one that is undeclared and that gets its value automatically.   implicit   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
On occasion, you might want a method to be able to alter a value you pass to it. In that case, you can use a(n) ____ parameter or an output parameter.   reference   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
When you use a(n) ____ parameter, any passed variable must have an assigned value.   reference   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
The data components of a class that differ for each object are stored in ____.   instance variables   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
The ____ class access modifier means that access to the class is not limited.   public   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
The classes that support simple data items each contain a method named ____, which provides the details of how the basic data types compare to each other.   CompareTo()   CompareTo() is a method that compares objects; it is overridden in many classes, including String, and in the IComparable interface.- Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
You name an argument using its parameter name and a ____ before the value.   colon   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
The ____ class access modifier means that access is limited to another class to which the class belongs.   private   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
The set of contents of an object’s instance variables also are known as its ____.   state   An object’s state is the set of contents of its fields.- Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
A(n) ____ is a collection of abstract methods (and perhaps other members) that can be used by any class, as long as the class provides a definition to override the interface’s do-nothing, or abstract, method definitions.   interface   Exact Definition from Microsoft Visual C# 2012 Intro to OOP 5e  
🗑
Created when a function is created. A variable within the function would only need to be created one time. Calling the function numerously, from within itself (like Recursion) doesn't require recreation of the variables.   Constructors    
🗑
Called when a function closes and releases the memory being held by a Constructor.   Destructors    
🗑
Both reference and output parameters occupy their own memory locations.   False   Reference parameters, output parameters, and parameter arrays do not occupy their own memory locations. - Microsoft Visual C# 2012 Intro to OOP 5e  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: chaseswafford27
Popular Languages sets