Deck 3: Processing Data
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/176
Play
Full screen (f)
Deck 3: Processing Data
1
A numeric literal such as 3.5 is considered by the compiler to be a ____________.
A) real number
B) floating-point value
C) decimal literal
D) double literal
A) real number
B) floating-point value
C) decimal literal
D) double literal
D
2
If a statement in the try block throws an exception, the program immediately jumps to a ____________.
A) catch block
B) try block
C) run block
D) break block
A) catch block
B) try block
C) run block
D) break block
A
3
The ____________ contains statements that can potentially throw an exception.
A) break block
B) catch block
C) try block
D) run block
A) break block
B) catch block
C) try block
D) run block
C
4
Which one of the following statements initializes a variable with an integer literal?
A) int score = 2500;
B) decimal total = 156.78m;
C) double rate = 0.00435;
D) string name = "Michelle";
A) int score = 2500;
B) decimal total = 156.78m;
C) double rate = 0.00435;
D) string name = "Michelle";
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
5
A ____________ is a identifier for a value that cannot be modified during the program's execution.
A) sentinel
B) literal
C) keyword
D) named constant
A) sentinel
B) literal
C) keyword
D) named constant
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
6
A(n) ____________ specifies how a class member can be accessed by code located outside the class.
A) variable name
B) access modifier
C) namespace
D) class name
A) variable name
B) access modifier
C) namespace
D) class name
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
7
If you do not initialize a(n) ____________ field, it begins with a special value known as null.
A) int
B) decimal
C) double
D) string
A) int
B) decimal
C) double
D) string
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
8
A ____________ is a field whose value cannot be modified at runtime.
A) literal field
B) constant field
C) sentinel field
D) common field
A) literal field
B) constant field
C) sentinel field
D) common field
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
9
A numeric literal that is assumed to be an integer is called a(n) ____________.
A) real number
B) integer literal
C) natural literal
D) common value
A) real number
B) integer literal
C) natural literal
D) common value
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
10
Appending the letter M or m to a numeric literal causes the number to be considered a ____________.
A) monetary literal
B) double literal
C) decimal literal
D) mnemonic literal
A) monetary literal
B) double literal
C) decimal literal
D) mnemonic literal
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
11
The ____________ is commonly used in financial applications because it can store real numbers with a large number of digits to the right of the decimal point.
A) string
B) int
C) double
D) decimal
A) string
B) int
C) double
D) decimal
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
12
A ____________ is a variable that is declared inside a class but not inside of any method.
A) named constant
B) field
C) namespace
D) property
A) named constant
B) field
C) namespace
D) property
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
13
Which one of the following statements initializes a variable with a decimal literal?
A) string displayPrice = "$14.99";
B) decimal budget = 450m;
C) int inventory = 150;
D) double volume = 30.25;
A) string displayPrice = "$14.99";
B) decimal budget = 450m;
C) int inventory = 150;
D) double volume = 30.25;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
14
The .NET Framework provides a class named ____________ containing numerous methods for performing advanced mathematical operations.
A) Linq
B) Trig
C) Math
D) Calc
A) Linq
B) Trig
C) Math
D) Calc
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
15
When an exception is thrown, an object known as a(n) ____________ is created in memory.
A) exception object
B) debug variable
C) try object
D) state object
A) exception object
B) debug variable
C) try object
D) state object
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
16
A ____________ is a number that is directly written into a program's code.
A) numeric literal
B) binary constant
C) real value
D) source digit
A) numeric literal
B) binary constant
C) real value
D) source digit
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
17
Assuming an application has an exception object named ex, which one of the following statements would cause the exception's default error message to be displayed in a message box?
A) MessageBox(ex.Message);
B) ex.Message = MessageBox.Text;
C) MessageBox.Show(ex.Message);
D) MessageBox.Text = ex.Message;
A) MessageBox(ex.Message);
B) ex.Message = MessageBox.Text;
C) MessageBox.Show(ex.Message);
D) MessageBox.Text = ex.Message;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
18
In a try-catch statement, the ____________ keyword appears immediately after the try block.
A) try
B) catch
C) break
D) continue
A) try
B) catch
C) break
D) continue
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
19
Which one of the following statements declares a named constant named GRAVITY with an initialization value of 9.8?
A) double GRAVITY = 9.8 const;
B) const double GRAVITY = 9.8;
C) double const GRAVITY = 9.8;
D) double GRAVITY const = 9.8;
A) double GRAVITY = 9.8 const;
B) const double GRAVITY = 9.8;
C) double const GRAVITY = 9.8;
D) double GRAVITY const = 9.8;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
20
Which one of the following statements initializes a variable with a double literal?
A) string modelNumber = "R2C32";
B) double percentage = 23.59;
C) int width = 150;
D) decimal bonus = 0.99m;
A) string modelNumber = "R2C32";
B) double percentage = 23.59;
C) int width = 150;
D) decimal bonus = 0.99m;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
21
The TextBox control is located in the ____________ group of the Toolbox.
A) Common Controls
B) Dialog
C) Components
D) Containers
A) Common Controls
B) Dialog
C) Components
D) Containers
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
22
The ____________ operator produces a string that is the combination of the two strings used as its operands.
A) +
B) =
C) *
D) &
A) +
B) =
C) *
D) &
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
23
Clicking View and then Tab Order on the Visual Studio menu bar will cause the form to be displayed in __________ mode.
A) design
B) tab order selection
C) default focus
D) compile
A) design
B) tab order selection
C) default focus
D) compile
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
24
Fundamental types of data, such as integers and real numbers are known as ____________.
A) fundamental data types
B) primitive data types
C) natural data types
D) basic data types
A) fundamental data types
B) primitive data types
C) natural data types
D) basic data types
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
25
Which one of the following statements declares a string variable named message?
A) message string;
B) string = message;
C) string message;
D) string + message;
A) message string;
B) string = message;
C) string message;
D) string + message;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
26
The ____________ property contains an integer value that indicates the control's position in the tab order.
A) TabIndex
B) FocusIdex
C) OrderIndex
D) IndexValue
A) TabIndex
B) FocusIdex
C) OrderIndex
D) IndexValue
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
27
When a user types something into a TextBox control, the input is stored in the control's ____________ property.
A) Text
B) Input
C) String
D) Value
A) Text
B) Input
C) String
D) Value
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
28
A variable of the ____________ data type can hold any sequence of characters, such as a person's name, address, or password.
A) int
B) double
C) string
D) decimal
A) int
B) double
C) string
D) decimal
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
29
A(n) ____________ control is a rectangular area on a form that accepts keyboard input from the user.
A) Label
B) PictureBox
C) Input
D) TextBox
A) Label
B) PictureBox
C) Input
D) TextBox
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
30
The order in which controls receive the focus is called the ____________.
A) focus index
B) tab order
C) order element
D) tab index
A) focus index
B) tab order
C) order element
D) tab index
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
31
Which one of the following statements clears the Text property of a TextBox control named addressTextBox?
A) addressTextBox.Text = Text.Clear;
B) addressTextBox.Text = "";
C) addressTextBox = Nothing;
D) addressTextBox.Empty();
A) addressTextBox.Text = Text.Clear;
B) addressTextBox.Text = "";
C) addressTextBox = Nothing;
D) addressTextBox.Empty();
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
32
A(n) ____________ is a storage location in memory that is represented by a name.
A) declaration
B) sector
C) variable
D) instance
A) declaration
B) sector
C) variable
D) instance
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
33
Assuming a string variable named movieTitle has already been declared, which one of the following statements combines the strings "The " and "Hobbit" and then assigns the resulting string to the variable?
A) movieTitle("The ", "Hobbit");
B) "The " + "Hobbit" = moveTitle;
C) movieTitle = "The " & "Hobbit";
D) movieTitle = "The " + "Hobbit";
A) movieTitle("The ", "Hobbit");
B) "The " + "Hobbit" = moveTitle;
C) movieTitle = "The " & "Hobbit";
D) movieTitle = "The " + "Hobbit";
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
34
Which one of the following statements assigns the value contained in the Text property of a TextBox control named ageTextBox to the Text Property of a Label control named ageLabel?
A) ageLabel = ageTextBox;
B) ageTextBox.Text = ageLabel.Text;
C) ageLabel.Text = ageTextBox.Text;
D) ageTextBox = ageLabel;
A) ageLabel = ageTextBox;
B) ageTextBox.Text = ageLabel.Text;
C) ageLabel.Text = ageTextBox.Text;
D) ageTextBox = ageLabel;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
35
Inside a method, a variable's declaration statement must appear ____________ any other statements that use the variable.
A) after
B) before
C) near
D) in
A) after
B) before
C) near
D) in
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
36
A common operation performed on strings is ____________, or appending one string to the end of another string.
A) extending
B) combination
C) concatenation
D) affixing
A) extending
B) combination
C) concatenation
D) affixing
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ____________ specifies a variable's name and data type.
A) variable declaration
B) data indicator
C) object tag
D) source entity
A) variable declaration
B) data indicator
C) object tag
D) source entity
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
38
Which one of the following is the general format for a variable declaration statement?
A) VariableName DataType;
B) DataType VariableName;
C) DataName VariableType;
D) NameType VaraibleData;
A) VariableName DataType;
B) DataType VariableName;
C) DataName VariableType;
D) NameType VaraibleData;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
39
When an application is running, the control having the ____________ is the one that receives the user's keyboard input.
A) focus
B) scope
C) data
D) tab index
A) focus
B) scope
C) data
D) tab index
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
40
Assuming a string variable named city has already been declared, which one of the following statements assigns the string literal "Vienna" to the variable?
A) "Vienna" = city;
B) city + "Vienna";
C) city("Vienna");
D) city = "Vienna";
A) "Vienna" = city;
B) city + "Vienna";
C) city("Vienna");
D) city = "Vienna";
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
41
Which one of the following statements declares the string variables city, state, and zip using a single declaration statement?
A) string city, state, zip;
B) string city, string state, string zip;
C) string city; state; zip;
D) string city_state_zip;
A) string city, state, zip;
B) string city, string state, string zip;
C) string city; state; zip;
D) string city_state_zip;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
42
Which one of the following assignment statements will cause a syntax error because of mismatching data types?
A) double density = 34.12;
B) double length = 0.5;
C) double bonus = 24.95m;
D) double depth = 1200;
A) double density = 34.12;
B) double length = 0.5;
C) double bonus = 24.95m;
D) double depth = 1200;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
43
When declaring multiple variables with one statement, use ____________ to separate the variable names.
A) semicolons (;)
B) underscores (_)
C) asterisks (*)
D) commas (,)
A) semicolons (;)
B) underscores (_)
C) asterisks (*)
D) commas (,)
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
44
You cannot declare two variables with the same ____________ in the same scope.
A) lifetime
B) data type
C) name
D) value
A) lifetime
B) data type
C) name
D) value
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
45
The process of dropping a real number's fractional part is called ____________.
A) rounding
B) diminution
C) reduction
D) truncation
A) rounding
B) diminution
C) reduction
D) truncation
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
46
A symbol used in code for performing calculations is ____________.
A) variable
B) control
C) math operator
D) expression
A) variable
B) control
C) math operator
D) expression
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
47
A variable's ____________ is the time period during which the variable exists in memory while the program is executing.
A) span
B) lifetime
C) instance
D) latency
A) span
B) lifetime
C) instance
D) latency
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
48
Which one of the following statements initializes the color variable with the string "red"?
A) color = "red";
B) string color = "red";
C) "red" = string color;
D) string color("red");
A) color = "red";
B) string color = "red";
C) "red" = string color;
D) string color("red");
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
49
A(n) ____________ variable belongs to the method in which it is declared, and only statements inside that method can access the variable.
A) limited
B) local
C) global
D) static
A) limited
B) local
C) global
D) static
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
50
A ____________ holds only one data value at any given moment in time.
A) program
B) data type
C) method
D) variable
A) program
B) data type
C) method
D) variable
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
51
Programmers use the term ____________ to describe the part of a program in which a variable may be accessed.
A) scope
B) lifetime
C) method
D) accessibility
A) scope
B) lifetime
C) method
D) accessibility
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
52
Which one of the following assignment statements will cause an error because of mismatching data types?
A) decimal cost = 0.99m;
B) decimal retail = 100;
C) decimal wholesale = 50.0;
D) decimal fee = 0.01m;
A) decimal cost = 0.99m;
B) decimal retail = 100;
C) decimal wholesale = 50.0;
D) decimal fee = 0.01m;
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
53
A ____________ variable's scope begins at the variable's declaration and ends at the end of the method in which the variable is declared.
A) global
B) static
C) local
D) basic
A) global
B) static
C) local
D) basic
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
54
When coding most statements, you can press the ____________ key when you reach an appropriate point to continue the statement on the next line.
A) Enter
B) Tab
C) X
D) Shift
A) Enter
B) Tab
C) X
D) Shift
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
55
A variable of the ____________ data type can hold whole numbers only.
A) string
B) int
C) double
D) decimal
A) string
B) int
C) double
D) decimal
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
56
You cannot assign a double or a decimal value to an int variable because such an assignment could result in ____________.
A) buffer overflow
B) a runtime error
C) a loss of data
D) value sharing conflicts
A) buffer overflow
B) a runtime error
C) a loss of data
D) value sharing conflicts
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
57
You can use a(n) ____________ to explicitly convert a value from one numeric data type to another, even if the conversion might result in a loss of data.
A) cast operator
B) conversion formula
C) data binding
D) explicit operator
A) cast operator
B) conversion formula
C) data binding
D) explicit operator
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
58
You can assign a value to a variable only if the value is compatible with the variable's ____________.
A) data type
B) name
C) scope
D) lifetime
A) data type
B) name
C) scope
D) lifetime
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
59
One way to make sure a variable has been assigned a value is to ___________ the variable with a value when you declare it.
A) initialize
B) instantiate
C) concatenate
D) compare
A) initialize
B) instantiate
C) concatenate
D) compare
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
60
The ____________ data type is used to store any number that might have a fractional part.
A) string
B) int
C) double
D) boolean
A) string
B) int
C) double
D) boolean
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
61
C# has a special set of operators known as ____________ that change the value of a variable without having to type the variable name twice.
A) identity operators
B) combined assignment operators
C) quick-change operators
D) assessment operators
A) identity operators
B) combined assignment operators
C) quick-change operators
D) assessment operators
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
62
The ____________ method can be used to convert a string to an int.
A) int.Parse
B) Parse.int
C) Parse.ToString.int
D) ToString.Parse.int
A) int.Parse
B) Parse.int
C) Parse.ToString.int
D) ToString.Parse.int
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
63
The programming language's ____________ dictates which operations are performed first in a mathematical expression.
A) least significant value
B) order of operations
C) compiler version
D) operator position
A) least significant value
B) order of operations
C) compiler version
D) operator position
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
64
When a math expression involves an int and a double, the result will be a __________.
A) int
B) decimal
C) string
D) double
A) int
B) decimal
C) string
D) double
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
65
In computer science, the term ____________ typically means to analyze a string of characters for some purpose.
A) compile
B) decrypt
C) scan
D) parse
A) compile
B) decrypt
C) scan
D) parse
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
66
The ____________ method can be used to convert a string to a decimal.
A) decimal.ToString
B) Parse.decimal
C) ToString.decimal
D) decimal.Parse
A) decimal.ToString
B) Parse.decimal
C) ToString.decimal
D) decimal.Parse
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
67
The values on the right and left sides of a math operator are called ____________.
A) factors
B) derivatives
C) operands
D) identities
A) factors
B) derivatives
C) operands
D) identities
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
68
A(n) ____________ contains operators, constants, and variables, and performs a calculation.
A) math expression
B) algorithm
C) data utility
D) variable
A) math expression
B) algorithm
C) data utility
D) variable
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
69
Please examine the following code sample: int distance; // Declare distance as an int
Double half; // Declare half as a double
Distance = 35; // Assign 35 to distance
Half = distance / 2; // Calculate half the distance
What value is assigned to the half variable?
A) 70
B) 17.5
C) 18
D) 17
Double half; // Declare half as a double
Distance = 35; // Assign 35 to distance
Half = distance / 2; // Calculate half the distance
What value is assigned to the half variable?
A) 70
B) 17.5
C) 18
D) 17
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
70
When a math expression involves an int and a decimal, the result will be a ___________.
A) decimal
B) double
C) string
D) int
A) decimal
B) double
C) string
D) int
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
71
When an operation is performed on two decimal values, the result will be a(n) ____________.
A) string
B) int
C) decimal
D) double
A) string
B) int
C) decimal
D) double
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
72
A math expression involving a double and a(n) ____________ is not allowed unless a cast operator is used to convert one of the operands.
A) int
B) double
C) decimal
D) All of these
A) int
B) double
C) decimal
D) All of these
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
73
Parts of a mathematical expression may be grouped with ____________ to force some operations to be performed before others.
A) parentheses
B) double quotation marks
C) braces
D) semicolons
A) parentheses
B) double quotation marks
C) braces
D) semicolons
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
74
When an operation is performed on two double values, the result will be a(n) ____________.
A) int
B) double
C) string
D) decimal
A) int
B) double
C) string
D) decimal
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
75
A(n) ____________ is an unexpected error that occurs while a program is running, causing the program to halt if the error is not properly dealt with.
A) bug
B) exception
C) logic error
D) illegal operation
A) bug
B) exception
C) logic error
D) illegal operation
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
76
When an operation is performed on two int values, the result will be a(n) ____________.
A) decimal
B) double
C) string
D) int
A) decimal
B) double
C) string
D) int
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
77
To convert a the contents of a string to any of the numeric data types, we use a family of methods in the .NET Framework known as the ____________.
A) Convert methods
B) itoa methods
C) ToString methods
D) Parse methods
A) Convert methods
B) itoa methods
C) ToString methods
D) Parse methods
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
78
A data value (variable or constant) passed into a method is known as a(n) ____________.
A) argument
B) delimiter
C) descriptor
D) factor
A) argument
B) delimiter
C) descriptor
D) factor
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
79
In C#, all variables have a(n) ____________ method that you can call to convert the variable's value to a string.
A) ToString
B) Convert
C) Parse
D) Text
A) ToString
B) Convert
C) Parse
D) Text
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck
80
The ____________ method can be used to convert a string to a double.
A) Parse.double
B) double.Parse
C) ToString.double
D) double.ToString
A) Parse.double
B) double.Parse
C) ToString.double
D) double.ToString
Unlock Deck
Unlock for access to all 176 flashcards in this deck.
Unlock Deck
k this deck