Quiz2 Flashcards
In C#, you can display variable values by using the variable name within a ____ method call.
WriteLine()
You declare a Boolean variable by using type ____.
bool
A(n) ____ involves placing the desired result type in parentheses followed by the variable or constant to be cast.
explicit cast
A program that allows user input is a(n) ____ program.
interactive
A(n) ____ declaration is the statement that names a variable and reserves storage for it.
variable
You can use a prefix or postfix ____ operator (–) that reduces a variable’s value by one.
decrement
In C#, you use the ____ data type to hold a series of characters.
string
The ____ method from the Convert class converts a specified value to a single-precision floating-point number.
ToSingle()
____ are strings of characters expressed within double quotation marks that indicate a format for output.
Standard numeric format strings
A(n) ____ is a named location in computer memory that can hold different values at different points in time.
variable
An instruction to the user to enter data is called a ____.
prompt
A ____ is a string of characters that optionally contains fixed text and contains one or more format items or placeholders for variable values.
format string
Arithmetic operators are called ____ operators when you use two arguments with each operator.
binary
You create a named constant similarly to the way you create a named variable, but by using the keyword ____.
const
____ is the automatic transformation that occurs when a value is assigned to a type with higher precedence.
Explicit cast