1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elis [28]
3 years ago
8

Which of the following is a valid variable name? a. salesTax b. input-string c. 25Percent d. double

Computers and Technology
1 answer:
PilotLPTM [1.2K]3 years ago
5 0

Answer:

The correct answer of the given question is option(A) i.e salesTax

Explanation:

Variable are the storage area which value varies during the execution of aprogram .

some of the rules of variable are

1 Variable always start with alphabet.

2 We cannot give variable name any reserve keyword.

3 Variable cannot start with digit.

4 We cannot use special symbol like -,$ to declare any variable

In option (b ) input-string ,it is invalid variable because it uses special symbol "-"  to declared the variable.

In option (c) 25Percent , it is invalid variable because it violate the rule of  variable and start with digit.variable cannot start with digit

In option( d )double, it is invalid variable because it violate the rule of  variable because double is keyword and variable never be a keyword.

So option(A) is correct it follow the rule of variable.

You might be interested in
Why does a computer need programs? ​
Yuri [45]
To run successfully. That was the answer on my quiz. Sorry if it doesn’t help
3 0
3 years ago
Read 2 more answers
Is Filmora 9 or Final Cut Pro Better for personal use?
padilas [110]
Final Cut Pro is better for personal use
3 0
3 years ago
What are the best data structures to create the following items? And why?
Airida [17]

Answer:

The best structures to create the following items are

  1. ARRAY
  2. HASHMAPS
  3.  QUEUE
  4. SORTED LINK LISTS

Explanation:

The best structures to create the following items are:

  1. Array : for the storage of cards in a card game the best data structure to be used should be the Array data structure. this is because  the size of the data ( 52 cards ) is known and using Array will help with the storing of the cards values in the Game.
  2. Hashmaps : Hashmap data structure should be implemented in online shopping cart this IS BECAUSE  items can be easily added or removed from the cart therefore there is a need to map the Items ID or name to its actual database
  3. online waiting list are usually organised/arranged in a first-in-first-out order and this organization is best created using the queue data structure
  4. Sorted link lists is the best data structure used to create, store and manage online tickets. the sorted link data structure helps to manage insertions and deletions of tickets in large numbers  and it also reduces the stress involved in searching through a large number of tickets by keeping the tickets in sorted lists
3 0
3 years ago
The first and second numbers in the Fibonacci sequence are both 1. After that, each subsequent number is the sum of the two prec
vlabodo [156]

Answer:

In Python:

def fib(nterms):

   n1, n2 = 1, 1

   count = 0

   while count < nterms:

       term = n1

       nth = n1 + n2

       n1 = n2

       n2 = nth

       count += 1

   return term

Explanation:

This line defines the function

def fib(nterms):

This line initializes the first and second terms to 1

   n1, n2 = 1, 1

This line initializes the Fibonacci count to 0

   count = 0

The following while loops gets the number at the position of nterms

<em>   while count < nterms: </em>

<em>        term = n1 </em>

<em>        nth = n1 + n2 </em>

<em>        n1 = n2 </em>

<em>        n2 = nth </em>

<em>        count += 1 </em>

This returns the Fibonnaci term

   return term

7 0
3 years ago
Which entry by the user will cause the program to halt with an error statement?
kicyunya [14]

Answer:

A

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • Code Example 4-3 main program: import arithmetic as a def main(): num1 = 5 num2 = 6 result = a.add(num1, num2) print("The sum is
    15·1 answer
  • While trying to solve a network issue, a technician made multiple changes to the current router configuration file. The changes
    7·1 answer
  • What are the desirable qualities of a Product Vision?
    11·1 answer
  • To help determine which technology to use, Raul creates a table to help him compare the pros and cons of his choices. What part
    15·1 answer
  • The sequence of folders to a file or folder is called a(n) ________
    8·1 answer
  • This is more opinionated than question-based.
    7·1 answer
  • HELP PLSSSSS!!! I WILL MARK BRAINLIEST FOR THE FIRST AND CORRECT ANSWER!!!
    14·2 answers
  • Select the correct answer.
    12·2 answers
  • 1. It is a set of integrated devices that input, output,
    11·1 answer
  • What does a wireless LAN (WLAN) act as to a wired network?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!