
Certification Course (Batch-01) | Quiz-02
Authored by SDLC 2023
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Scanner sc = new Scanner(System.in); here "in" is a/an-
Reference variable of System class
Reference variable of InputStream class
Reference variable of Reader class
Reference variable of Input class
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
scanner.next(int_value), here "int_value" we can define for -
initial value
input value
base of int value
none
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which character is used as a delimiter for scanner.nextInt() ?
space
null
zero
none
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Scanner class exist in which package?
java.lang
java.input
java.io
java.util
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be happen if we build and run this Java program?
Compilation failed
InputMismatchException
NumberFormatException
None
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be happen if we build and run this Java program?
Compilation failed
InputMismatchException
NumberFormatException
None
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what will be the output if we run this program and give input value: hello 10 20?
Compilation failed
Runtime exception
hello1020
hello30
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?