Search Header Logo

Certification Course (Batch-01) | Quiz-02

Authored by SDLC 2023

Computers

Professional Development

Used 1+ times

Certification Course (Batch-01) | Quiz-02
AI

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

Media Image

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?