Java main() and Scanner

Quiz
•
Computers
•
Professional Development
•
Medium
Claudiu Haidu
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the entry point for a Java program?
main()
start()
init()
run()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which modifier is used with the main method in Java?
public
private
static
final
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the main method declared in Java?
void main(String[] args)
static void main()
public static int main(String[] args)
public static void main(String[] args)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is used to take input from the user in Java?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package is Scanner class located in Java?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method do you use to read a string input from the user using Scanner?
nextLine()
readLine()
readString()
inputString()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Untitled Quiz

Quiz
•
Professional Development
15 questions
ECDL/ICDL Computer Essentials

Quiz
•
KG - Professional Dev...
11 questions
Java Fundamentals

Quiz
•
Professional Development
10 questions
MATERIAL DIDACTICO - TEST JAVA- KHIPU

Quiz
•
Professional Development
14 questions
Input, output and storage de

Quiz
•
8th Grade - Professio...
8 questions
Lenguaje Java: Programación Modular

Quiz
•
Professional Development
6 questions
Demo1

Quiz
•
Professional Development
10 questions
Java Chapter 1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade