Search Header Logo

Unit 5: Input in Java

Authored by Rajat Shenoi

Computers

9th - 10th Grade

Used 87+ times

Unit 5: Input in Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

15 mins • 1 pt

Name the package that contains Scanner class.

(a)  

2.

FILL IN THE BLANKS QUESTION

15 mins • 1 pt

Complete the code below to create an object of Scanner class:

Scanner sc = new Scanner( (a)   );

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Name the type of error in case given below:

Missing semicolon.

Syntax Error

Logical Error

Run-time error

4.

FILL IN THE BLANKS QUESTION

15 mins • 1 pt

Name the method of Scanner class that is used to input an integer data from the standard input stream.

(a)  

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Name the type of error in case given below:

int a;b;c;

Syntax Error

Logical Error

Run-time error

6.

MULTIPLE SELECT QUESTION

15 mins • 1 pt

Which of the following are valid comments?

/* comment */

* comment

// coment

*/ comment */

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Name the type of error in case given below:

Math.sqrt(36 – 45)

Syntax Error

Logical Error

Run-time error

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?