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
Lilit [14]
3 years ago
5

Consider the following statements regarding computer programs A - Variables can contain different values at different times.B -

Reserved words of a programming language can be used as variable names in that languageWhich of the following is true with respect to the above? * O Only A is correct Only B is correct Both A and B are incorrect Both A and B are correot​
Computers and Technology
1 answer:
jeka943 years ago
6 0

Answer:

The answer is: Only A is correct.

Explanation:

Variables in a program can assume different values at different times, and the program can then produce different results, depending on circumstances, so A is correct.

In a computer language, a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use". This is a syntactic definition, and a reserved word may have no meaning. So, B is incorrect.

Hence, the answer is: Only A is correct.

You might be interested in
The steps.txt file contains the number of steps a person has taken each day for a year. There are 365 lines in the file, and eac
Bumek [7]

Answer:

In Python:

file = open('steps.txt', 'r')

readLine = file.readlines()

begin = 0

mdays = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

print("Month"+"\t\t"+"Average Steps")

for m in range(len(mdays)):

end = begin + mdays[m]

steps = readLine[begin:end]

sumsteps = 0

for s in steps:

 sumsteps = sumsteps + int(s)

 

average = round(sumsteps/mdays[m],1)

print(str(m+1)+"\t\t"+str(average))

begin = begin + mdays[m]

Explanation:

This line opens the step.txt file

file = open('steps.txt', 'r')

This reads the content of the file

readLine = file.readlines()

begin = 0

This initializes the months of the days to a tuple

Mmdays = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

This prints the header

print("Month"+"\t\t"+"Average Steps")

This iterates through the tuple

for m in range(len(Mmdays)):

This calculates the days in each month

end = begin + Mmdays[m]

This gets the number of steps in each month

steps = readLine[begin:end]

This initializes the number of steps to 0

sumsteps = 0

This iteration sums up the number of steps in each month

<em> for s in steps: </em>

<em>  sumsteps = sumsteps + int(s) </em>

This calculates the average of steps rounded to 1 decimal place  

average = round(sumsteps/Mmdays[m],1)

This prints the calculated average

print(str(m+1)+"\t\t"+str(average))

This calculates the beginning of the new month

begin = begin + Mmdays[m]

8 0
3 years ago
Select the WRONG statement about Slide Transitions.
faust18 [17]

Answer:

c. You can apply slide transitions to only a few selected slides.

Explanation:

If you want to, you <em>could </em>literally apply slide transitions to<em> </em><em>every</em> slide.

6 0
2 years ago
Read 2 more answers
What attracts attention and adds spatial depth to a two-dimensional design.
Harlamova29_29 [7]

Answer:

Hi,

<u>Visual weight</u> attracts attention and adds spatial depth to a two-dimension design.

Explanation:

Visual weight is a measure of the force a piece of art exerts on a viewer/ observer.When a piece of art attracts the eye more, we say the visual weight of that element is higher.Visual weight is measured by observing some features like size, color, position, orientation, shape and texture.

A large art piece will have more visual weight than a small art piece.Warm color such as red has more visual weight more than cool color such as yellow because warm colors tend to occupy the foreground in art pieces.Elements in an art piece that occupy the foreground have more visual weight than those occupying the background.Diminishing the size of an object on the art piece can help you attain spatial depth.

Best of Luck.

6 0
3 years ago
Constantine forms the following hypothesis. Let n be any non-negative number that meets the following condition: when n is divid
notka56 [123]

Answer:

n=5

Explanation:

if n= 5

i.     n/5=5/5=1  so it divides completely the remainder is 0

ii.  97 - 6(5) = 97 - 30 = 67,   67 is a prime number.

8 0
3 years ago
Do network packets take the shortest route?
Sergio039 [100]

Answer:

The packet will take a shorter path through networks 2 and 4

5 0
3 years ago
Read 2 more answers
Other questions:
  • Abigail is interested in connecting her tablet that usually connects to a wireless network, to her personal computer that usuall
    11·2 answers
  • Explain what the 35ppm specification means
    13·1 answer
  • Apple was a pioneer in user interface development, introducing the _____, complete with mouse and screen icons, in the early 198
    7·1 answer
  • Apart from confidential information, what other information does NDA help to outline?
    15·1 answer
  • Its a zoom call
    7·1 answer
  • Give the algorithm and flowchart for following C code:
    6·1 answer
  • Pseudocode is a good choice to communicate a____of a process
    10·1 answer
  • Who is your favorite smite god in Hi-Rez’s “Smite”
    14·1 answer
  • Explain the history of computing device of mechanical era
    7·1 answer
  • Which of the following sentences use personification 
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!