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
geniusboy [140]
3 years ago
15

You are reviewing the code written by another programmer, and encounter a variable whose name is entirely in capital letters. Wh

at might you discern from this variable name?
A. The variable is a symbolic constant.
B. The variable is a reference variable.
C. The variable is part of a program loop.
D. The variable is used to store a dynamic value that is constantly changing.
Computers and Technology
1 answer:
ASHA 777 [7]3 years ago
4 0

Answer:

Option A is the right answer.

Explanation:

In any programming language, when a user needs to define the constant variable then he should need to define the variable in capital letter. It is not necessary for the compiler point of view but it is necessary for the standardization point of view. It means that when a user does not define the constant variable in the capital letter then it will never give an error.

Option "a" also states that the variable is constant and the scenario is to define the variable in capital letter hence option a is correct while the other is not because--

  • Option b states that the user-defined reference variable but the reference variable is defined with the help of (*) symbol.
  • Option c states about the loop variable but the loop variable also can define by small letters.
  • Option d states that it is used for dynamic value but for dynamic variable a user can define small letters.
You might be interested in
6. What are the arguments, pros and cons, for Python's use of indentation to specify compound statements in control statements
Nat2105 [25]

Answer:

beinggreat78~here~to~help.

In some cases, one con is that it can be hard to keep track of your identation when coding long lines or blocks. The pro is that you may need to learn, which is not a bad thing. Learning is good.

5 0
3 years ago
Design a program takes as input, X, an unsorted list of numbers, and returns the sorted list of numbers in X. The program must b
Lelechka [254]

Answer:

The program in python is as follows:

def split(X):

   L = []; G = []

   for i in range(len(X)):

       if X[i]>=X[0]:

           G.append(X[i])

       else:

           L.append(X[i])

   L.sort(); G.sort()

   return L,G

X = []

n = int(input("Length of X: "))

for i in range(n):

   inp = int(input(": "))

   X.append(inp)

   

if len(X) == 0 or len(X) == 1:

   print(X)

else:

   X1,X2=split(X)

   newList = sorted(X1 + X2)

   print(newList)

Explanation:

The following represents the split function in the previous problem

def split(X):

This initializes L and G to empty lists

   L = []; G = []

This iterates through X

   for i in range(len(X)):

All elements of X greater than 0 equal to the first element are appended to G

      <em> if X[i]>=X[0]:</em>

<em>            G.append(X[i])</em>

Others are appended to L

<em>        else:</em>

<em>            L.append(X[i])</em>

This sorts L and G

   L.sort(); G.sort()

This returns sorted lists L and G

   return L,G

The main function begins here

This initializes X

X = []

This gets the length of list X

n = int(input("Length of X: "))

This gets input for list X

<em>for i in range(n):</em>

<em>    inp = int(input(": "))</em>

<em>    X.append(inp)</em>

This prints X is X is empty of has 1 element

<em>if len(X) == 0 or len(X) == 1:</em>

<em>    print(X)</em>

If otherwise

else:

This calls the split function to split X into 2

   X1,X2=split(X)

This merges the two lists returned (sorted)

   newList = sorted(X1 + X2)

This prints the new list

   print(newList)

7 0
3 years ago
Who invented the program HTML?
kondaur [170]
In 1980, physicist Tim Berners-Lee<span>, a contractor at </span>CERN<span>, proposed and prototyped </span>ENQUIRE<span>, a system for CERN researchers to use and share documents. In 1989, Berners-Lee wrote a memo proposing an </span>Internet<span>-based </span>hypertext<span> system.</span>[3]<span> Berners-Lee specified HTML and wrote the browser and server software in late 1990. That year, Berners-Lee and CERN data systems engineer </span>Robert Cailliau<span> collaborated on a joint request for funding, but the project was not formally adopted by CERN. In his personal notes</span>[4]<span> from 1990 he listed</span>[5]<span> "some of the many areas in which hypertext is used" and put an encyclopedia first.</span>
8 0
3 years ago
Read 2 more answers
4. Together, what do the divisions of the DHSMV do? A. Make sure lines are long B. Use more money than other government organiza
iren2701 [21]

The answer is C, "keep Florida highways safe". DHSMV stands for "Department of Highway Safety and Motor Vehicles".

5 0
3 years ago
Meryll is thinking of creating a painting of a historical site. She has seen a similar painting put up online by another artist.
san4es73 [151]
I believe its c, the third option 
3 0
3 years ago
Other questions:
  • ____ port is a connection in which eight data lines transmit an entire byte of data at one moment in time.
    12·1 answer
  • What are the tools which are used by search engine ? explain them? ​
    7·1 answer
  • Will there be a season 3 of Gravity Falls?
    5·2 answers
  • How does the Evaluate Formula dialog box help fix errors?
    9·2 answers
  • Byte pair encoding is a data encoding technique. The encoding algorithm looks for pairs of characters that appear in the string
    14·1 answer
  • PLZ HELP What will be the output? class num: def init (self.a): self. number = a mul* __(self. b) return self. number + b. numbe
    7·1 answer
  • Im drinking coffee. and working on school and watching a show. Whos with me?
    9·1 answer
  • Where do animators work?
    6·1 answer
  • Define computer memory and write it's type ​
    6·1 answer
  • Pls help
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!