Which of the following are Java primitive data types? correct answers Float
Boolean
Char
Int
Double
Which of the following are NOT Java primitive data types? correct answers String
Random
Array
Math
class
Which of the following are Java primitive data types? correct answers Float
Int
Boolean
Char
Double
Which of the following are NOT Java primitive data types? correct answers String
Static
Array
Math
Class
Which of the following are Java primitive data types? correct answers Float
Int
,Boolean
Char
Double
Which of the following Java literals have the data type char? correct answers 'a'
'\n'
Which of the following Java literals have the data type int? correct answers 123
-3
Which of the following Java literals have the data type boolean? correct answers True
False
Which of the following Java literals have the data type float? correct answers 3f
3.14f
Which of the following Java literals have the data type double? correct answers 3.14
3.0
Which of the following Java literals have the data type String? correct answers "3.0"
"true"
(quotations are the reason why)
3 + 5, result will be what data type? correct answers Int
3.0 + 5.0, result will be what data type? correct answers double
, 3 + 5.0, result will be what data type? correct answers double
3f + 5.0, result will be what data type? correct answers double
5/3, result will be what data type? correct answers Int
5.0/3.0, result will be what data type? correct answers Double
"3" + "5", result will be what data type? correct answers String
3 > 5, result will be what data type? correct answers Boolean
3> 5.0, result will be what data type? correct answers Boolean
What would be the best data type to store a pet's name? correct answers String
What would be the best data type to store a book title? correct answers String
What would be the best data type to store a street address? correct answers String
What would be the best data type to store a phone number? correct answers Int or String
Which of the following would be the best data type for a variable to store the number of students
enrolled at ASU? correct answers Int
Which of the following would be the best data type for a variable to store the passenger capacity
on a bus? correct answers Int