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
Kipish [7]
3 years ago
12

Jenn wants to assign a value to the favorite car variable: favoriteCar = Toyota but gets an error message. What does she need to

fix for the code to work?
a
Add a space between the words in the variable name.

b
Create a shorter variable name.

c
Remove the equal sign.

d
Put quotation marks around the string.
Computers and Technology
1 answer:
Valentin [98]3 years ago
8 0

Answer:

The correct answer is:

Option D: Put Quotation marks around the string

Explanation:

There are various data types that are used to store data in programming i.e. numeric, alphabetic, alphanumeric etc.

Given that Jenn wants to store the value in variable. The names of cars are usually rods and the data type for them is string.

Whenever a string is used, quotation marks are used around it. The quotation marks make it easier for the compilers and interpreters to identify string.

Hence,

The correct answer is:

Option D: Put Quotation marks around the string

You might be interested in
What is the difference between HTML and C?
Dmitry_Shevchenko [17]

Answer:

B

Explanation:

HTML is interpreted in web browsers, while C is complied and is low level, which is why many operating systems, including Linux use it.

I'm a programmer :)

3 0
3 years ago
Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults
boyakko [2]

Answer:

See Explanation

Explanation:

The answer you attached to the question is correct and it does not need any additional input.

However, I'll explain each line for you

This line checks if age is less than 18

if (age < 18) {  

This line increases minors by 1

minors = minors + 1;

}

This line checks if age is between 18 and 64

else if (age > 17 && age < 65) {  

This line increases adult by 1

adults = adults + 1;

}

This line checks if age is greater than 18

else {

This line increases seniors by 1

seniors = seniors + 1;

}

8 0
3 years ago
Which method allows you to choose how to display the date and time?
Alja [10]

FORMAT Is the Answer Hope it helps:)

8 0
3 years ago
Develop a stored procedure that will take a state abbreviation as a parameter and list the name of the state, vendor, and total
Aleonysh [2.5K]

Answer:

ummm so sorry

Explanation:

i will try to help u just give me a sec

6 0
4 years ago
declare and initialise a variable called 'initial' that will hold the first letter of your name in java
Nastasia [14]

Answer:

Character initial = 'R';

Explanation:

For defining a variable, first you must identify the type of the variable, in this case it is a Character as we are only holding a single character.

The next step in defining a variable is the identifier, which is the name of the variable, in this case "initial".

Now we need to assign the needed character, in this case 'R' (for my first name), you use a single '=' to assign a variables, and finally you close the line with a semi-colon, as is standard in Java.

6 0
3 years ago
Other questions:
  • A balance is used to measure
    5·1 answer
  • A ___________ is used when an extra digit is added to a coded field to make sure it the entered data is correct (like social sec
    14·1 answer
  • What will the document.write() statement display, given the following code snippet? var scores = new Array[94, 90, 88, 82, 73, 7
    6·1 answer
  • Which of the following is the largest unit of information?
    15·2 answers
  • How are the chart and tables are alike
    12·1 answer
  • The amount of ram that is actually on the memory modules in your computer is the ________ memory.
    11·1 answer
  • Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz
    9·1 answer
  • What is suitable equipment to meet customer needs from
    10·1 answer
  • How to save an edited document.​
    6·1 answer
  • 3. Output the following:<br>a.<br>21%4​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!