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
ryzh [129]
3 years ago
8

Which of the following is a valid variable name? 1. three com 2. 3com 3. 3 com 4. ampersand&

Computers and Technology
1 answer:
Maru [420]3 years ago
4 0

***Correction: <em>Options of the question have mistakes in them. The correct options are given in the comment section under the question above</em>***

Answer:

The correct answer is Option (1) three_com

Explanation:

There are a few rules you need to keep in mind while naming any variable, which are as follows:

  • The first letter of any variable name should be either a letter of an alphabet or an underscore. For example, helloWorld or _helloWorld.
  • No special characters (except underscore obviously) or spaces in between the name are allowed. For example, <em>hello&world</em> or <em>hello world</em> are not valid names.
  • The first letter of the variable name should not be a number.

Now look at all the options given:

Option-1 (three_com): The name starts with the letter <em>t</em> of an alphabet and there are no spaces or special characters in it except an <em>underscore</em> (which is acceptable). Therefore, this option is correct.

Option-2 (3com): The name starts with a number. Not allowed.

Option-3 (3_com): The name starts with a number. Not allowed.

Option-4 (ampersand&): The name has a special character <em>&</em> in it, which is not allowed as per the aforementioned rules.

Hence, the correct answer is option (1) <em>three_com</em>.

You might be interested in
Write a program to print the value of a series of numbers from0-9 in descending order
steposvetlana [31]
This is the simplest way obviously this is ascending

print ("0")
print ("1")
print ("2")
print ("3")
print ("4")
print ("5")
print ("6")
print ("7")
print ("8")
print ("9")
6 0
3 years ago
A network is a group of two or more computers or devices connected together. To be able to connect, they each need a
Kay [80]
D. Internet service protocol (isp)
6 0
3 years ago
Read 2 more answers
Your company has just opened an office in another state and you need the computers to communicate between the offices. What type
galina1969 [7]

Answer:

WAN network

Explanation:

A WAN network is an abbreviation for wide area network. This telecommunication network is mainly used for networking computers. They are not tied to just one location. They can also be called network of networks. It connects several LANs. The lans stand for local area and networks and they are computer networks and devices that are connected to each other within a geographical area.

8 0
3 years ago
Lesson 3: Wrapping Up Unit 6
GrogVix [38]

Answer:

A visual representation of colors arranged according to their hues, or the chromatic relation they share

Explanation:

7 0
3 years ago
Read 2 more answers
What is the difference between science and technology how are they related
Nina [5.8K]
The Malawian in science are connected because of the echo system it's crossed the wrong way and they connect to each other
5 0
4 years ago
Other questions:
  • How do i know if i got flash installed onchrome
    5·1 answer
  • Write an application program that creates and prints a random phone number of the form XXX-XXX-XXXX. Include the dashes in the o
    5·1 answer
  • Match the following tasks with their appropriate timing.
    8·1 answer
  • 6. What are the two keyboard keys you can press at the same time to use the Copy command? (1.0 points)
    12·1 answer
  • Stored information about a previous visit to a web site is called information _____.
    10·1 answer
  • At Chicago Cubs games, residents across the street from Wrigley Field can watch the game from their apartment windows. Many of t
    14·1 answer
  • The right to make others do things is referred to as _________.
    14·2 answers
  • The activity spikes during black Friday sales in the holiday season but significant stress on a major retailers website what fea
    15·1 answer
  • Funtion is excel define​
    12·1 answer
  • What is a network computer that processes requests from a client server​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!