Exam 2: Using Data

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Operators that have only one argument, such as the prefix and postfix increment operators, are called ____________________ operators.

(Short Answer)
4.8/5
(41)

What are the nine integral data types in C# and how do you decide which is the most appropriate to use in a particular situation?

(Essay)
4.9/5
(37)

You can concatenate two strings with the plus ( + ) sign.

(True/False)
4.9/5
(27)
Match each item with a statement below:
A 16-bit coding scheme for characters
Unicode
Describes the format and size (amount of memory occupied) of a data item and defines a set of relevant operations
data type
A set of rules that determines how to format values such as money and dates that can be represented differently based on locale and tradition
integral data type
Correct Answer:
Verified
Premises:
Responses:
A 16-bit coding scheme for characters
Unicode
Describes the format and size (amount of memory occupied) of a data item and defines a set of relevant operations
data type
A set of rules that determines how to format values such as money and dates that can be represented differently based on locale and tradition
integral data type
Can hold only one of two values: true or false
named constant
Rules that determine the order in which parts of a mathematical expression are evaluated
precision specifier
Stores a whole number
operator precedence
can compare numbers or strings and perform evaluations.
comparison operator
Controls the number of significant digits or zeros to the right of a decimal point
culture
An identifier whose contents cannot change
Boolean variable
(Matching)
4.8/5
(39)

Giving a value to a variable, as in the statement someVariable = 5 , is called a(n) ____________________.

(Short Answer)
4.9/5
(32)

A data item is ____________________ when it cannot be changed after a program is compiled.

(Short Answer)
4.7/5
(27)

Explain how to use the C# shortcut arithmetic operators -= , *= , and /= .

(Essay)
4.8/5
(39)

Operator precedence rules ensure that addition and subtraction always take place prior to multiplication, division, or remainder in an expression.

(True/False)
4.9/5
(35)

An expression containing a(n) ____ operator has a Boolean value.

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.8/5
(35)

What are the three floating-point data types in C#? Briefly describe the characteristics of each type.

(Essay)
4.8/5
(36)

To purposefully override the unifying type in an arithmetic operation, use a(n) ____ by placing the desired result type in parentheses followed by the variable or constant to be cast.

(Multiple Choice)
4.8/5
(39)

An escape sequence is used to represent special characters such as a carriage return or a tab, and always begins with a backslash.

(True/False)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(34)

Operators are used to manipulate values in a program. For example, in the expression X + Y, + is an operator. The values that operators use, such as X and Y, are called ____________________.

(Short Answer)
4.8/5
(38)

What is the purpose of the ReadLine() method? How would you use it with a variable of type string ? How would you use it with a variable of type double ?

(Essay)
5.0/5
(38)

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.

(Multiple Choice)
4.8/5
(50)

If a value is given to a variable at the time it is declared, this is called a(n) ____.

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(32)

What is an enumeration and what are the advantages of creating an enumeration type? Show an example of an enumeration definition.

(Essay)
4.8/5
(42)
Showing 21 - 40 of 42
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)