
TEST-1-PREP
Authored by Ed Torres
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What type of error is "divide by zero"?
Runtime
Syntax
Logic
Memory
Grammar
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is true about the main() method?
It is the last method to execute.
It is the first method to execute.
It is required in all Java classes.
It accepts no parameters.
It requires an object to execute.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which command is the Java compiler?
java
compile
cc
cjava
javac
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
You forgot to terminate a statement with a semicolon. What type of error is this?
runtime
logic
syntax
no error
abnormal end
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a keyword?
class
print
static
float
public
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does JVM stand for?
Java Virtual Mode
Just Venmo Me
Java Very Mad
Java Virtual Machine
Jets Victory Mode
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one is a valid comment?
/ this is a comment
/ this is a comment /
/*** this is a comment */
/* this is a comment /
*/ this is a comment /*
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?