
Grade 11 Midterm
Authored by Dina Sharawy
Information Technology (IT)
11th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Fill in the blank: The class used for taking input in Java is called ______.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: Which method is used to print output in Java?
System.out.input()
System.out.println()
System.out.read()
System.println()
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Open-ended: Write a Java code snippet that takes an integer input from the user and prints it to the console.
Evaluate responses using AI:
OFF
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Fill in the blank: To read a string input in Java, we use the method ______.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: What does System.out.println() do in Java?
Takes input from the user.
Prints a message to the console.
Reads a file.
Terminates the program.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question: Which of the following correctly reads an integer value from the user?
int num = input.readInt();
int num = input.nextInt();
int num = scanner.read();
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Fill in the blank: To import the Scanner class, we use import ______;.
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?