203k views
1 vote
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

2 Answers

5 votes
It's Blooen I had this question for school
User Moodboom
by
5.2k points
4 votes

Answer:

Option 3) Boolean is the correct answer

Step-by-step 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

User Richard Green
by
5.7k points