Unit 5: Input in Java

Unit 5: Input in Java

9th - 10th Grade

14 Qs

quiz-placeholder

Similar activities

S3 SDD Unit 2 - 5. Testing

S3 SDD Unit 2 - 5. Testing

9th Grade

14 Qs

AP Computer Science A Unit 1

AP Computer Science A Unit 1

9th - 12th Grade

19 Qs

Errors in Programming

Errors in Programming

9th Grade

10 Qs

Program Implementation

Program Implementation

10th - 12th Grade

15 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Python - If Else...

Python - If Else...

9th Grade

19 Qs

Unit 5: Input in Java

Unit 5: Input in Java

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Rajat Shenoi

Used 83+ times

FREE Resource

14 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Name the package that contains Scanner class.

2.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

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

Scanner sc = new Scanner(______);

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 BLANK QUESTION

15 mins • 1 pt

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

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?