Java Programming Quiz - unit 1b
Quiz
•
Information Technology (IT)
•
9th Grade
•
Practice Problem
•
Medium
Wayground Content
Used 21+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where should the import java.util.Scanner; statement be placed in a Java program?
Inside the main method
At the beginning of the program before the class declaration
At the end of the program
Anywhere in the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? String text = "Hello, Java!"; int index = text.indexOf("Java"); System.out.println(index);
7
6
5
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of y after the following statements? int y = 4; y *= 2;
2
4
6
8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does \t represent in a string?
A tab space
A new line
A backspace
A space
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will System.out.println("Java".charAt(2)); output?
J
a
v
Throws an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? String text = "Hello, World!"; char ch = text.substring(7, 12).charAt(2); System.out.println(ch);
W
r
l
o
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to read a double value using a Scanner object?
nextDouble()
getDouble()
readDouble()
inputDouble()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Aula 10: Concatenando outras palavras
Quiz
•
9th Grade
20 questions
Ulangan Harian Kelas 9-1
Quiz
•
9th Grade
20 questions
Understanding Variables and Constants Quiz
Quiz
•
9th Grade
20 questions
Python Programlama Soruları
Quiz
•
9th Grade
24 questions
Python Midterm Review
Quiz
•
9th - 12th Grade
16 questions
HTML Level 1
Quiz
•
8th Grade - University
25 questions
Quiz Pemrograman Scratch & Blockly
Quiz
•
9th Grade
25 questions
Sumatif Tengah Semester Informatika
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
