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

Group of answer choices When declaring a variable, you also specify the type of its values. Variables cannot be assigned and dec

lared in the same statement. Variable names can be no more than 8 characters long. Variable names must contain at least one dollar sign.
Computers and Technology
1 answer:
olga nikolaevna [1]3 years ago
6 0

Complete Question:

Which of the following statement is true?

Group of answer choices.

A. When declaring a variable, you also specify the type of its values.

B. Variables cannot be assigned and declared in the same statement.

C. Variable names can be no more than 8 characters long.

D. Variable names must contain at least one dollar sign.

Answer:

A. When declaring a variable, you also specify the type of its values.

Explanation:

In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.

Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.

For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.

For instance, to pass a class to a family of classes use the code;

\\parameter Name as Type (Keywords) = value;

\\procedure XorSwap (var a,b :integer) = "myvalue";

<em>Hence, the true and correct statement is that when declaring a variable, you also specify the type of its values such as integers, string, etc. </em>

You might be interested in
A compiler is a separate program that converts the entire source program into a machine language before executing it
NISA [10]
A compiler is a series of programs that (usually) convert source code into machine language. There are also compilers that compile into byte code, Java for instance.

No compiler is responsible for executing a freshly compiled program. That would be done in an IDE (Integrated Development Environment).
4 0
3 years ago
Assume that two parallel arrays have been declared and initialized: healthOption an array of type char that contains letter code
eduard

/*

Since we have to check the first two options only as mentioned in last part of question the loop will work 2 times only and will compare the cost of first element and second and assign the healthoption accordingly

*/

for(int i =0;i<=1;i++){

if(annualCost[i]<annualCost[i+1]

best2 = healthOption[i]

else

best2 = healthOption[i+1]

}

6 0
3 years ago
Create a Pet class that keeps track of the name, age, weight, type of animal, and breed for records at an animal clinic with 2 c
kati45 [8]

Answer:

class Pet():

   def __init__(self, name, age, weight, animal_type, breed):

       self.name = name

       self.age = age

       self.weight = weight

       slef.aT = animal_type

       self.breed = breed

   def set_name(self, name):

       self.name = name

   def get_name(self):

       return self.name

   def set_age(self, age):

       self.age = age

   def get_age(self):

       return self.age

   def set_weight(self, weight):

       self.weight = weight

   def get_weight(self):

       return self.weight

   def set_Type(self, type):

       self.aT = type

   def get_Type(self):

       return self.aT

   def set_breed(self, breed):

       self.breed = breed

   def get_breed(self):

       return self.breed

   def toString(self):

       print(f"The pet {self.name} is {self.age} year old and weighs {self.weight}lbs. The pet is a {self.breed} breed of {self.aT}.")

Explanation:

The python program defines a class called Pet that has five features namely name, age, weight, animal_type, and breed of the animal. The set and get methods of the class are the mutators and accessor respectively. The final method of the class is the 'toString' method that prints the summary of the Pet object instance.

4 0
3 years ago
Andy wants to change some of the components in his old computer system.he had recently upgraded the motherboard and he now wishe
ladessa [460]

Looking at the images and the boxes, it goes like this;


To add external functionality of external backup, you would probably have something removable from the computer accessable. This means that the Optical Drive would add functionality of external backup, and the first tile goes there.


A processor is what does the general computations inside a laptop/desktop computer and processes information as the name implies. Upgrading the processor makes it go faster. The second tile would go to the processor.


The third one need no further explanation and would go to the Hard Drive, but just keep in mind that the Hard Drive stores all the information on your computer (i.e. Applications, Photos, etc.).


Hope this helps!

6 0
3 years ago
Read 2 more answers
What is the smallest floating number can be represented in C++? -3.4*10^38
melisa1 [442]

Answer:

FLT_MIN.

Explanation:

In C++ FLT_MIN is used to represent the smallest floating point number.You have to include two libraries for FLT_MIN to work and these are as following:-

limits.h

float.h

for example:-

#include <iostream>

#include<limits.h>

#include<float.h>

using namespace std;

int main() {

   cout<<FLT_MIN;

return 0;

}

Output:-

3.40282e+38

8 0
3 years ago
Other questions:
  • A job application is a form used to make a job request.<br> True<br> False
    8·2 answers
  • 5. Create a variety of test cases focusing on the sorting algorithm, such as the final element is the smallest, the entire set i
    8·1 answer
  • Assume that two classes 'Temperature' and 'Sensor' have been defined. 'Temperature' has a constructor that accepts a double para
    15·1 answer
  • Why is the keyboard arranged in the QWERTY style?
    6·2 answers
  • PowerPoint is great for brainstorming and producing creative pieces because it
    13·2 answers
  • Which site had a major influence on the social gaming site Friendster?
    6·2 answers
  • Write a program that use a switch statement whose controlling expression is the variable area code. If the value of area_code is
    12·1 answer
  • Which statement is true about the purpose of a work in process constraint?
    15·1 answer
  • Which of the following represent features of free software licensing? Check all of the boxes that apply.
    10·1 answer
  • Please choose the correct option please tell fast​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!