_Java - MCQ Questions Coding Questions Low Level
_Java - MCQ Questions Coding Questions Low Level
8. Which class is used for taking user input from the console?
a) SystemInput
b) Scanner
c) BufferReader
d) Console
Java Arrays
Java Methods
✅ 3 Coding Questions
1. Sum of Two Numbers (Using Scanner and Arithmetic Operators)
Problem:
Write a Java program to take two integers as input from the user and print their sum, difference,
and product.
Problem:
Write a Java program that takes an array of integers and prints the largest number using a loop.
Problem:
Create a method isEven(int num) that returns true if the number is even, otherwise
false.
Take a number from the user and call the method to check.
1. Take two numbers from the user and print their sum.
3. Write a program to find the larger of two numbers using if-else.
4. Take a number as input and print the multiplication table of that number using a
loop.
5. Write a program that prints numbers from 1 to 10 using a while loop.
6. Write a program to find the sum of all numbers from 1 to n.
7. Take three marks as input and calculate the average of the marks.
9. Take a number from the user and check if it is divisible by 5 and 11.