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