Instructions
- 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
- 2. Thoroughly review each solution before proceeding to ensure full understanding.
- 3. Final results will be available after submission to provide insights into areas for further improvement.
- 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
- 5. Once submitted, responses are final, so ensure you’re confident in your answers.
- 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.
All Problems
Question
Action
Which of the following is the correct way to declare an array in Java?
What is the index of the first element in a Java array?
What will be the output of the following code?
Which method is used to convert a string to lowercase?
What will be the output of the following code?
How do you access the last element of an array arr?
Which of the following methods is used to split a string into an array?
Which of the following methods checks if two strings are equal in Java?
Which of the following is the correct way to initialize a two-dimensional array in Java?
Which method converts all characters in a string to lowercase in Java?