Question

In: Computer Science

Which of the followings are an acceptable and which of thefollowings are not an acceptable...

Which of the followings are an acceptable and which of the followings are not an acceptable variable name? In case of unacceptable justify your answer, i.e., why not acceptable?

  1. M

  2. 1_Name

  3. #_Name

  4. My Friend

  5. name

  6. We_Are_All_Friends

Solutions

Expert Solution

M
acceptable 

1_Name
not acceptable
Because names should not starts with number
 
#_Name
not acceptable
Because names should not starts with special characters

My Friend
not acceptable
Because names should not contains space

name
acceptable

We_Are_All_Friends
acceptable

Related Solutions

Which of the following is not an acceptable symbol for the IF statement: <> > <...
Which of the following is not an acceptable symbol for the IF statement: <> > < >= <= Question 2 2 pts What paragraph can be used in COBOL to define a unique collating sequence or unique addressable character sets? Mainline Collate Sequence Class Special-Names Question 3 2 pts What is wrong with the following code setup: 01 CARTYPES PIC 99 VALUE ZEROES.    88 FORD PIC 99 VALUE 01.    88 DODGE PIC 99 VALUE 02.    88 MAZDA...
Which of the followings is NOT a principle of capitalist economy? A. private ownership of the...
Which of the followings is NOT a principle of capitalist economy? A. private ownership of the means of production. B. markets for labor. C. markets for exchange. D. welfare system.
Which of the followings may lead to the wrong decision if IRR is used as the...
Which of the followings may lead to the wrong decision if IRR is used as the investment decision criteria? When dealing with mutually exclusive projects. IRR never leads to the wrong decision. When dealing with independent projects with conventional cash flow pattern. When dealing with small independent projects When dealing with very large independent projects
1 ) Which of the followings is not a goal of the I/O software?    A. Device...
1 ) Which of the followings is not a goal of the I/O software?    A. Device independence B. Uniform naming C. Buffering D. Error handling E. Cost reduction 2) According to the data rate, which of the following is not true? A. SONET OC-768 network is faster than Gigabit Ethernet B. FireWire 800 is slower than USB 3.0 C. SCSI Ultra 5 bus is faster than Thunderbolt 2 bus D. Keyboard is slower than mouse 3) Which of the following...
Which of the following would NOT be an acceptable method to account for bad debts if...
Which of the following would NOT be an acceptable method to account for bad debts if accounts receivable is a material aspect of a company’s operations? wait until the account becomes uncollectible, and then recognize bad debt expense estimate a percent of future uncollectible accounts at the time of each credit sale, and assign this amount to an allowance for uncollectible accounts periodically conduct an aging of accounts receivable to determine the size of the allowance for uncollectible accounts.
Which of the following shows what would be acceptable to list at the top of an...
Which of the following shows what would be acceptable to list at the top of an income statement, and why? For the Year Ended 20XX; it is measured over a span of time As of January 31, 20XX; it is measured at a point in time As of January 31, 20XX; it is measured over a span of time For the Year Ended 20XX; it is measured at a point in time The SEC's Release 1 (FRR-1) officially recognizes accounting...
which of the 21 irrefutable laws of leadership is acceptable to emotional intelligence
which of the 21 irrefutable laws of leadership is acceptable to emotional intelligence
1. Which are the followings is NOT correct about the bank holding companies? a) Easy to...
1. Which are the followings is NOT correct about the bank holding companies? a) Easy to transfer resources arounds the numbers of banks within the banking groups b) Independent investment banks in U.S. formed BHC to expand because they were appealed to the expensive commercial banking business c) Bank holding companies are tightly regulated by the government d) Due to McFadden Act, bank in U.S. need to form a bank holding company if it wants to operate in another state...
Which of the followings is an example of the systematic risk. Winter storm in New York...
Which of the followings is an example of the systematic risk. Winter storm in New York area Hurricane hit Alabama Strike in auto industry Pandemic spreading across the country
Which of the followings regarding a firm in perfect competition is correct? a. The firm cannot...
Which of the followings regarding a firm in perfect competition is correct? a. The firm cannot exit the market in the long run if its average cost is above market price. b. For all firms, average revenue equals the price of the good. c. If a firm raises its price, the firm may be able to increase its total revenue. d. Each firm faces a downward sloping demand.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT