Which regular expression will match the rules for a C++ identifier? (Letters, digits, underscore, cannot start with a digit)

A. [a-zA-Z_]+[a-zA-Z_0-9]*
B. [a-zA-Z_0-9]*
C. \w+


A. [a-zA-Z_]+[a-zA-Z_0-9]*

Computer Science & Information Technology

You might also like to view...

Which statement is a valid local variable declaration in Alice?

A. distanceToHorse = Double (1.0); B. Double distanceToHorse (1.0);  C. Double distanceToHorse = 1.0;  D. distanceToHorse (Double, 1.0); 

Computer Science & Information Technology

Which of the following classes cannot be extended?

``` a. class A { } b. class A {   private A() {  }} c. final class A { } d. class A {   protected A() {  }} ```

Computer Science & Information Technology

____ is the key to setting permissions.

A. Encryption B. Masking C. Granularity D. Synchronization

Computer Science & Information Technology

List three applications for hosted virtualization.

What will be an ideal response?

Computer Science & Information Technology