
In C#, __________ are enclosed in single quotation marks.
- a. strings
- b. enumerators
- c. tokens
- d. character literals

In C#, quotation marks are used to represent “character literals”.
Hence, the correct answer is option “D”.
Explanation of Solution
Character literals:
- • In C#, the data type named char is used to store single character.
- • The character literals are enclosed in quotation marks.
- • Example to declare and assign the char variable.
Char letter = ‘a’
Explanation for incorrect options:
String:
String value is enclosed in double quotation and gets stored in string data type.
Hence, the option “A” is wrong.
Enumerators:
enum keyword is used to represent an enumerator and identifiers are enclosed in braces.
Hence, the option “B” is wrong.
Tokens:
Tokens are also enclosed in double quotations and items of data are separated by space or other characters.
Hence, the option “C” is wrong.
Want to see more full solutions like this?
Chapter 8 Solutions
Starting out with Visual C# (4th Edition)
Additional Engineering Textbook Solutions
Web Development and Design Foundations with HTML5 (8th Edition)
Mechanics of Materials (10th Edition)
Electric Circuits. (11th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning




