45.8k views
5 votes
Which of the following is NOT a valid name for a function?

A. Poker

B. Black Jack

C. Solitare

D. 52CardPickup

User Jtaylor
by
8.0k points

1 Answer

5 votes

Answer:

B and D

Step-by-step explanation:

We must follow naming conventions while naming a function. The following are the rules:

Function names can start with a letter followed by letters and digits

Function names can start with a underscore followed by letters and digits

Function names cannot start with a number.

Function names cannot have space between words.

Based on above rules, options B and D violate the rules. So they are invalid function names

User Sergiu Marsavela
by
7.4k points