• Register
0 votes
11 views

Problem:

Which of the following is NOT a rule that must be followed when naming identifiers?
A. Identifiers for constants should use an underscore between words.
B. Identifiers should use periods to separate words.
C. Identifiers should list the data type at the end of the name.
D. Identifiers can contain spaces.

5 3 2
5,650 points

1 Answer

0 votes

Solution:

Identifiers can contain spaces.

Explanation:

There are some rules for naming correctly of your identifier,  you have to follow for naming identifiers: The first character of the identifier must be a letter of the alphabet (upper or lowercase) or an underscore ('_'). The rest of the identifier name can consist of letters (upper or lowercase), underscores ('_') or digits (0-9). It should start with a letter or with an underscore symbol ( _) but not with a digit. ... Thus, float or double, and int are invalid identifiers. Example: 1abc is the incorrect syntax of the identifier.

5 2 1
10,860 points

Related questions

0 votes
0 answers 9 views
9 views
Problem: Which one of the following would contain the translated Java byte code for a program named Demo? A) Demo.java B) Demo.code C) Demo.class D) Demo.byte
asked Jul 23 conner 1.5k points
0 votes
2 answers 48 views
48 views
Problem: Which of the following is not a valid C++ identifier?
asked Mar 9 ArifulIslam 5.7k points
0 votes
2 answers 45 views
45 views
Problem: Which of the following is NOT true about static methods? They are created by placing the key word static after the access specifier in the method header. They are called from an instance of the class. They are often used to create utility classes that perform ... no need to collect and store data. It is not necessary for an instance of the class to be created to execute the method.
asked Apr 18 ArifulIslam 5.7k points
0 votes
2 answers 78 views
78 views
Problem: Which of the following is a valid C++ array definition? A) int array[0]; B) float $payments[10]; C) void numbers[5]; D) int array[10]; E) None of these
asked Apr 18 ArifulIslam 5.7k points