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
densk [106]
3 years ago
10

Dr.Sanchez is creating a quiz for a history class. It will have true or false questions. What kind of variable will be needed to

record the students anwser to the question?
1)Alphabetic

2)Float

3)Blooean

4)integer
Computers and Technology
2 answers:
lesya [120]3 years ago
8 0
It's Blooen I had this question for school
KatRina [158]3 years ago
4 0

Answer:

Option 3) Boolean is the correct answer

Explanation:

Let us see all the data types given in the options.

Alphabetic datatype stores alphabets and characters.

Float stores numbers with decimal points.

Boolean is a binary data type that can only have two values either one and zero or true and false.

Integer stores positive and negative numbers.

Looking at all the definitions we can conclude that Boolean will be the suitable variable to store the answers as the answer can only have one of the two values from true and false.

Hence,

Option 3) Boolean is the correct answer

You might be interested in
Starbucks offers an app that allows remote ordering, free Wi-Fi in stores, and a loyalty program where customers can earn a free
Vinil7 [7]
<span>Starbucks is employing a Brand Loyalty and Convenience strategy that seeks to not only make it convenient for customers to use their services, but also builds loyalty to ensure that customers keep coming back. These programs add value to Starbucks as they increase residual sales and customer loyalty.</span>
4 0
3 years ago
There is a feature that allows you to lock the document, to avoid others making changes. True or False
Burka [1]

Answer:

yes there is

Explanation:

6 0
3 years ago
Q a z w s x e d c r f v​
Klio2033 [76]

Answer:

wdym

Explanation:

8 0
3 years ago
Read 2 more answers
You have decided to use a worksheet to keep track of your monthly income and expenses. What categories might your worksheet incl
Wewaii [24]

The steps to set up your own budget include:

<span>1= Create a new Excel worksheet2= Determine your income3= Determine your fixed expenses4= Determine your variable expenses5= Make provision for funds you may need6= Create your financial goals7= Ideas on how to kick start your emergency fund8= Analyze your budget9= Track your expenses</span>
6 0
3 years ago
Write a class named Car that has the following data attributes:
meriva

ANSWER

The program in JAVA for the given scenario is as follows.

import java.util.*;

public class Car

{

// variables declaration

   static int _year_model;

   static String _make;

   static int _speed;

   

   public static void _init_( int model, String m )

   {

// variables initialization

       _year_model = model;

       _make = m;

       _speed = 0;

   }

   

   public static void accelerate()

   {

       _speed = _speed + 5;

   }

   

   public static void brake()

   {

       _speed = _speed - 5;

   }

   

   public static int get_speed()

   {

// current value of speed is returned

       return _speed;

   }

   

public static void main(String[] args) {

     

    // object of class created

    Car ob = new Car();

     

    // method called using object of class

    ob._init_(2019, "audi");

     

    ob.accelerate();

 System.out.println("Accelerated speed " + ob.get_speed());

 ob.accelerate();

 System.out.println("Accelerated speed " + ob.get_speed());

 ob.accelerate();

 System.out.println("Accelerated speed " + ob.get_speed());

 ob.accelerate();

 System.out.println("Accelerated speed " + ob.get_speed());

 ob.accelerate();

 System.out.println("Accelerated speed " + ob.get_speed());

 

 System.out.println();

 

 ob.brake();

 System.out.println("Speed after brake " + ob.get_speed());

 ob.brake();

 System.out.println("Speed after brake " + ob.get_speed());

 ob.brake();

 System.out.println("Speed after brake " + ob.get_speed());

 ob.brake();

 System.out.println("Speed after brake " + ob.get_speed());

 ob.brake();

 System.out.println("Speed after brake " + ob.get_speed());

 

}

}

OUTPUT

Accelerated speed 5

Accelerated speed 10

Accelerated speed 15

Accelerated speed 20

Accelerated speed 25

Speed after brake 20

Speed after brake 15

Speed after brake 10

Speed after brake 5

Speed after brake 0

EXPLANATION

1. Variables are declared with String and integer datatypes.

2. _init_() initializes all the variables. This method is also called inside main() using object of Car class in order to initialize the variable speed to 0.

3. Inside main(), object of Car class created.

Car ob = new Car();

4. All the methods are called using object of the class.

ob._init_(2019, "audi");

ob.accelerate();

ob.brake();

5. All the variables are declared as static.

6. All the methods are declared as static since main() method is static inside which all other methods are called.

7. New line is included to improve readability of the output.

7 0
3 years ago
Other questions:
  • What is an online alternative to customers sending checks via mail?
    7·1 answer
  • Which computer device helps you input data in the form of text, numbers, and commands?
    9·1 answer
  • The main thing that adjusting the aperture controls when taking an image is?
    15·1 answer
  • To create an effective study schedule, a student must guess the amount of time needed for studying. write down all activities an
    11·2 answers
  • Given this method comment, fill in the blank in the method implementation. /* Deposits money into the bank account amount: the a
    6·1 answer
  • How do graphic designers showcase their work?
    14·2 answers
  • You have just connected a new computer to your network. The network user static IP addressing. You find that the computer can co
    12·2 answers
  • How can an instance variable be used in a class? Explain your answer. (java)
    10·1 answer
  • PLEASE HURRY!!!<br> Look at the image below
    5·1 answer
  • If I bought mine craft p.e. for 7.99 and hook my Micro soft account up, will i get java edition
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!