Exam 8: More About Processing Data
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C#131 Questions
Exam 3: Processing Data176 Questions
Exam 4: Making Decisions78 Questions
Exam 5: Loops, Files, and Random Numbers112 Questions
Exam 6: Modularizing Your Code with Methods69 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data90 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
List<Pet> birdList = new List<Pet>();
Pet parrot = new Pet();
Which one of the following statements adds the Pet structure named parrot to the List object named birdList?
Free
(Multiple Choice)
5.0/5
(44)
Correct Answer:
A
When you create a structure object with a simple declaration, the object's fields are initialized to their default values.
Free
(True/False)
4.9/5
(35)
Correct Answer:
False
If you pass an uppercase letter to the char.ToLower method, the character it returns will be unchanged.
Free
(True/False)
5.0/5
(41)
Correct Answer:
False
The ____________ can be used to retrieve a specific set of characters from a string.
(Multiple Choice)
4.8/5
(42)
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?
(Multiple Choice)
4.7/5
(33)
You can use a subscript expression such as name[3]='A' to change the value of a character within a string.
(True/False)
4.9/5
(32)
Which one of the character testing methods would you use to determine that a string contains only letters and numbers?
(Multiple Choice)
4.7/5
(37)
The ____________ data type is used to store individual characters.
(Multiple Choice)
4.8/5
(36)
The fields contained in structure must all be of the same data type.
(True/False)
4.9/5
(36)
Once you have created an instance of a structure, you can access its fields using the dot operator (a period).
(True/False)
4.8/5
(38)
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.
(True/False)
4.8/5
(34)
Unlike other types of objects, you cannot pass a structure object as an argument to a method.
(True/False)
4.8/5
(37)
When integer values are assigned to the enumerators in an enumerated type, then each value must be unique.
(True/False)
4.7/5
(41)
Assuming that cat1 and cat2 are both instances of the Pet structure, which one of the following statements copies cat1 to cat2?
(Multiple Choice)
4.7/5
(35)
C# allows you to access the individual characters in a string using ____________.
(Multiple Choice)
4.8/5
(41)
String subscripts must be at least 0, and they must be less than the length of the string.
(True/False)
4.8/5
(34)
The char data type provides a single method that determines whether a character is a letter or number.
(True/False)
4.8/5
(39)
The ____________ method returns true if the string object starts with the substring, or false otherwise.
(Multiple Choice)
4.8/5
(44)
Showing 1 - 20 of 90
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)