What accessibility modifier limits method access to the class that contains the method?
Get personalized study reminders at intervals optimized for better retention. Track your progress on this set by creating a folder Or add to an existing folder Text String True
Black box 100 True
Constant Placeholder Logic Compiler Tab order Implicit cast False Handles Comparison True Visible Parse() Operands Interface
const Arguments Floating-point Main menu Camel casing Encapsulation Instance
Variable Variables Explicit cast Interactive Add and assign Pascal casing True Compile Header Assignment Close the previous execution True Unary reportButton_Click () True Text Parent class System.ArrayTypeMismatchException ToString Implicit reference conversion ToString Methods | && Switch True False Or True Pretest User's actions Outer True Scope Governing Loop Pseudocode If Indefinite Enumeration Sentinel False Short-circuit Definite No fall through For True When creating a flowchart or pseudocode representation of a task, a ____ structure is one in which one step follows another unconditionally.Sequence You can use a (n)____________________ loop to execute a body of statements continuously as long as some condition continues to be true.While A Boolean expression is evaluated within every while loop to determine whether the loop body will execute.True The non-conditional Boolean logical AND operator is written as ____.& In C#, the ____ operator is used as an abbreviated version of the if-else statement.Conditional An accumulator variable must be set to ____ before it is used to accumulate a total.0 A (n) ____________________ decision has two possible resulting actions.Dual-alternative or dual alternative You can use the conditional ____ operator within a Boolean expression to determine whether two expressions are both true.(And) && The NOT operator is written as ____.! You begin a 'for' statement with the keyword ____ followed by a set of parentheses.For The conditional OR operator is written as ____.|| Often, totals are ____; that is, summed one at a time in a loop.Accumulated The do-while loop is a (n) ____ loop.Posttest When loops are nested, each pair contains a (n) ____ loop and an outer loop.Inner If you ever find yourself in the midst of executing an infinite loop, you can break out by holding down the ____ key and pressing the C key or the Break (Pause) key.Ctrl The optional keyword ____ is used prior to any action that should occur if the test expression does not match any case.Default When an array passed to a method is passed by ____, the method receives the actual memory address of the array and has access to the actual values in the array elements.Reference An array subscript can be an expression, as long as the expression evaluates to a (n) ____. IntegerReference With ____, if a programmer changes the way in which a method internally works, programs that use that method will not be affected and will not need to be modified.Implementation hiding The ____ accessibility modifier limits method access to the class that contains the method.Private The ____ operator is used to create objects.New When you declare objects, their bool fields initialize to ____.False If you use the keyword modifier ____, you indicate that a method can be called by referring to the class rather than an object from the class.Static The list of values provided for an array is a (n) ____________________.Initializer list When method calls are placed inside other method calls, the calls are ____ method calls.Nested You indicate that a method parameter is an array by placing ____ after the data type in the method's parameter list.[ ] The optional declared ____ for a method (for example, public) sets limits as to how other methods can use it.Accessibility If you do not provide an accessibility modifier for a method, it is private by default.True You can easily navigate through arrays using a for or while loop that varies a subscript from 0 to ____.Array.Length - 1 To more easily incorporate methods into a program, it is common practice to store methods in their own classes and files. Then you can add them into any application that uses them. The resulting compound program is called a (n) ____.Multifile assembly A (n)____________________ is an encapsulated series of statements that carry out a task.Method A method that uses another is called a ____ of the method it uses.Client In C#, an array subscript must be a (n)____.Integer C# supports a ____ statement that you can use to cycle through every array element without using a subscript.Foreach If you create a Click () method that responds to button clicks, it will be ____ by default because it is associated with an object that is a Form.Nonstatic The ____ method can find the array position of a requested value in an array that is sorted with its elements in ascending order.BinarySearch() If a method does not return a value, its return type is ____________________.Void To use the Sort () method, you pass the array name to ____.Array.Sort () With the foreach statement, you provide a temporary _that automatically holds each array value in turn.Index holder The ____________________ property is a member of the System.Array class and automatically holds an array's length.Length A (n)____________________ is an integer contained within square brackets that indicates the position of one of an array's elements.Subscript or index The ____ method arranges array items in ascending order.Sort () A (n) ____ is a device you can use without knowing how it works internally.Black box A method ____________________ is a block of statements that carry out the method's work.Body A search in which each array element is examined in order is called a ____ search.Sequential Arrays are useful when you need to store just one value in memory at a time.True Every method has a (n) ____________________, indicating what kind of value the method will return to any other method that calls it.return type When you instantiate an array, you can choose its location in memory.False The power of arrays becomes apparent when you use subscripts that are variables rather than constant values.True Because the ReadLine () method call can be assigned to a string, its return type is____.String A parameter within a method header is called a (n)____ parameter.Formal If a method expects parameters with different types (for example, an int and a string), then passing arguments to the method in reverse order constitutes a ____ error, and the program will not compile.Syntax You can distinguish each element from the others in an array with a (n) ____.Subscript In C#, an array's elements are numbered beginning with 1.False An array that you can picture as a column of values, and whose elements you can access using a single subscript, is a ____ array.Single-dimensional The set of contents of an object's instance variables also is known as its ____.State A method can return at most one value to a method that calls it.True A (n) ____________________ is a method that instantiates (creates an instance of) an object.Instance method Using private fields within classes is an example of ____, a feature found in all object-oriented languages.Information hiding You use the keyword ____ as a modifier to indicate an output parameter.Out Properties have ____ that specify the statements that execute when a class's fields are accessed.Accessors The ____ class access modifier means that access is limited to the assembly (a group of code modules compiled together) to which the class belongs.Internal In C#, all data types are ____________________.Objects A method's name and parameter list constitute the method's ____.Signature ____ parameters act as aliases, or pseudonyms, for the same memory location occupied by the original variable being passed to a method.Reference Instance variables are often called ____ to help distinguish them from other variables you might use.Fields An implicit, or invisible, ____ reference is passed to every instance method and property accessor.This When you don't know how many arguments you might eventually send to a method, you can declare a (n)____.Parameter array A class that instantiates objects of another prewritten class is known as a class client or class ____.User You cannot use the out or ref keywords when passing an array to a method.False You name an argument in a method call using its parameter name and a ____ before the value.Semicolon The ____ class access modifier means that access is limited to another class to which the class belongs.Private Only nonstatic methods receive a 'this' reference.True A GUI object, such as a Button, is represented as an object that cannot encapsulate any methods.False See MorePlease allow access to your computer’s microphone to use Voice Recording. We can’t access your microphone!Click the icon above to update your browser permissions above and try againExample: Reload the page to try again!Reload Press Cmd-0 to reset your zoomPress Ctrl-0 to reset your zoomIt looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.Please upgrade Flash or install Chrometo use Voice Recording.For more help, see our troubleshooting page. Your microphone is mutedFor help fixing this issue, see this FAQ.What keyword modifier indicates that a method can be called?The public keyword is an access modifier and indicates that this method can be called by any object. The static keyword indicates that this method is a class method as opposed to being an instance method. The void keyword indicates that this method has no return value.
How are the parameters for Aclick () method received?How are the parameters for a Click() method received? The method receives the parameters automatically when the corresponding Button is pressed. The type of an argument in a method call must exactly match the type of the corresponding parameter specified in the method declaration.
What is the return type of the readline method call?The readline method reads one line from the file and returns it as a string. The strings returned by readlines or readline will contain the newline character at the end.
What modifier should you use on a class so that a class in the same package can access it but a class in a different package Cannot access it?The private modifier specifies that the member can only be accessed in its own class. The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.
|