Answer:
The answer to this question is given below in the explanation section.
Explanation:
The value stored by a variable can be changed after it is assigned(true).
The value of a variable can be changed after it is assigned, for example:
int a=10;
and we can change the value of variable a in letter program such as:
a=15;
Variables are a name for a spot in the computer's memory (true).
it is true, because the variables value stored in the computer's memory and we can access theses values by their name (variable name). so Variables are a name for a spot in the computer's memory.
Variable names can be words: such as temperature or height (true).
Yes, the variable name can be words such as height, width, temperature etc.
The value stored by a variable cannot be changed after it is assigned (false).
It is noted that the value stored by a variable can be changed after it is assigned. However, it is noted that is some programming language, you can't change the value of static variable.
Answer:
A
Explanation:
I think is A. or maybe search up the topic of the lesson
Answer:
The code is not dereferencing the pointers. You have to place an asterisk in front of the pointer to read the value the pointer points to.
Explanation:
So "if (str1 != str2)" must be "if (*str1 != *str2)".
likewise:
while (*str1 != 0 && *str2 != 0)
and
result = (*str1 == *str2);
Answer:
The output of the code,
phrase = "hello mom"
phrase.upper()
Would be nothing since you didnt print out anything. How ever, the output of,
phrase = "hello mom"
print(phrase.upper())
Would be, "HELLO MOM". You can get the same output by writing this,
phrase = "hello mom"
phrase = phrase.upper()
print(phrase)