Quiz2 Flashcards

1
Q

In C#, you can display variable values by using the variable name within a ____ method call.

A

WriteLine()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

You declare a Boolean variable by using type ____.

A

bool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A(n) ____ involves placing the desired result type in parentheses followed by the variable or constant to be cast.

A

explicit cast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A program that allows user input is a(n) ____ program.

A

interactive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A(n) ____ declaration is the statement that names a variable and reserves storage for it.

A

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You can use a prefix or postfix ____ operator (–) that reduces a variable’s value by one.

A

decrement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In C#, you use the ____ data type to hold a series of characters.

A

string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ____ method from the Convert class converts a specified value to a single-precision floating-point number.

A

ToSingle()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

____ are strings of characters expressed within double quotation marks that indicate a format for output.

A

Standard numeric format strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A(n) ____ is a named location in computer memory that can hold different values at different points in time.

A

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

An instruction to the user to enter data is called a ____.

A

prompt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A ____ is a string of characters that optionally contains fixed text and contains one or more format items or placeholders for variable values.

A

format string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Arithmetic operators are called ____ operators when you use two arguments with each operator.

A

binary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You create a named constant similarly to the way you create a named variable, but by using the keyword ____.

A

const

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

____ is the automatic transformation that occurs when a value is assigned to a type with higher precedence.

A

Explicit cast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You can use the ____ method to accept user input from the keyboard.

A

Console.ReadLine()

17
Q

The += operator is the ____ operator; it adds the operand on the right to the operand on the left and assigns it to the operand on the left in one step.

A

add and assign

18
Q

You use the ____ data type to hold any single character.

A

char

19
Q

A ____ consists of a pair of curly braces containing a number that indicates the desired variable’s position in a list that follows the string.

A

placeholder

20
Q

The ____ method from the Convert class converts a specified value to an 8-bit unsigned integer.

A

ToByte()

21
Q

A(n) ____ number is one that contains decimal positions.

A

floating-point