Deck 8: More About Processing Data

ملء الشاشة (f)
exit full mode
سؤال
Look at the following code sample: string tree = "Pear";
Char letter = tree[3];
Which one of the following values is stored in the letter variable?

A) P
B) e
C) a
D) r
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
C# allows you to access the individual characters in a string using ____________.

A) switch statements
B) subscript notation
C) named constants
D) character literals
سؤال
____________ are spaces that appear at the beginning of a string.

A) Leading spaces
B) Empty spaces
C) Indentations
D) Tabbed spaces
سؤال
The ____________ methods return an integer value indicating the starting position of a substring within a string object.

A) IndexOf and LastIndexOf
B) Insert and Remove
C) ToUpper and ToLower
D) Substring and Trim
سؤال
The ____________ can be used to retrieve a specific set of characters from a string.

A) Insert method
B) Substring method
C) Trim method
D) Copy method
سؤال
Which one of the following character testing methods would you use to verify whether or not a password contains spaces?

A) char.IsPunctuation
B) char.IsUpper
C) char.IsWhiteSpace
D) char.IsLetterOrDigit
سؤال
Which one of the character testing methods would you use to determine that a string contains only letters and numbers?

A) char.IsLetterOrDigit
B) char.IsUpper
C) char.IsPunctuation
D) char.IsWhiteSpace
سؤال
A string object's ____________ method returns true if the substring being searched for is contained within the string; otherwise it returns false.

A) Contains
B) Substring
C) IndexOf
D) Insert
سؤال
Subscript notation provides ____________ access to individual characters in a string.

A) write-only
B) local
C) read-only
D) global
سؤال
In C#, ____________ are enclosed in single quotation marks.

A) character literals
B) numeric literals
C) string literals
D) Boolean literals
سؤال
To convert a char variable to a string, call its ____________ method.

A) CompareTo
B) ToString
C) Equals
D) GetType
سؤال
A string within a string is called a(n) ____________.

A) thread
B) nested string
C) strand
D) substring
سؤال
Which one of the character testing methods would you use to determine if a sentence contains capital letters?

A) char.IsUpper
B) char.IsLetterOrDigit
C) char.IsPunctuation
D) char.IsWhiteSpace
سؤال
The ____________ method returns true if a string object ends with a specific substring value, or false otherwise.

A) LastIndexOf
B) Substring
C) TrimEnd
D) EndsWith
سؤال
The ____________ data type is used to store individual characters.

A) bool
B) string
C) char
D) int
سؤال
Which one of the following character testing methods would you use to determine if a character is a number in the range 0 through 9?

A) char.IsDigit
B) char.IsLower
C) char.IsPunctuation
D) char.IsWhiteSpace
سؤال
The ____________ method places a string inside another string.

A) Remove
B) Trim
C) Insert
D) Substring
سؤال
The ____________ method returns the lowercase equivalent of a character.

A) char.IsLower
B) char.ToLower
C) this.Lowercase
D) this.char.Convert
سؤال
____________ are spaces that appear at the end of a string.

A) Hanging spaces
B) Trailing spaces
C) Padded spaces
D) Suffix spaces
سؤال
The ____________ method returns true if the string object starts with the substring, or false otherwise.

A) Contains
B) TrimStart
C) StartsWith
D) IndexOf
سؤال
The ____________ method removes specified characters from a string.

A) Delete
B) Extract
C) TrimEnd
D) Remove
سؤال
A(n) ____________ is an object you can create that contains one or more variables known as fields.

A) object
B) structure
C) list
D) container
سؤال
Before you can use a structure to store data, you must create a(n) ____________ of the structure in memory.

A) copy
B) identity
C) instance
D) field
سؤال
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
List birdList = new List();
Pet parrot = new Pet();
Which one of the following statements adds the Pet structure named parrot to the List object named birdList?

A) birdList.Add(parrot);
B) Add(birdList.parrot);
C) birdList[parrot];
D) birdList[0] = parrot;
سؤال
Before tokenizing a string, you should use the ____________ method to remove leading and/or trailing white-space characters and prevent them from being included in the first and last tokens.

A) Trim
B) Remove
C) Split
D) Substring
سؤال
In programming terms, ____________ are a series of words or other items of data contained in a string that are separated by spaces, commas, or other characters.

A) tokens
B) lexicons
C) delimiters
D) key values
سؤال
A(n) ____________ is a data type you can create by specifying a set of symbolic names that belong to that data type.

A) class
B) structure
C) namespace
D) enumerated data type
سؤال
Structure objects are normally passed ____________ to a method.

A) by reference
B) globally
C) by value
D) locally
سؤال
Assuming that cat1 and cat2 are both instances of the Pet structure, which one of the following statements copies cat1 to cat2?

A) cat1 = cat2;
B) cat2 = cat1;
C) cat1(cat2);
D) cat1 = new cat2;
سؤال
In order to compare two structure objects, you must compare the individual ____________ of each object.

A) variables
B) fields
C) data types
D) objects
سؤال
Look at the following code sample that creates an array of Pet structure objects: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Const int SIZE = 4;
Pet[] cats = new Pet[SIZE];
Which one of the following statements assigns the string "Pickles" to the name member of cats[2]?

A) "Pickles" = cats[2];
B) cats[2].name = "Pickles";
C) cats.name[2] = "Pickles";
D) cats[2].name("Pickles");
سؤال
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Pet hound = new Pet();
Which one of the following statements assigns the string "Beagle" to the hound object's type field?

A) hound = new type("Beagle");
B) type = "Beagle";
C) hound.type = "Beagle";
D) Pet.hound.type("Beagle");
سؤال
The character that separates tokens is known as a(n) ____________.

A) sentinel
B) article
C) delimiter
D) separator
سؤال
When the data in a spreadsheet is exported using the ____________ file format, each row is written to a line, and the values of the cells are separated by commas.

A) comma separated value, or CSV
B) extensible markup language, or XML
C) document object model, or DOM
D) delimiter separated value, or DSV
سؤال
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Which one of the following statements declares a Pet structure variable named hound and initializes the object's fields with their default values?

A) new Pet = hound;
B) Pet hound = new Pet();
C) hound = new Pet();
D) Pet hound;
سؤال
In C#, string objects have a method named ____________ that is used to tokenize strings.

A) Tokenize
B) Delimit
C) Break
D) Split
سؤال
The process of dividing a string into tokens is known as ____________.

A) parsing
B) tokenizing
C) object splitting
D) threading
سؤال
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
The identifiers Vanilla, Strawberry, and Chocolate, which appear inside the braces, are known as ____________.

A) constants
B) references
C) mnemonics
D) enumerators
سؤال
The ____________ method removes all leading and trailing spaces from a string.

A) Remove
B) NoSpaces
C) Trim
D) RemoveSpace
سؤال
When the items in two data structures are related by their indexes, it is said that a(n) ____________ exists between the data structures.

A) exclusive association
B) logical connection
C) parallel relationship
D) binary link
سؤال
Enumerators and enum variables can be compared directly with ____________ values.

A) int
B) decimal
C) double
D) string
سؤال
Character testing methods, such as char.IsLetter, return a Boolean value of
سؤال
The Substring method returns a string.
سؤال
Because char variables can hold only one character, they are not assignment-compatible with string variables.
سؤال
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Which of the following statements assigns the Flavor enumerated type value to The integer variable?

A) int n = Flavor.Strawberry.ToInteger();
B) int n = Strawberry.IntValue;
C) int n = (Flavor) Strawberry;
D) int n = (int) Flavor.Strawberry;
سؤال
In code, you can determine the number of images stored in an ImageList control by getting the value of the control's ____________ property.

A) Image.List.Max
B) Size.Get
C) Images.Count
D) GetLastImage
سؤال
You can convert an enumerator to its underlying integer type by using a(n) ____________.

A) binary operator
B) cast operator
C) reference variable
D) assignment statement
سؤال
If you pass an uppercase letter to the char.ToLower method, the character it returns will be unchanged.
سؤال
The ____________ is a container that can hold multiple images.

A) ImageList control
B) PictureBox control
C) Panel control
D) Bitmap
سؤال
You can use a subscript expression such as name[3]='A' to change the value of a character within a string.
سؤال
Which one of the following is not a valid enumerated type declaration?

A) enum Iron { Melting = 2795, Boiling = 4982 }
B) enum SpeedLimit { City = 35, Highway = 60 }
C) enum Temperature { Cold = 20, Hot = 90 }
D) enum Voltage { Orange = 3.3, Green = 5.0 }
سؤال
A variable of the char data type can hold up to 256 characters at a time.
سؤال
The string data type has several methods that allow you to search for substrings.
سؤال
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Flavor iceCreamFlavor = Flavor.Strawberry;
MessageBox.Show(iceCreamFlavor + " is my favorite!");
Which one of the following strings will be displayed in the message box?

A) Flavor.Strawberry is my favorite!
B) iceCreamFlavor is my favorite!
C) Strawberry is my favorite!
D) iceCreamFlavor + is my favorite!
سؤال
If you know the ____________ value for a particular image, you can retrieve that image from the ImageList control and display it in a PictureBox.

A) reference
B) index
C) Boolean
D) image
سؤال
A string object's ToUpper method converts the first character in the string to uppercase.
سؤال
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Flavor iceCreamFlavor;
Which one of the following statements assigns the value Flavor.Vanilla to the iceCreamFlavor variable?

A) iceCreamFlavor.Vanilla;
B) iceCreamFlavor = Flavor.Vanilla;
C) iceCreamFlavor(Flavor.Vanilla);
D) iceCreamFlavor = Flavor[0];
سؤال
String subscripts must be at least 0, and they must be less than the length of the string.
سؤال
Methods for modifying strings do not actually modify the calling string object, but they return a modified copy of the calling string object.
سؤال
The char data type provides a single method that determines whether a character is a letter or number.
سؤال
A structure declaration does not create anything in memory until you create a new instance of the structure.
سؤال
You can assign an enumerator directly to an int variable.
سؤال
When you create a structure array, each element of the array is structure instance and the fields of each instance are initialized to either zero or null (for fields that are reference variables).
سؤال
Unlike other types of objects, you cannot pass a structure object as an argument to a method.
سؤال
If you find yourself using a structure for more than simply encapsulating a set of variables into a single item, you should probably use a class.
سؤال
The programming terms instance and an object have the same meaning.
سؤال
You cannot perform comparison operations directly on structure objects.
سؤال
When you call a string object's Split method, the method extracts tokens from the string and returns them as an array of integers.
سؤال
When you declare an enumerated type, the enumerators are automatically assigned integer values, starting with 0, unless you provide other specific values.
سؤال
Like strings, enumerators must be enclosed in quotation marks.
سؤال
You can use the assignment operator (=) to assign one structure object to another.
سؤال
Once you have created an instance of a structure, you can access its fields using the dot operator (a period).
سؤال
When you tokenize a string entered by the user and the string contains characters other than white spaces as delimiters, you do not need to trim the string before tokenizing it.
سؤال
When you add a structure instance to a List, the List will contain a copy of the object.
سؤال
In C#, you can only provide one delimiter per string that you wish to tokenize when calling the Split method.
سؤال
The fields contained in structure must all be of the same data type.
سؤال
Enumerators and enum variables have a ToString method.
سؤال
When you pass null as an argument to the Split method, the method tokenizes the string using the comma character as the delimiter.
سؤال
When you create a structure object with a simple declaration, the object's fields are initialized to their default values.
سؤال
Structures are value types, so a structure object contains all of its data at the variable's memory location.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/90
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: More About Processing Data
1
Look at the following code sample: string tree = "Pear";
Char letter = tree[3];
Which one of the following values is stored in the letter variable?

A) P
B) e
C) a
D) r
D
2
C# allows you to access the individual characters in a string using ____________.

A) switch statements
B) subscript notation
C) named constants
D) character literals
B
3
____________ are spaces that appear at the beginning of a string.

A) Leading spaces
B) Empty spaces
C) Indentations
D) Tabbed spaces
A
4
The ____________ methods return an integer value indicating the starting position of a substring within a string object.

A) IndexOf and LastIndexOf
B) Insert and Remove
C) ToUpper and ToLower
D) Substring and Trim
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
5
The ____________ can be used to retrieve a specific set of characters from a string.

A) Insert method
B) Substring method
C) Trim method
D) Copy method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which one of the following character testing methods would you use to verify whether or not a password contains spaces?

A) char.IsPunctuation
B) char.IsUpper
C) char.IsWhiteSpace
D) char.IsLetterOrDigit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which one of the character testing methods would you use to determine that a string contains only letters and numbers?

A) char.IsLetterOrDigit
B) char.IsUpper
C) char.IsPunctuation
D) char.IsWhiteSpace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
8
A string object's ____________ method returns true if the substring being searched for is contained within the string; otherwise it returns false.

A) Contains
B) Substring
C) IndexOf
D) Insert
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
9
Subscript notation provides ____________ access to individual characters in a string.

A) write-only
B) local
C) read-only
D) global
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
10
In C#, ____________ are enclosed in single quotation marks.

A) character literals
B) numeric literals
C) string literals
D) Boolean literals
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
11
To convert a char variable to a string, call its ____________ method.

A) CompareTo
B) ToString
C) Equals
D) GetType
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
12
A string within a string is called a(n) ____________.

A) thread
B) nested string
C) strand
D) substring
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which one of the character testing methods would you use to determine if a sentence contains capital letters?

A) char.IsUpper
B) char.IsLetterOrDigit
C) char.IsPunctuation
D) char.IsWhiteSpace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
14
The ____________ method returns true if a string object ends with a specific substring value, or false otherwise.

A) LastIndexOf
B) Substring
C) TrimEnd
D) EndsWith
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
15
The ____________ data type is used to store individual characters.

A) bool
B) string
C) char
D) int
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which one of the following character testing methods would you use to determine if a character is a number in the range 0 through 9?

A) char.IsDigit
B) char.IsLower
C) char.IsPunctuation
D) char.IsWhiteSpace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
17
The ____________ method places a string inside another string.

A) Remove
B) Trim
C) Insert
D) Substring
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
18
The ____________ method returns the lowercase equivalent of a character.

A) char.IsLower
B) char.ToLower
C) this.Lowercase
D) this.char.Convert
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
19
____________ are spaces that appear at the end of a string.

A) Hanging spaces
B) Trailing spaces
C) Padded spaces
D) Suffix spaces
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
20
The ____________ method returns true if the string object starts with the substring, or false otherwise.

A) Contains
B) TrimStart
C) StartsWith
D) IndexOf
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
21
The ____________ method removes specified characters from a string.

A) Delete
B) Extract
C) TrimEnd
D) Remove
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____________ is an object you can create that contains one or more variables known as fields.

A) object
B) structure
C) list
D) container
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
23
Before you can use a structure to store data, you must create a(n) ____________ of the structure in memory.

A) copy
B) identity
C) instance
D) field
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
24
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
List birdList = new List();
Pet parrot = new Pet();
Which one of the following statements adds the Pet structure named parrot to the List object named birdList?

A) birdList.Add(parrot);
B) Add(birdList.parrot);
C) birdList[parrot];
D) birdList[0] = parrot;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
25
Before tokenizing a string, you should use the ____________ method to remove leading and/or trailing white-space characters and prevent them from being included in the first and last tokens.

A) Trim
B) Remove
C) Split
D) Substring
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
26
In programming terms, ____________ are a series of words or other items of data contained in a string that are separated by spaces, commas, or other characters.

A) tokens
B) lexicons
C) delimiters
D) key values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
27
A(n) ____________ is a data type you can create by specifying a set of symbolic names that belong to that data type.

A) class
B) structure
C) namespace
D) enumerated data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
28
Structure objects are normally passed ____________ to a method.

A) by reference
B) globally
C) by value
D) locally
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
29
Assuming that cat1 and cat2 are both instances of the Pet structure, which one of the following statements copies cat1 to cat2?

A) cat1 = cat2;
B) cat2 = cat1;
C) cat1(cat2);
D) cat1 = new cat2;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
30
In order to compare two structure objects, you must compare the individual ____________ of each object.

A) variables
B) fields
C) data types
D) objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
31
Look at the following code sample that creates an array of Pet structure objects: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Const int SIZE = 4;
Pet[] cats = new Pet[SIZE];
Which one of the following statements assigns the string "Pickles" to the name member of cats[2]?

A) "Pickles" = cats[2];
B) cats[2].name = "Pickles";
C) cats.name[2] = "Pickles";
D) cats[2].name("Pickles");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
32
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Pet hound = new Pet();
Which one of the following statements assigns the string "Beagle" to the hound object's type field?

A) hound = new type("Beagle");
B) type = "Beagle";
C) hound.type = "Beagle";
D) Pet.hound.type("Beagle");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
33
The character that separates tokens is known as a(n) ____________.

A) sentinel
B) article
C) delimiter
D) separator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
34
When the data in a spreadsheet is exported using the ____________ file format, each row is written to a line, and the values of the cells are separated by commas.

A) comma separated value, or CSV
B) extensible markup language, or XML
C) document object model, or DOM
D) delimiter separated value, or DSV
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
35
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Which one of the following statements declares a Pet structure variable named hound and initializes the object's fields with their default values?

A) new Pet = hound;
B) Pet hound = new Pet();
C) hound = new Pet();
D) Pet hound;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
36
In C#, string objects have a method named ____________ that is used to tokenize strings.

A) Tokenize
B) Delimit
C) Break
D) Split
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
37
The process of dividing a string into tokens is known as ____________.

A) parsing
B) tokenizing
C) object splitting
D) threading
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
38
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
The identifiers Vanilla, Strawberry, and Chocolate, which appear inside the braces, are known as ____________.

A) constants
B) references
C) mnemonics
D) enumerators
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
39
The ____________ method removes all leading and trailing spaces from a string.

A) Remove
B) NoSpaces
C) Trim
D) RemoveSpace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
40
When the items in two data structures are related by their indexes, it is said that a(n) ____________ exists between the data structures.

A) exclusive association
B) logical connection
C) parallel relationship
D) binary link
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
41
Enumerators and enum variables can be compared directly with ____________ values.

A) int
B) decimal
C) double
D) string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
42
Character testing methods, such as char.IsLetter, return a Boolean value of
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
43
The Substring method returns a string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
44
Because char variables can hold only one character, they are not assignment-compatible with string variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
45
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Which of the following statements assigns the Flavor enumerated type value to The integer variable?

A) int n = Flavor.Strawberry.ToInteger();
B) int n = Strawberry.IntValue;
C) int n = (Flavor) Strawberry;
D) int n = (int) Flavor.Strawberry;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
46
In code, you can determine the number of images stored in an ImageList control by getting the value of the control's ____________ property.

A) Image.List.Max
B) Size.Get
C) Images.Count
D) GetLastImage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
47
You can convert an enumerator to its underlying integer type by using a(n) ____________.

A) binary operator
B) cast operator
C) reference variable
D) assignment statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
48
If you pass an uppercase letter to the char.ToLower method, the character it returns will be unchanged.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
49
The ____________ is a container that can hold multiple images.

A) ImageList control
B) PictureBox control
C) Panel control
D) Bitmap
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
50
You can use a subscript expression such as name[3]='A' to change the value of a character within a string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
51
Which one of the following is not a valid enumerated type declaration?

A) enum Iron { Melting = 2795, Boiling = 4982 }
B) enum SpeedLimit { City = 35, Highway = 60 }
C) enum Temperature { Cold = 20, Hot = 90 }
D) enum Voltage { Orange = 3.3, Green = 5.0 }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
52
A variable of the char data type can hold up to 256 characters at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
53
The string data type has several methods that allow you to search for substrings.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
54
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Flavor iceCreamFlavor = Flavor.Strawberry;
MessageBox.Show(iceCreamFlavor + " is my favorite!");
Which one of the following strings will be displayed in the message box?

A) Flavor.Strawberry is my favorite!
B) iceCreamFlavor is my favorite!
C) Strawberry is my favorite!
D) iceCreamFlavor + is my favorite!
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
55
If you know the ____________ value for a particular image, you can retrieve that image from the ImageList control and display it in a PictureBox.

A) reference
B) index
C) Boolean
D) image
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
56
A string object's ToUpper method converts the first character in the string to uppercase.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
57
Look at the following code sample: enum Flavor { Vanilla, Strawberry, Chocolate }
Flavor iceCreamFlavor;
Which one of the following statements assigns the value Flavor.Vanilla to the iceCreamFlavor variable?

A) iceCreamFlavor.Vanilla;
B) iceCreamFlavor = Flavor.Vanilla;
C) iceCreamFlavor(Flavor.Vanilla);
D) iceCreamFlavor = Flavor[0];
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
58
String subscripts must be at least 0, and they must be less than the length of the string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
59
Methods for modifying strings do not actually modify the calling string object, but they return a modified copy of the calling string object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
60
The char data type provides a single method that determines whether a character is a letter or number.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
61
A structure declaration does not create anything in memory until you create a new instance of the structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
62
You can assign an enumerator directly to an int variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
63
When you create a structure array, each element of the array is structure instance and the fields of each instance are initialized to either zero or null (for fields that are reference variables).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
64
Unlike other types of objects, you cannot pass a structure object as an argument to a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
65
If you find yourself using a structure for more than simply encapsulating a set of variables into a single item, you should probably use a class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
66
The programming terms instance and an object have the same meaning.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
67
You cannot perform comparison operations directly on structure objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
68
When you call a string object's Split method, the method extracts tokens from the string and returns them as an array of integers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
69
When you declare an enumerated type, the enumerators are automatically assigned integer values, starting with 0, unless you provide other specific values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
70
Like strings, enumerators must be enclosed in quotation marks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
71
You can use the assignment operator (=) to assign one structure object to another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
72
Once you have created an instance of a structure, you can access its fields using the dot operator (a period).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
73
When you tokenize a string entered by the user and the string contains characters other than white spaces as delimiters, you do not need to trim the string before tokenizing it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
74
When you add a structure instance to a List, the List will contain a copy of the object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
75
In C#, you can only provide one delimiter per string that you wish to tokenize when calling the Split method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
76
The fields contained in structure must all be of the same data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
77
Enumerators and enum variables have a ToString method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
78
When you pass null as an argument to the Split method, the method tokenizes the string using the comma character as the delimiter.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
79
When you create a structure object with a simple declaration, the object's fields are initialized to their default values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
80
Structures are value types, so a structure object contains all of its data at the variable's memory location.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 90 في هذه المجموعة.