Java Quiz

Java Quiz

University

25 Qs

quiz-placeholder

Similar activities

Susulan PBO XIRPL (2021/2022)

Susulan PBO XIRPL (2021/2022)

11th Grade - University

20 Qs

IF Pagi - Quiz 2

IF Pagi - Quiz 2

University

20 Qs

JDBC

JDBC

University

20 Qs

Introduction to Java Programming

Introduction to Java Programming

University

25 Qs

Java Programming

Java Programming

University

20 Qs

Java Coding Questions

Java Coding Questions

University

20 Qs

Code Junction 4

Code Junction 4

University

20 Qs

Java, part I

Java, part I

11th Grade - University

20 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Science, Computers

University

Medium

Created by

rakhi Nagpal

Used 31+ times

FREE Resource

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)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?