Deck 3: Processing Data

ملء الشاشة (f)
exit full mode
سؤال
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
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
The ____________ contains statements that can potentially throw an exception.

A) break block
B) catch block
C) try block
D) run block
سؤال
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 ____________ 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(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
سؤال
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 ____________ is a field whose value cannot be modified at runtime.

A) literal field
B) constant field
C) sentinel field
D) common field
سؤال
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
سؤال
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
سؤال
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 ____________ is a variable that is declared inside a class but not inside of any method.

A) named constant
B) field
C) namespace
D) property
سؤال
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;
سؤال
The .NET Framework provides a class named ____________ containing numerous methods for performing advanced mathematical operations.

A) Linq
B) Trig
C) Math
D) Calc
سؤال
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 ____________ is a number that is directly written into a program's code.

A) numeric literal
B) binary constant
C) real value
D) source digit
سؤال
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;
سؤال
In a try-catch statement, the ____________ keyword appears immediately after the try block.

A) try
B) catch
C) break
D) continue
سؤال
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;
سؤال
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;
سؤال
The TextBox control is located in the ____________ group of the Toolbox.

A) Common Controls
B) Dialog
C) Components
D) Containers
سؤال
The ____________ operator produces a string that is the combination of the two strings used as its operands.

A) +
B) =
C) *
D) &
سؤال
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
سؤال
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
سؤال
Which one of the following statements declares a string variable named message?

A) message string;
B) string = message;
C) string message;
D) string + message;
سؤال
The ____________ property contains an integer value that indicates the control's position in the tab order.

A) TabIndex
B) FocusIdex
C) OrderIndex
D) IndexValue
سؤال
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 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(n) ____________ control is a rectangular area on a form that accepts keyboard input from the user.

A) Label
B) PictureBox
C) Input
D) TextBox
سؤال
The order in which controls receive the focus is called the ____________.

A) focus index
B) tab order
C) order element
D) tab index
سؤال
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(n) ____________ is a storage location in memory that is represented by a name.

A) declaration
B) sector
C) variable
D) instance
سؤال
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";
سؤال
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;
سؤال
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 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(n) ____________ specifies a variable's name and data type.

A) variable declaration
B) data indicator
C) object tag
D) source entity
سؤال
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;
سؤال
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
سؤال
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";
سؤال
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;
سؤال
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;
سؤال
When declaring multiple variables with one statement, use ____________ to separate the variable names.

A) semicolons (;)
B) underscores (_)
C) asterisks (*)
D) commas (,)
سؤال
You cannot declare two variables with the same ____________ in the same scope.

A) lifetime
B) data type
C) name
D) value
سؤال
The process of dropping a real number's fractional part is called ____________.

A) rounding
B) diminution
C) reduction
D) truncation
سؤال
A symbol used in code for performing calculations is ____________.

A) variable
B) control
C) math operator
D) expression
سؤال
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
سؤال
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(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 ____________ holds only one data value at any given moment in time.

A) program
B) data type
C) method
D) variable
سؤال
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
سؤال
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 ____________ 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
سؤال
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 variable of the ____________ data type can hold whole numbers only.

A) string
B) int
C) double
D) decimal
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
The ____________ data type is used to store any number that might have a fractional part.

A) string
B) int
C) double
D) boolean
سؤال
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
سؤال
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
سؤال
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
سؤال
When a math expression involves an int and a double, the result will be a __________.

A) int
B) decimal
C) string
D) double
سؤال
In computer science, the term ____________ typically means to analyze a string of characters for some purpose.

A) compile
B) decrypt
C) scan
D) parse
سؤال
The ____________ method can be used to convert a string to a decimal.

A) decimal.ToString
B) Parse.decimal
C) ToString.decimal
D) decimal.Parse
سؤال
The values on the right and left sides of a math operator are called ____________.

A) factors
B) derivatives
C) operands
D) identities
سؤال
A(n) ____________ contains operators, constants, and variables, and performs a calculation.

A) math expression
B) algorithm
C) data utility
D) variable
سؤال
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
سؤال
When a math expression involves an int and a decimal, the result will be a ___________.

A) decimal
B) double
C) string
D) int
سؤال
When an operation is performed on two decimal values, the result will be a(n) ____________.

A) string
B) int
C) decimal
D) double
سؤال
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
سؤال
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
سؤال
When an operation is performed on two double values, the result will be a(n) ____________.

A) int
B) double
C) string
D) decimal
سؤال
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
سؤال
When an operation is performed on two int values, the result will be a(n) ____________.

A) decimal
B) double
C) string
D) int
سؤال
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 data value (variable or constant) passed into a method is known as a(n) ____________.

A) argument
B) delimiter
C) descriptor
D) factor
سؤال
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
سؤال
The ____________ method can be used to convert a string to a double.

A) Parse.double
B) double.Parse
C) ToString.double
D) double.ToString
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/176
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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
3
The ____________ contains statements that can potentially throw an exception.

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";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
k this deck
21
The TextBox control is located in the ____________ group of the Toolbox.

A) Common Controls
B) Dialog
C) Components
D) Containers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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) &
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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();
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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 (,)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
k this deck
45
The process of dropping a real number's fractional part is called ____________.

A) rounding
B) diminution
C) reduction
D) truncation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
k this deck
46
A symbol used in code for performing calculations is ____________.

A) variable
B) control
C) math operator
D) expression
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
k this deck
55
A variable of the ____________ data type can hold whole numbers only.

A) string
B) int
C) double
D) decimal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 176 في هذه المجموعة.