
Java Quiz
Authored by rakhi Nagpal
Science, Computers
University
Used 31+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We are use Scanner Library in java for...
Give permissions to the user
Correcting software errors
Allows user to read data
Allows the user to enter data
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Single line comments look like?
\\
//
/*
*/
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are some possible causes of compile-time syntax errors reported by javac?
Capitalization
Missing semicolons
missing curly brackets
all are true
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword identifies a group of statements and data that work together as a unit?
Main
Static
Class
Package
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the JRE?
The JRE is Oracle Corporation’s brand name for Java sold at a profit
The JRE is something that runs in your web browser to enable animations
The JRE is the development environment in which you type your source code
The JRE is a combination of the Java Virtual Machine and the Java Class Libraries
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why would you want to add comments to a program?
So programmer can understand the code better
To describe the author of a program and the program's purpose
all are correct
None are correct
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function declaration below best describes the entry point of your program?
void enter(String[] args)
public static void main(String[] args)
public static void main()
static int main(String args)
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?