Deck 2: Using Data

ملء الشاشة (f)
exit full mode
سؤال
In C#, += adds the operand on the right to the operand on the left and assigns it to the operand on the left in one step.What is the name for this operator?

A) prefix increment
B) postfix increment
C) add and assign
D) increment and assign
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
When using arithmetic operations with operands of dissimilar types, an automatic conversion of nonconforming operands to a unifying type occurs.What is this conversion process called?

A) implicit cast
B) explicit cast
C) manual cast
D) level cast
سؤال
You are performing an arithmetic operation and have placed the desired result type in parentheses followed by a variable to be cast with the result.What is this an example of?

A) implicit casting
B) automatic casting
C) intrinsic casting
D) explicit casting
سؤال
The equal sign (=) is the C# assignment operator.
سؤال
You can concatenate two strings with the plus (+) sign.
سؤال
What uses curly braces containing a number that indicates the desired position for a variable in a list that follows a string used for formatting purposes?

A) format string
B) whitespace
C) namespace
D) placeholder
سؤال
What type of expression has a Boolean value as a result?

A) decrement
B) comparison
C) assignment
D) unifying
سؤال
What type of operator can be used to reduce a variable's value by 1 either at time of evaluation, or after it is evaluated, depending on placement?

A) increment operator
B) sub and assign operator
C) add and assign operator
D) decrement operator
سؤال
What data type can be used to hold a series of characters?

A) int
B) string
C) sbyte
D) char
سؤال
An assignment that is made when a variable is declared is known as what?

A) A definition of the variable
B) An allocation of the variable
C) An assignment to the variable
D) An initialization of the variable
سؤال
What is the term for a named location in computer memory that can hold different values at different points in time?

A) variable
B) constant
C) literal constant
D) alias
سؤال
In the C# statement moneyString = someMoney.ToString("F3"), what is "F3" an example of?

A) literal constant
B) standard numeric format string
C) named constant
D) intrinsic type
سؤال
What is the name for a series of characters used to control the appearance of text output?

A) A declared namespace
B) A set placeholder
C) A defined format string
D) Carefully placed whitespace
سؤال
What type of arithmetic operator has one argument to the left and another argument to the right of the operator?

A) binary
B) complex
C) composite
D) unary
سؤال
What data type can be used to hold any single character, including numbers and non-printing characters?

A) char
B) string
C) bool
D) int
سؤال
An escape sequence is used to represent special characters such as a carriage return or a tab, and always begins with a backslash.
سؤال
someValue++ is an example of the use of the prefix increment operator.
سؤال
What type of number can be described as having varying numbers of significant digits, which contains decimal positions?

A) integer
B) whole
C) floating-point
D) int
سؤال
How is a Boolean variable declared in a program?

A) A char type variable must be declared, optionally followed by a bool value.
B) A bool type variable must be declared, optionally followed by a bool value.
C) An int type variable must be declared, optionally followed by a bool value.
D) A boolean type variable must be declared, optionally followed by a bool value.
سؤال
Operator precedence rules ensure that addition and subtraction always take place prior to multiplication, division, or remainder in an expression.
سؤال
What method from the Convert class can be used to convert a specified value to an 8-bit unsigned integer?

A) ToDecimal()
B) ToSingle()
C) ToInt16()
D) ToByte()
سؤال
What happens when "string1" is added to "string2" using the + sign in the C# programming language?

A) The strings are concatenated together.
B) The strings are converted to integer equivalents and then added together.
C) The result is returned as a Boolean value.
D) A type error occurs, and the program is halted.
سؤال
What statement regarding operator precedence is accurate?

A) Multiplication, division, and addition always take place prior to the calculation of a remainder.
B) Operations that are placed in parentheses are evaluated first.
C) Operations are always evaluated left to right, regardless of the expressions.
D) Addition and subtraction operations are evaluated first.
سؤال
What is a variable declaration, what is its purpose, and what does the declaration include?
سؤال
What method can be used to accept user input from the keyboard on the console?

A) Next()
B) NextLine()
C) ReadLine()
D) Input()
سؤال
What keyword can be used to create a named identifier for a memory location whose contents cannot change?

A) final
B) static
C) const
D) fix
سؤال
What method can be used as an alternative to the Convert class methods to change a string into a number?

A) Cast()
B) Parse()
C) Assign()
D) Write()
سؤال
What are the three floating-point data types in C#? Briefly describe the characteristics of each type.
سؤال
When running a program, an instruction to the user to enter data for the program to process is known by what term?

A) line
B) prompt
C) cue
D) hint
سؤال
What is NOT part of a variable declaration in the C# programming language?

A) The data type the variable will store.
B) The variable's name.
C) An optional assignment operator and assigned value.
D) The variable's associated parent class.
سؤال
What operator is used for exponentials in the C# programming language?

A) ^
B) %
C) *
D) None of the above.
سؤال
How is a named constant different from a variable? How would you create a named constant (and show an example)?
سؤال
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?
سؤال
What are the differences between the prefix increment operator and postfix increment operator?
سؤال
How can you compare strings using the Compare() method?
سؤال
Explain why implicit numeric conversions are necessary and how C# chooses operands to convert.
سؤال
Explain how to use the C# shortcut arithmetic operators -=, *=, and /=.
سؤال
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?
سؤال
What type of program specifically allows and accepts user input?

A) interactive program
B) static program
C) constant program
D) procedural program
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/39
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 2: Using Data
1
In C#, += adds the operand on the right to the operand on the left and assigns it to the operand on the left in one step.What is the name for this operator?

A) prefix increment
B) postfix increment
C) add and assign
D) increment and assign
C
2
When using arithmetic operations with operands of dissimilar types, an automatic conversion of nonconforming operands to a unifying type occurs.What is this conversion process called?

A) implicit cast
B) explicit cast
C) manual cast
D) level cast
A
3
You are performing an arithmetic operation and have placed the desired result type in parentheses followed by a variable to be cast with the result.What is this an example of?

A) implicit casting
B) automatic casting
C) intrinsic casting
D) explicit casting
D
4
The equal sign (=) is the C# assignment operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
5
You can concatenate two strings with the plus (+) sign.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
6
What uses curly braces containing a number that indicates the desired position for a variable in a list that follows a string used for formatting purposes?

A) format string
B) whitespace
C) namespace
D) placeholder
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
7
What type of expression has a Boolean value as a result?

A) decrement
B) comparison
C) assignment
D) unifying
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
8
What type of operator can be used to reduce a variable's value by 1 either at time of evaluation, or after it is evaluated, depending on placement?

A) increment operator
B) sub and assign operator
C) add and assign operator
D) decrement operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
9
What data type can be used to hold a series of characters?

A) int
B) string
C) sbyte
D) char
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
10
An assignment that is made when a variable is declared is known as what?

A) A definition of the variable
B) An allocation of the variable
C) An assignment to the variable
D) An initialization of the variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
11
What is the term for a named location in computer memory that can hold different values at different points in time?

A) variable
B) constant
C) literal constant
D) alias
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
12
In the C# statement moneyString = someMoney.ToString("F3"), what is "F3" an example of?

A) literal constant
B) standard numeric format string
C) named constant
D) intrinsic type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
13
What is the name for a series of characters used to control the appearance of text output?

A) A declared namespace
B) A set placeholder
C) A defined format string
D) Carefully placed whitespace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
14
What type of arithmetic operator has one argument to the left and another argument to the right of the operator?

A) binary
B) complex
C) composite
D) unary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
15
What data type can be used to hold any single character, including numbers and non-printing characters?

A) char
B) string
C) bool
D) int
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
16
An escape sequence is used to represent special characters such as a carriage return or a tab, and always begins with a backslash.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
17
someValue++ is an example of the use of the prefix increment operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
18
What type of number can be described as having varying numbers of significant digits, which contains decimal positions?

A) integer
B) whole
C) floating-point
D) int
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
19
How is a Boolean variable declared in a program?

A) A char type variable must be declared, optionally followed by a bool value.
B) A bool type variable must be declared, optionally followed by a bool value.
C) An int type variable must be declared, optionally followed by a bool value.
D) A boolean type variable must be declared, optionally followed by a bool value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
20
Operator precedence rules ensure that addition and subtraction always take place prior to multiplication, division, or remainder in an expression.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
21
What method from the Convert class can be used to convert a specified value to an 8-bit unsigned integer?

A) ToDecimal()
B) ToSingle()
C) ToInt16()
D) ToByte()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
22
What happens when "string1" is added to "string2" using the + sign in the C# programming language?

A) The strings are concatenated together.
B) The strings are converted to integer equivalents and then added together.
C) The result is returned as a Boolean value.
D) A type error occurs, and the program is halted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
23
What statement regarding operator precedence is accurate?

A) Multiplication, division, and addition always take place prior to the calculation of a remainder.
B) Operations that are placed in parentheses are evaluated first.
C) Operations are always evaluated left to right, regardless of the expressions.
D) Addition and subtraction operations are evaluated first.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
24
What is a variable declaration, what is its purpose, and what does the declaration include?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
25
What method can be used to accept user input from the keyboard on the console?

A) Next()
B) NextLine()
C) ReadLine()
D) Input()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
26
What keyword can be used to create a named identifier for a memory location whose contents cannot change?

A) final
B) static
C) const
D) fix
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
27
What method can be used as an alternative to the Convert class methods to change a string into a number?

A) Cast()
B) Parse()
C) Assign()
D) Write()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
28
What are the three floating-point data types in C#? Briefly describe the characteristics of each type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
29
When running a program, an instruction to the user to enter data for the program to process is known by what term?

A) line
B) prompt
C) cue
D) hint
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
30
What is NOT part of a variable declaration in the C# programming language?

A) The data type the variable will store.
B) The variable's name.
C) An optional assignment operator and assigned value.
D) The variable's associated parent class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
31
What operator is used for exponentials in the C# programming language?

A) ^
B) %
C) *
D) None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
32
How is a named constant different from a variable? How would you create a named constant (and show an example)?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
33
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
34
What are the differences between the prefix increment operator and postfix increment operator?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
35
How can you compare strings using the Compare() method?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
36
Explain why implicit numeric conversions are necessary and how C# chooses operands to convert.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
37
Explain how to use the C# shortcut arithmetic operators -=, *=, and /=.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
39
What type of program specifically allows and accepts user input?

A) interactive program
B) static program
C) constant program
D) procedural program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 39 في هذه المجموعة.