Question 1 of 25
Hints left: 3
Q1
In Java, which data type is used to represent true or false values?
Q2
In Java, which data type is used to store numbers with decimal points?
Q3
Which of the following is the correct way to declare a boolean variable named isJavaFun and initialize it to true in Java?
Q4
Which data type is used to represent integer values in Java?
Q5
What is the range of values that can be stored in a short variable in Java?
Q6
Which data type is used to store a single character in Java?
Q7
What is the default value of a char variable in Java if it's not explicitly initialized?
Q8
In Java, which data type is used to store numbers with decimal points and greater precision than float?
Q9
What is the size of a long variable in Java?
Q10
What is the default value of a double variable in Java if it's not explicitly initialized?
Q11
Which of the following is not a valid way to declare a long variable in Java?
Q12
Which of the following is a primitive data type in Java?
Q13
Which of the following is not a primitive data type in Java?
Q14
What is the minimum value that can be stored in a char variable in Java?
Q15
What is the keyword used to declare a constant value in Java?
Q16
What is the default value of a boolean variable in Java if it's not explicitly initialized?
Q17
What is the default value of an int variable in Java if it's not explicitly initialized?
Q18
Which of the following is not a valid identifier for a Java variable?
Q19
What is the maximum value that can be stored in a byte variable in Java?
Q20
Which keyword is used to declare a variable that can hold a reference to an object of any class in Java?
Q21
Which of the following is not a valid way to declare an integer variable in Java?
Q22
Which of the following is a valid way to declare a constant in Java?
Q23
Which data type is used to store floating-point numbers with single precision in Java?
Q24
Which of the following is the correct way to declare a hexadecimal value in Java?
Q25
What is the size of a float variable in Java?