Scanner sc = new Scanner(System.in); here "in" is a/an-

Certification Course (Batch-01) | Quiz-02

Quiz
•
Computers
•
Professional Development
•
Hard
SDLC 2023
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
JDBC_Objective_Exam_2

Quiz
•
Professional Development
10 questions
DECI - Week 2 - round

Quiz
•
Professional Development
11 questions
JavaScript

Quiz
•
Professional Development
10 questions
Java SE: Programming I

Quiz
•
Professional Development
10 questions
Java main() and Scanner

Quiz
•
Professional Development
13 questions
Javascript HTML CSS

Quiz
•
Professional Development
7 questions
A44 OOP Exception Handling

Quiz
•
Professional Development
10 questions
DECI - Week 5 - round

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade