Unit 5: Input in Java

Quiz
•
Computers
•
9th - 10th Grade
•
Hard
Rajat Shenoi
Used 86+ 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
Similar Resources on Wayground
10 questions
10 CS // Pseudocode

Quiz
•
9th - 11th Grade
15 questions
Java Test 1

Quiz
•
10th Grade
16 questions
Codecademy Intro to JavaScript

Quiz
•
9th - 12th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
19 questions
AP Computer Science A Unit 1

Quiz
•
9th - 12th Grade
19 questions
Python Year 9 Quiz

Quiz
•
8th - 10th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
14 questions
TechSmart Unit 1 Vocabulary Text

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade