Question#1 A variable in Java is a named storage location that holds a value of a particular type. a) True ✅- Answer b) False Question#2 Local variables in Java are accessible throughout the entire class. a) True b) False ✅- Answer Question#3 Local variables must be initialized before they are used in Java. a) True ✅- Answer b) False Question#4 Instance variables are shared among all instances of a class in Java. a) True b) False ✅- Answer Question#5 Class variables are declared with the static keyword in Java. a) True ✅- Answer b) False Question#6 Each instance of a Java class has its own copy of the class variables. a) True b) False ✅- Answer Question#7 In Java, implicit casting is also called widening. a) True ✅- Answer b) False Question#8 Explicit casting in Java needs to be explicitly performed by the programmer. a) True ✅- Answer b) False Question#9 A 'for-each' loop is a type of decision-making statement in Java. a) True b) False ✅- Answer Question#10 Primitive type 'int' in Java has a corresponding wrapper class named 'Integer'. a) True ✅- Answer b) False Question#11 Auto boxing in Java refers to converting a primitive type to its wrapper class automatically. a) True ✅- Answer b) False Question#12 Unboxing is the manual conversion of a wrapper class object to its primitive type. a) True b) False ✅- Answer Question#13 Wrapper classes allow primitive data types to be used as objects in Java. a) True ✅- Answer b) False Question#14 In Java, the if-else statement allows only one possible branch of execution. a) True b) False ✅- Answer Question#15 The condition in a Java if statement must evaluate to a boolean value. a) True ✅- Answer b) False Question#16 In Java, switch case variables can be of string type since version 7. a) True ✅- Answer b) False Question#17 A default statement in a Java switch statement is mandatory. a) True b) False ✅- Answer Question#18 In Java, cases in a switch statement can be duplicate. a) True b) False ✅- Answer Question#19 Type conversion, typecasting, and type coercion mean different things in Java. a) True b) False ✅- Answer Question#20 String can be converted to int in Java using Integer.parseInt(). a) True ✅- Answer b) False