• Register
0 votes


Write a String constant consisting of exactly 5 exclamation marks?

5 3 2
7,520 points

Please log in or register to answer this question.

2 Answers

0 votes



6 4 2
14,580 points
String constants is also know as string literal, it is special type of constants which store fixed sequences characters.  String constant is set of characters enclosed double quotes. For example string constant consists of 5 exclamation mark will be '!!!!!' , and empty string   or null string will be like "". It occupy two bytes.  String constant allow model to be adjusted as strings. String constant size is number of bytes associated with string plus one additional byte for terminating null byte. The character written in double quotes are automatically know as string by the D compiler.
0 votes

The string constant the consists of 5 exclamation marks will be  “!!!!!”. It occupies the two bytes.

What is a string constant?

String constant is also known as string literals. String constants are special types of constant that can store a fixed sequence of characters. A string constant can be any sequence of characters that can be enclosed in double-quotes.


Following is an example of a string constant;

“This is a string”

What is a Null string?

A null string or empty string is written as “”. A literal string is stored internally as a given sequence of characters plus the final null characters. A null string is stored as a single null character.

The characters inside the double quotes can include escape sequence like;


It will print as;

“Name” \ Address

The Name is preceded by two tabs. The Address is preceded by one tab. The line id followed by two new lines. The |” provide interior double-quotes. The escape character sequence \\ is translated into \ by the compiler.

Adjacent string literals:

These can be separated only by whitespaces and are concatenated during the parsing phase.


“This is “  “just”

        “ an example.”

Is equivalent to the following.

“This is just an example.”


11 5 2
3,890 points

Related questions

0 votes
1 answer 16 views
Problem: Hi there! I want to know which command is used to retrieve data from a database in SQL? How do we use it and when to use it? I am a beginner so I am looking for a detailed answer. Thanks!
asked Jan 20 Code Learner 6.3k points
0 votes
2 answers 244 views
Problem: In what type of attack does the attacker send unauthorized commands directly to a database?
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
2 answers 486 views
Problem: The Navigation Pane contains a list of all the objects in the database? True False
asked Apr 12, 2020 ArifulIslam 7.5k points
1 vote
1 answer 54 views
Problem: Which of the following allows users to add, change, delete, or retrieve data in a database? a) Attribute generation b) Report generation tools c) Data dictionary d) Query wizard tool e) Data manipulation language
asked Mar 23, 2020 ArifulIslam 7.5k points
0 votes
1 answer 29 views
String or binary data would be truncated in SQL I have the error when I am inserting a row in SQL. Any idea?
asked Nov 25, 2020 miki 1.9k points
0 votes
2 answers 346 views
Problem: What are the valid indexes for the string 'New York'? a. 0 through 7 b. 0 through 8 c. -1 through -8 d. -1 through 6
asked Apr 12, 2020 ArifulIslam 7.5k points
0 votes
1 answer 24 views
Problem: Hello! I am learning SQL. I came across the following statement while attempting a self-assessment quiz: You use aggregate functions to perform calculations based on groups of records (True/False) I do not know Aggregate functions so I skipped this question. Can someone from here please explain what the above statement means? Moreover, please explain the aggregated functions. Thanks!
asked Jan 17 Code Learner 6.3k points
0 votes
1 answer 22 views
Problem: Hi there! I am learning SQL. Somewhere I saw a multiple choice question in which a list of terms was given and I had to choose the terms that refer to the commands used to create or modify database tables and columns. Following is the list of keywords: ... of most of these commands. I have learned only basics yet. If someone could explain all these commands, I would be grateful. Thanks!
asked Jan 16 Code Learner 6.3k points
0 votes
2 answers 58 views
Problem: The six clauses of the SELECT statement must be coded in the following order:?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
2 answers 93 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? Which of the following is true about the database approach? Data in a database is less vulnerable than data in file processing systems. Elimination of data redundancy Ability of associate deleted data Increased security and program/data independence
asked Feb 21, 2020 maddi86 5.4k points