Question#1 In Java, the for loop allows initialization, condition check, and increment or decrement in a single line of code. a) True ✅- Answer b) False Question#2 The primary use of the for loop is when the number of iterations is unknown. a) True b) False ✅- Answer Question#3 Java provides a foreach loop, also known as the enhanced for loop, to traverse arrays and collections. a) True ✅- Answer b) False Question#4 In a foreach loop, it is necessary to manually update the loop variable. a) True b) False ✅- Answer Question#5 The while loop in Java is known as an entry-controlled loop because it checks the condition before executing the loop body. a) True ✅- Answer b) False Question#6 In a while loop, initialization and increment or decrement occur inside the loop statement itself. a) True b) False ✅- Answer Question#7 The do-while loop in Java executes the loop body before checking the condition, ensuring at least one execution of the statements inside. a) True ✅- Answer b) False Question#8 A do-while loop is also known as an entry-controlled loop in Java. a) True b) False ✅- Answer Question#9 Jump statements in Java are used to transfer program control to another part of the program. a) True ✅- Answer b) False Question#10 The break statement in Java can be used independently, outside of loops or switch statements. a) True b) False ✅- Answer Question#11 In nested loops, the break statement terminates all loops at once. a) True b) False ✅- Answer Question#12 The continue statement immediately skips the rest of the current iteration and continues to the next iteration of the loop. a) True ✅- Answer b) False Question#13 An array in Java can store elements of different data types. a) True b) False ✅- Answer Question#14 A single-dimensional array allows elements to be accessed linearly using their index. a) True ✅- Answer b) False Question#15 A multidimensional array in Java can have only two dimensions. a) True b) False ✅- Answer Question#16 ArrayList in Java can grow and shrink dynamically at runtime. a) True ✅- Answer b) False Question#17 ArrayList is not a part of the Java Collections Framework. a) True b) False ✅- Answer Question#18 Garbage collection in Java automatically frees memory occupied by unreferenced objects. a) True ✅- Answer b) False Question#19 Command line arguments in Java are passed as elements in an integer array. a) True b) False ✅- Answer Question#20 The args parameter in the main() method of a Java program is an array of strings that holds the command line arguments. a) True ✅- Answer b) False