EXAM 1 CS 160 (COMPLETION)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

dummy value

A sentinel value is a(n) ____________. It is a value that should not be processed.

infinite loop

A(n) ____________ is a loop that has no provisions for termination.

variable

A(n) ____________ represents an area in the computer memory where a value of a particular data type can be stored. When you declare a(n) ____________, you allocate memory for that data item in your program.

method

All programs consist of at least one ____________.

25

Avoid writing long methods. Consider refactoring when the method exceeds ____________ lines of code

value

Call by ____________ is the default parameter type.

value returning

Calls to ____________ methods must be placed at a location in your code where the value could be accepted when the method is finished.

boolean

Conditional expressions produce a(n) ____________ result.

private

Data members should be defined with an access mode of ____________.

prototype

During the design phase, it is important to develop a(n) ____________ illustrating what the desired final output should be.

instantiating

Every time you declare a variable in the C# language, you are actually ____________ a class.

ToString()

If berber is an object, the statement Console.Write(berber); automatically invokes the ____________ method.

null

Inside the for statement, when you place a semicolon after the parentheses without anything to the left of it, it indicates that no statement or a(n) ____________ statement is associated with the initialize portion.

identifiers

One of the rules for creating a(n) ____________ is to use a combination of alphabetic characters, numeric digits and the underscore character.

ReadKey()

One option to holding the screen at the end of a program is to invoke Console.Read( ). Another option is to call ____________. It obtains the next character or function key from the user.

verbatim

The @ symbol in the following string, @ "C:\MyProjects", is called a(n) ____________ character.

modulus operator

The ____________ is sometimes referred to as the remainder operator.

TryParse()

The ____________ method will convert a string value sent as an argument to its equivalent numeric value, but it doesn't throw an exception when the conversion fails.

for

The ____________ statement is a pretest form of loop which is considered a specialized form of the while statement and is usually associated with counter-controlled types of loops;

return

The ____________ type is always listed immediately preceding the name of the method.

Show()

The _____________ method of the MessageBox class displays a predefined dialog box that can contain text, captions for the title bar, special buttons, and icons.

assignment statements

The body of the constructor methods consist primarily of ____________.

initialization

The for statement is a compact method of writing the loops that can be written using while; it packages together the ____________, test, and update all on one line.

do...while

The only posttest loop structure available with C# is the ____________ loop structure.

visible

The term ____________ is often used to indicate where an identifier has meaning and can be used

method

When naming a(n) ____________, use an action verb phrase.

camel coding

When naming local variable identifiers and parameters, use ____________.

const

When you add the keyword ____________ to a declaration, it becomes a constant.

check endpoints

With counter controlled loops, it is important to think through and ____________ to ensure they have been taken into consideration. You should always check the initial and final values of the loop control variable and verify that you get the expected results at the boundaries.

keywords

____________ are predefined reserved identifiers that have special meanings to the compiler.

unicode

____________ is the universal character-encoding schema that provides a unique number for every character in many different languages.

void

____________ is used to indicate that no value is being returned from a method.

sentinel controlled

____________ loops are often used for inputting data when you do not know the exact number of values to be entered.

casting

____________ makes a variable temporarily behave as if it is a different type.

false

if (int.TryParse(inStringValue, out integerValue) == false) Console.WriteLine("Invalid input - 0 recorded for end value"); If a character such as "b" is entered by the user and stored in inStringValue, TryParse( ) returns ____________.


Set pelajaran terkait

C724 Information Systems Management

View Set

Pharm - PREP U Psychotic Disorder Practice Q's

View Set

Conformity: The Bystander-Effect

View Set

Ch. 4 Learning Curve Micro Economics

View Set

General Real Property Law: Liens

View Set

Learning Curve: 12b Social Influence

View Set

6. Observational Studies and Experiments (Quiz)

View Set