Java Programming Quiz - unit 1b

Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium
Quizizz Content
Used 21+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
quiz1B1

Quiz
•
7th Grade - University
21 questions
Unit 3: Basic Python & Console Interaction

Quiz
•
9th - 12th Grade
17 questions
Экзамен C++ ОП

Quiz
•
9th - 12th Grade
20 questions
Pengenalan Bahasa Pemrograman Python

Quiz
•
9th Grade - University
20 questions
Video Game Programming and Design Questions

Quiz
•
9th - 12th Grade
22 questions
ÔN TẬP CRV1

Quiz
•
6th Grade - University
15 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
25 questions
Quizizz JavaScript Attempt 2 Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade