--:--









Quiz for Java Basics

Course: JAVA | Subject: Java | Topic: Core Java



Logo

Q1: Which data type is used to create a variable that should store text?

Logo

Q2: Which keyword is used to declare a variable in Java?

Logo

Q3: Which data type is used to store a single character?

Logo

Q4: What is the default value of an int variable in Java?

Logo

Q5: Which of the following is a floating-point data type?

Logo

Q6: Which operator is used for addition in Java?

Logo

Q7: Which operator is used for logical AND?

Logo

Q8: What is the result of 10 % 3 in Java?

Logo

Q9: Which of the following is a relational operator?

Logo

Q10: Which operator is used to increase a variable’s value by one?

Logo

Q11: Which keyword is used to create a conditional statement in Java?

Logo

Q12: Which loop runs at least once before checking the condition?

Logo

Q13: What is the purpose of the 'break' statement?

Logo

Q14: Which keyword is used for multiple conditional branches?

Logo

Q15: Which loop is best when the number of iterations is known?

Are you ready to start test? Set your time limit